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 /common/exports.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 'common/exports.c')
-rw-r--r-- | common/exports.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/exports.c b/common/exports.c index 88fcfc8..459e18c 100644 --- a/common/exports.c +++ b/common/exports.c @@ -23,7 +23,8 @@ unsigned long get_version(void) # define install_hdlr irq_install_handler # define free_hdlr irq_free_handler #endif -#ifndef CONFIG_CMD_I2C +#if !defined(CONFIG_CMD_I2C) || \ + (defined(CONFIG_DM_I2C) && !defined(CONFIG_DM_I2C_COMPAT)) # define i2c_write dummy # define i2c_read dummy #endif |