I am trying to write a driver for a I2C chip. I did insmod on my
driver from android shell, I can see the printk in the "init" getting
executed.

To my understanding...
What init does is, it calls i2c_add_driver(xxxxx); to register my
driver with i2c core.

Upon registration i2c core should find a i2c adapter, if it finds
adapter, it should invoke attach function that was part of the
i2c_driver struct.

attach function should look for the device(address) on the i2c but via
I2c Adapter, it finds a device at the address that its looking for, it
should then invoke the probe and let the fun begin...

But I dont see a printk inside my attach function getting executed,
which prompts to suspect that kernel is not detecting any "simulated"
i2c adapter...

Can you please comment.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Internals" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/android-internals?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to