[i2c] New Style I2C Driver : how to get clients ?

Felipe Balbi felipebalbi at users.sourceforge.net
Mon Jul 28 12:35:36 CEST 2008


Hi,

On Mon, Jul 28, 2008 at 1:12 PM,  <fuhz at free.fr> wrote:
> Hi,
>
>> > I read that __i2c_first_dynamic_bus_num is set to 1.
>> > It does not seems to change.
>>
>> it changes in i2c-boardinfo.c at i2c_register_board_info:
>>
>>       /* dynamic bus numbers will be assigned after the last static one */
>>       if (busnum >= __i2c_first_dynamic_bus_num)
>>               __i2c_first_dynamic_bus_num = busnum + 1;
>>
>> which would make the above if() true :-)
>
> You're right !
>
>
>> hmm.. i suppose your calling i2c_register_board_info() with wrong
>> parameters.
>
>> just a note, the first i2c bus is bus 1 and not bus 0. I suppose
>> that's not your problem, right ?
>
> It was :D
> I thought it was zero-based counter...and I tested the code with only one bus !
>
> Hehe, I feel stupid :D
>
>
>
> MANY MANY MANY THANKS :D

Cool. At least it's solved :-)

Have fun now ;-)

-- 
Best Regards,

Felipe Balbi
felipebalbi at users.sourceforge.net



More information about the i2c mailing list