Re: i2c access from kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> The first argument to i2c_transfer is pointer to struct i2c_adapter,
> which is very complex struct to fill !!

You should never fill it yourself. This is the job of the i2c-core.

> If I know, for example, the exact bus number, is there some way I can
> get the i2c_adapter pointer to that bus ?

i2c_get_adapter(bus_number);

Regards,

   Wolfram

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux