summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2015-01-27 13:36:28 +0100
committerSimon Glass <sjg@chromium.org>2015-01-29 17:09:59 -0700
commit18a7f6aa2dcac7e78436cba148b25779f25f5c16 (patch)
tree00c48261db3e8d7961b664b77223681d41dff6cc /drivers/i2c
parentb37b46f042ccfcfb97a9ef8b8a568812640a2a70 (diff)
downloadu-boot-imx-18a7f6aa2dcac7e78436cba148b25779f25f5c16.zip
u-boot-imx-18a7f6aa2dcac7e78436cba148b25779f25f5c16.tar.gz
u-boot-imx-18a7f6aa2dcac7e78436cba148b25779f25f5c16.tar.bz2
dm: i2c-uclass-compat: fix missed argument
This patch fixes build error for CONFIG_DM_I2C_COMPAT. In i2c_get_chip_for_busnum() call, one of argument was missed, which was offset_len. Now it is set to 'alen' as previous. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/i2c-uclass-compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-uclass-compat.c b/drivers/i2c/i2c-uclass-compat.c
index 11239da..841ce05 100644
--- a/drivers/i2c/i2c-uclass-compat.c
+++ b/drivers/i2c/i2c-uclass-compat.c
@@ -17,7 +17,7 @@ static int i2c_compat_get_device(uint chip_addr, int alen,
struct dm_i2c_chip *chip;
int ret;
- ret = i2c_get_chip_for_busnum(cur_busnum, chip_addr, devp);
+ ret = i2c_get_chip_for_busnum(cur_busnum, chip_addr, alen, devp);
if (ret)
return ret;
chip = dev_get_parent_platdata(*devp);