i2c: davinci: Split functions into two parts for future DM support
authorCooper Jr., Franklin <fcooper@ti.com>
Thu, 20 Apr 2017 15:25:42 +0000 (10:25 -0500)
committerHeiko Schocher <hs@denx.de>
Tue, 9 May 2017 07:04:10 +0000 (09:04 +0200)
commit602191011f24050b7880397de74ded6cc5b2acf9
tree5335562fb53954752c5df67c4999430a47702239
parent2f92629112a1055ed37f8b05dfcf00c3f1875503
i2c: davinci: Split functions into two parts for future DM support

The i2c driver will be converted to support device model. In preparation
for that change split the various functions into two parts. This will
allow device model specific driver to reuse the majority of the code from
the non device model implementation.

Also rename the probe function to probe_chip to better reflect its
purpose.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/davinci_i2c.c