detecting i2c bus dynamically

Rupesh Kumar rk1825.sub at gmail.com
Tue May 29 22:49:56 EDT 2018


Based on the daughter cards attached on to the main board, My set-up
will have variable number of i2c adapters.

I want to write driver for the client on one of the (variable) i2c adapter.

I know the exact number for this adapter can be obtained using
"i2cdetect -l" from command line.
However, I want to know,
Is there any method to detect the number of this (variable) i2c
adapter inside a kernel module?



More information about the Kernelnewbies mailing list