Question about i2c_xxx function on CONFIG_I2C

2011-06-27 Thread kuninori . morimoto . gx
Dear all I'm using i2c_xxx function on some board. And sometimes I need very small kernel which doesn't need CONFIG_I2C. But then (.config doesn't have CONFIG_I2C), the compile will fail. like this error: implicit declaration of function 'i2c_get_adapter' error: implicit declaration of

Re: Question about i2c_xxx function on CONFIG_I2C

2011-06-27 Thread Jean Delvare
Hi Morimoto, On Mon, 27 Jun 2011 16:00:08 +0900, kuninori.morimoto...@renesas.com wrote: I'm using i2c_xxx function on some board. And sometimes I need very small kernel which doesn't need CONFIG_I2C. But then (.config doesn't have CONFIG_I2C), the compile will fail. like this error:

Re: Need to use a I2C EEPROM on normal x86 architecture

2011-06-27 Thread Christian Gmeiner
2011/6/23 Jean Delvare kh...@linux-fr.org: Hi Christian, On Tue, 21 Jun 2011 13:54:52 +0200, Christian Gmeiner wrote: Hi community, I am working on an embedded x86 device, which has an at24 based eeprom. I am using the i2c_eg20t driver to access the i2c bus. To be able to access the

RE: Question about i2c_xxx function on CONFIG_I2C

2011-06-27 Thread Zhang, Shijie
Hi, I think you can config the kernel using make menuconfig command, go to Device Driver---I2C Suppport Check what you want to disselect. -Original Message- From: linux-i2c-ow...@vger.kernel.org [mailto:linux-i2c-ow...@vger.kernel.org] On Behalf Of kuninori.morimoto...@renesas.com

[PATCH] i2c: Allow i2c_add_numbered_adapter() to assign a bus id.

2011-06-27 Thread Grant Likely
Currently, if an i2c bus driver supports both static and dynamic bus ids, it needs to choose between calling i2c_add_numbered_adapter() and i2c_add_adapter(). This patch makes i2c_add_numbered_adapter() redirect to i2c_add_adapter() if the requested bus id is -1. Signed-off-by: Grant Likely

Re: [PATCH] i2c: Allow i2c_add_numbered_adapter() to assign a bus id.

2011-06-27 Thread Grant Likely
On Mon, Jun 27, 2011 at 12:55 PM, Grant Likely grant.lik...@secretlab.ca wrote: Currently, if an i2c bus driver supports both static and dynamic bus ids, it needs to choose between calling i2c_add_numbered_adapter() and i2c_add_adapter().  This patch makes i2c_add_numbered_adapter() redirect

Re: [PATCH v4 00/18] I2C: OMAP: I2C fixes, removal of cpu_is... from driver

2011-06-27 Thread Kevin Hilman
On Mon, 2011-06-27 at 15:12 -0700, Kevin Hilman wrote: Ping. I don't see this in linux-next yet. Are you planning to queue this for v3.1? Oops, pushed send too soon on this... As this series touches various data files in arch/arm/mach-omap2/* and we have a handful of other changes to

Re: [PATCH v4 00/18] I2C: OMAP: I2C fixes, removal of cpu_is... from driver

2011-06-27 Thread Kevin Hilman
On Wed, 2011-06-15 at 16:33 -0700, Kevin Hilman wrote: Hi Ben, Ben Dooks ben-...@fluff.org writes: On Wed, Jun 01, 2011 at 05:19:26PM -0700, Kevin Hilman wrote: Ben, Please pull in this series from Andy Green for the next merge window. v4 is simply a rebase of Andy's v3

Re: Question about i2c_xxx function on CONFIG_I2C

2011-06-27 Thread kuninori . morimoto . gx
Dear Jean Thank you for your advice I don't think this is a good idea in general. If the kernel lacks I2C support, and your code uses it, then this is dead code, and you're much better excluding that code completely from your build. Most likely you'll be able to drop whole functions. I