public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* I2C device driver to simutaneously support 2 devices
@ 2008-05-15  6:18 Wei Liang
       [not found] ` <213411.97989.qm-1S7A5l4uV2KvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Liang @ 2008-05-15  6:18 UTC (permalink / raw)
  To: i2c-GZX6beZjE8VD60Wz+7aTrA


[-- Attachment #1.1: Type: text/plain, Size: 1033 bytes --]

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


      

[-- Attachment #1.2: Type: text/html, Size: 1802 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-16 19:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-15  6:18 I2C device driver to simutaneously support 2 devices Wei Liang
     [not found] ` <213411.97989.qm-1S7A5l4uV2KvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>
2008-05-16 19:54   ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox