staging:iio: Use module_i2c_driver to register I2C drivers
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 16 Nov 2011 09:13:38 +0000 (10:13 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Nov 2011 20:15:39 +0000 (12:15 -0800)
commit6e5af184f810f6150e07339bd23a09c498739c82
tree0e0cbc3375b725df5a432f42e9bdca94402dc5d5
parent3acbb0142d48713a8f65cde678a54f419801c189
staging:iio: Use module_i2c_driver to register I2C drivers

Use the newly introduced module_i2c_driver macro for registering I2C drivers.
This allows us to remove a few lines of boilerplate code.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16 files changed:
drivers/staging/iio/adc/ad7291.c
drivers/staging/iio/adc/ad799x_core.c
drivers/staging/iio/adc/adt7410.c
drivers/staging/iio/adc/max1363_core.c
drivers/staging/iio/addac/adt7316-i2c.c
drivers/staging/iio/cdc/ad7150.c
drivers/staging/iio/cdc/ad7152.c
drivers/staging/iio/cdc/ad7746.c
drivers/staging/iio/dac/max517.c
drivers/staging/iio/impedance-analyzer/ad5933.c
drivers/staging/iio/light/isl29018.c
drivers/staging/iio/light/tsl2563.c
drivers/staging/iio/light/tsl2583.c
drivers/staging/iio/magnetometer/ak8975.c
drivers/staging/iio/magnetometer/hmc5843.c
drivers/staging/iio/meter/ade7854-i2c.c