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