Hi,

I received this email address from Gregg Koah-Hartman.  I am writing to seek 
your advise  on writing a I2C device
driver.  

I am currently writing a device driver based on the sample code by Gregg in 
Linux Journal (http://www.linuxjournal.com/article/7252).  
I am new to linux device driver development and am currently attempting
to modify the code to enable it to simultaneously support 2 I2C devices
- both devices resides on different addresses.  

I have tried
adding another i2c_add_driver function in 'static int __init
tiny_init(void)' and subsequently reduplicate all functions involved in
registering a
new driver (e.g. static struct i2c_driver, i2c_detect, etc).  However,
the code didn't seem to start.   I have scoured through I2C
documentations in the Linux kernel  and also the book Linux Device Driver 
(O'Reilly) but have yet to come  across any reference for the above-mentioned 
task.  

I am hoping that you could provide a few pointers on how best to proceed.  
Thanks in advance.

Cheers,
Wei Liang


      
_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c

Reply via email to