[U-Boot] [PATCH v3 01/12] dm: i2c-uclass-compat: fix missed argument

Simon Glass sjg at chromium.org
Thu Jan 29 18:32:55 CET 2015


On 27 January 2015 at 08:38, Simon Glass <sjg at chromium.org> wrote:
> Hi Przemyslaw,
>
> On 27 January 2015 at 05:36, Przemyslaw Marczak <p.marczak at samsung.com> wrote:
>> 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 at samsung.com>
>> ---
>>  drivers/i2c/i2c-uclass-compat.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> 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);
>> --
>
> Thanks. I sent a patch which fixes this too but have not yet applied it.
>
> Acked-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list