[PATCH 2/5] I2C: Add helper macro for i2c_driver boilerplate

2011-11-16 Thread Lars-Peter Clausen
This patch introduces the module_i2c_driver macro which is a convenience macro for I2C driver modules similar to module_platform_driver. It is intended to be used by drivers which init/exit section does nothing but register/unregister the I2C driver. By using this macro it is possible to eliminate

Re: [PATCH 2/5] I2C: Add helper macro for i2c_driver boilerplate

2011-11-16 Thread Grant Likely
On Wed, Nov 16, 2011 at 2:13 AM, Lars-Peter Clausen l...@metafoo.de wrote: This patch introduces the module_i2c_driver macro which is a convenience macro for I2C driver modules similar to module_platform_driver. It is intended to be used by drivers which init/exit section does nothing but

Re: [PATCH 2/5] I2C: Add helper macro for i2c_driver boilerplate

2011-11-16 Thread Jonathan Cameron
On 11/16/2011 05:12 PM, Grant Likely wrote: On Wed, Nov 16, 2011 at 2:13 AM, Lars-Peter Clausen l...@metafoo.de wrote: This patch introduces the module_i2c_driver macro which is a convenience macro for I2C driver modules similar to module_platform_driver. It is intended to be used by