public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Wei Liang <weiliang10-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
To: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: I2C device driver to simutaneously support 2 devices
Date: Wed, 14 May 2008 23:18:46 -0700 (PDT)	[thread overview]
Message-ID: <213411.97989.qm@web30304.mail.mud.yahoo.com> (raw)


[-- 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

             reply	other threads:[~2008-05-15  6:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-15  6:18 Wei Liang [this message]
     [not found] ` <213411.97989.qm-1S7A5l4uV2KvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>
2008-05-16 19:54   ` I2C device driver to simutaneously support 2 devices Jean Delvare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=213411.97989.qm@web30304.mail.mud.yahoo.com \
    --to=weiliang10-/e1597as9lqavxtiumwx3w@public.gmane.org \
    --cc=i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox