i2c access from kernel

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

 



Hello,

In userspace we can access any bus very simple, but from kernel it
seems very complex doing simple access to a bus.
The first argument to i2c_transfer is pointer to struct i2c_adapter,
which is very complex struct to fill !!

Isn't there a simpler way to access a bus (for example i2c-2) from kernel?

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

Thanks, Ran
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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