public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* Re: New Style I2C Driver : how to get clients ?
@ 2008-07-24 12:52 fuhz-GANU6spQydw
       [not found] ` <1216903949.48887b0dd2039-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
  0 siblings, 1 reply; 16+ messages in thread
From: fuhz-GANU6spQydw @ 2008-07-24 12:52 UTC (permalink / raw)
  To: i2c-GZX6beZjE8VD60Wz+7aTrA

Hi,

Thank you for your fast answer.


So, I added the register_board_info in my board init function.
I fill the i2c_board_info structure with the macro I2C_BOARD_INFO.
I define a few clients.

And so what ?

The system is supposed to call the probe(client) of the driver ?


I am really lost. I did not anderstand how to get a valid client instance.
I suppose the I2C layer says "Hey boy, you have a new client !", but when ?


What about 'static unsigned short probe[2] = { I2C_CLIENT_END, I2C_CLIENT_END
};'.
Can it help me ?


Thank you in advance.


Best regards,

Légion.

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

^ permalink raw reply	[flat|nested] 16+ messages in thread
* New Style I2C Driver : how to get clients ?
@ 2008-07-24  9:07 fuhz-GANU6spQydw
       [not found] ` <1216890432.48884640c4486-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
  0 siblings, 1 reply; 16+ messages in thread
From: fuhz-GANU6spQydw @ 2008-07-24  9:07 UTC (permalink / raw)
  To: i2c-GZX6beZjE8VD60Wz+7aTrA

Hello,

I am currently writing a I2C driver for a custom embedded board.
I have read lot about writing I2C driver using Linux I2C layer.

But there are still a few things I don't anderstand.
I am quite confuse.



I have written an algorithm and an adapter. For instance, I just register my
adapter on the module_init.

- Is it important for adapters to be registred as platform_driver ?
- Will it remove the 'forgot to specify physical address' error ?
- Can I ignore 'forgot to specify physical address' error ?


For my driver, I only implement probe(client) and remove(client).

They are never called !!


I thought the I2C layer register automatically the I2C devices present on the
bus.
Am I wrong ?

- How can I specify the addresses of my I2C clients ?
- What about i2c_probe ? Do I need to call it directly ?


Thank you for help.


Best regards.

Légion.

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

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

end of thread, other threads:[~2008-07-28 10:35 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-24 12:52 New Style I2C Driver : how to get clients ? fuhz-GANU6spQydw
     [not found] ` <1216903949.48887b0dd2039-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
2008-07-24 13:16   ` Felipe Balbi
     [not found]     ` <31e679430807240616n4bed86c7sa5c5ce69e066d0b5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-24 14:26       ` fuhz-GANU6spQydw
     [not found]         ` <1216909598.4888911eb6cea-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
2008-07-24 16:11           ` fuhz-GANU6spQydw
     [not found]             ` <1216915913.4888a9c91fc42-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
2008-07-24 18:28               ` Felipe Balbi
2008-07-24 18:23           ` Felipe Balbi
2008-07-24 18:26           ` Felipe Balbi
     [not found]             ` <31e679430807241126l5bcea400ieafcfa082d11783a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-25  9:00               ` fuhz-GANU6spQydw
     [not found]                 ` <1216976458.4889964a5d9e2-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
2008-07-25 14:08                   ` fuhz-GANU6spQydw
     [not found]                     ` <1216994898.4889de52becd3-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
2008-07-25 14:26                       ` Felipe Balbi
     [not found]                         ` <31e679430807250726n3e4b189ehcff5dd02f46872f3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-25 14:30                           ` fuhz-GANU6spQydw
     [not found]                             ` <1216996221.4889e37d41fa3-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
2008-07-28  9:36                               ` fuhz-GANU6spQydw
     [not found]                                 ` <1217237786.488d931ac5b9b-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
2008-07-28  9:59                                   ` Felipe Balbi
     [not found]                                     ` <1217239920.488d9b70baec7@imp.free.fr>
     [not found]                                       ` <1217239920.488d9b70baec7-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
2008-07-28 10:35                                         ` Felipe Balbi
  -- strict thread matches above, loose matches on Subject: below --
2008-07-24  9:07 fuhz-GANU6spQydw
     [not found] ` <1216890432.48884640c4486-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
2008-07-24  9:29   ` Felipe Balbi

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