diff options
author | Simon Glass <sjg@chromium.org> | 2015-01-12 18:02:07 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-01-29 17:09:53 -0700 |
commit | f9a4c2da72d04e13b05deecb800f232d2948eb85 (patch) | |
tree | f0b35b2c40e28bb20a40f2abce1c441f908a6357 /drivers/power/as3722.c | |
parent | a08d643dbd855df837724a582babc55e82bd03b7 (diff) | |
download | u-boot-imx-f9a4c2da72d04e13b05deecb800f232d2948eb85.zip u-boot-imx-f9a4c2da72d04e13b05deecb800f232d2948eb85.tar.gz u-boot-imx-f9a4c2da72d04e13b05deecb800f232d2948eb85.tar.bz2 |
dm: i2c: Rename driver model I2C functions to permit compatibility
Add a dm_ prefix to driver model I2C functions so that we can keep the old
ones around.
This is a little unfortunate, but on reflection it is too difficult to
change the API. We can undo this rename when most boards and drivers are
converted to use driver model for I2C.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/power/as3722.c')
-rw-r--r-- | drivers/power/as3722.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/as3722.c b/drivers/power/as3722.c index 4c6de79..3aafdc9 100644 --- a/drivers/power/as3722.c +++ b/drivers/power/as3722.c @@ -31,7 +31,7 @@ static int as3722_read(struct udevice *pmic, u8 reg, u8 *value) { int err; - err = i2c_read(pmic, reg, value, 1); + err = dm_i2c_read(pmic, reg, value, 1); if (err < 0) return err; @@ -42,7 +42,7 @@ static int as3722_write(struct udevice *pmic, u8 reg, u8 value) { int err; - err = i2c_write(pmic, reg, &value, 1); + err = dm_i2c_write(pmic, reg, &value, 1); if (err < 0) return err; |