From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ayman KHAMOUMA Subject: RE: Need help on selecting one (and only one) i2c bus Date: Mon, 9 Mar 2009 15:52:56 +0100 Message-ID: <000001c9a0c6$bf92af80$b23e81a4@par.st.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Return-path: Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-i2c@vger.kernel.org Do I have to use the ignore_range array ? Once filed, I have nothing to do ? The device I want to probe/send data to is located on bus i2c-0 and at the adresses 0x00 to 0x15 I guess I have to do: static unsigned short ignore_range[] = { 0x00, 0x16, 0xff, 0x01, 0x00, 0xff, 0x02, 0x00, 0xff, I2C_CLIENT_END }; Am I right ? -----Original Message----- From: khamouma [mailto:ayman.khamouma-qxv4g6HH51o@public.gmane.org] Sent: Monday, March 09, 2009 11:59 AM To: 'linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org' Subject: Need help on selecting one (and only one) i2c bus Hello everybody, I'm new on I2C device drivers programming and I'm facing a little problem, I can't find how to select my i2c-0 bus (I have 3 of them: i2c-0, i2c-1 and i2c-2) I'd like my probe function to probe only this bus and ignore the others. I guess I can find the solution with the i2c_address_data structure, but I don't really understand how to use it... Thanks in advance, Ayman KHAMOUMA