Welcome to the Linux Foundation Forum!

kernel/host has to detect i2c slave device dynamically. How to write kernel module to achieve this?

The power conditions are that the i2c device(slave) is powered off and the host controller is on. And kernel module should be loaded while booting.
When ever new i2c device(slave) is inserted/poweredON, kernel has to detect slave device dynamically just like USB. How to write a device driver or kernel module for this?. Is there any method to achieve these? Please help me i am new to this driver programing. Thanks

Categories

Upcoming Training