From: Lars-Peter Clausen Date: Wed, 16 Nov 2011 09:13:36 +0000 (+0100) Subject: I2C: Add helper macro for i2c_driver boilerplate X-Git-Tag: v3.3-rc1~30^2~1^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c92784a546d2945b6d6973a30f7134be78eb7a4;p=pandora-kernel.git I2C: Add helper macro for i2c_driver boilerplate 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 a few lines of boilerplate code per I2C driver. Signed-off-by: Lars-Peter Clausen Acked-by: Grant Likely Acked-by: Jonathan Cameron Acked-by: Wolfram Sang Acked-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed