iio:dac: drop assignment of iio_info.driver_module
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:25:53 +0000 (17:25 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Aug 2017 20:26:54 +0000 (21:26 +0100)
The equivalent of this is now done via macro magic when
the relevant register call is made.  The actual structure
element will shortly go away.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
27 files changed:
drivers/iio/dac/ad5064.c
drivers/iio/dac/ad5360.c
drivers/iio/dac/ad5380.c
drivers/iio/dac/ad5421.c
drivers/iio/dac/ad5446.c
drivers/iio/dac/ad5449.c
drivers/iio/dac/ad5504.c
drivers/iio/dac/ad5592r-base.c
drivers/iio/dac/ad5624r_spi.c
drivers/iio/dac/ad5686.c
drivers/iio/dac/ad5755.c
drivers/iio/dac/ad5761.c
drivers/iio/dac/ad5764.c
drivers/iio/dac/ad5791.c
drivers/iio/dac/ad7303.c
drivers/iio/dac/ad8801.c
drivers/iio/dac/cio-dac.c
drivers/iio/dac/dpot-dac.c
drivers/iio/dac/lpc18xx_dac.c
drivers/iio/dac/ltc2632.c
drivers/iio/dac/m62332.c
drivers/iio/dac/max517.c
drivers/iio/dac/max5821.c
drivers/iio/dac/mcp4725.c
drivers/iio/dac/mcp4922.c
drivers/iio/dac/stm32-dac.c
drivers/iio/dac/vf610_dac.c

index 3f9399c..bf4fc40 100644 (file)
@@ -366,7 +366,6 @@ static int ad5064_write_raw(struct iio_dev *indio_dev,
 static const struct iio_info ad5064_info = {
        .read_raw = ad5064_read_raw,
        .write_raw = ad5064_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_chan_spec_ext_info ad5064_ext_info[] = {
index 8ba0e9c..0209316 100644 (file)
@@ -425,7 +425,6 @@ static const struct iio_info ad5360_info = {
        .read_raw = ad5360_read_raw,
        .write_raw = ad5360_write_raw,
        .attrs = &ad5360_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static const char * const ad5360_vref_name[] = {
index 97d2c51..845fd1c 100644 (file)
@@ -237,7 +237,6 @@ static int ad5380_read_raw(struct iio_dev *indio_dev,
 static const struct iio_info ad5380_info = {
        .read_raw = ad5380_read_raw,
        .write_raw = ad5380_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static struct iio_chan_spec_ext_info ad5380_ext_info[] = {
index 559061a..8e9633d 100644 (file)
@@ -465,7 +465,6 @@ static const struct iio_info ad5421_info = {
        .read_event_config =    ad5421_read_event_config,
        .write_event_config =   ad5421_write_event_config,
        .read_event_value =     ad5421_read_event_value,
-       .driver_module =        THIS_MODULE,
 };
 
 static int ad5421_probe(struct spi_device *spi)
index b555552..c6c22f3 100644 (file)
@@ -212,7 +212,6 @@ static int ad5446_write_raw(struct iio_dev *indio_dev,
 static const struct iio_info ad5446_info = {
        .read_raw = ad5446_read_raw,
        .write_raw = ad5446_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int ad5446_probe(struct device *dev, const char *name,
index 5f32023..317a741 100644 (file)
@@ -193,7 +193,6 @@ static int ad5449_write_raw(struct iio_dev *indio_dev,
 static const struct iio_info ad5449_info = {
        .read_raw = ad5449_read_raw,
        .write_raw = ad5449_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 #define AD5449_CHANNEL(chan, bits) {                           \
index 712d86b..d9037ea 100644 (file)
@@ -232,7 +232,6 @@ static const struct iio_info ad5504_info = {
        .write_raw = ad5504_write_raw,
        .read_raw = ad5504_read_raw,
        .event_attrs = &ad5504_ev_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_chan_spec_ext_info ad5504_ext_info[] = {
index 69bde59..9234c6a 100644 (file)
@@ -474,7 +474,6 @@ static const struct iio_info ad5592r_info = {
        .read_raw = ad5592r_read_raw,
        .write_raw = ad5592r_write_raw,
        .write_raw_get_fmt = ad5592r_write_raw_get_fmt,
-       .driver_module = THIS_MODULE,
 };
 
 static ssize_t ad5592r_show_scale_available(struct iio_dev *iio_dev,
index 5489ec4..13fdb4d 100644 (file)
@@ -149,7 +149,6 @@ static ssize_t ad5624r_write_dac_powerdown(struct iio_dev *indio_dev,
 static const struct iio_info ad5624r_info = {
        .write_raw = ad5624r_write_raw,
        .read_raw = ad5624r_read_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_chan_spec_ext_info ad5624r_ext_info[] = {
index d1d8450..20254df 100644 (file)
@@ -252,7 +252,6 @@ static int ad5686_write_raw(struct iio_dev *indio_dev,
 static const struct iio_info ad5686_info = {
        .read_raw = ad5686_read_raw,
        .write_raw = ad5686_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_chan_spec_ext_info ad5686_ext_info[] = {
index 5f79682..2d03cc8 100644 (file)
@@ -417,7 +417,6 @@ static ssize_t ad5755_write_powerdown(struct iio_dev *indio_dev, uintptr_t priv,
 static const struct iio_info ad5755_info = {
        .read_raw = ad5755_read_raw,
        .write_raw = ad5755_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_chan_spec_ext_info ad5755_ext_info[] = {
index d6510d6..05017c8 100644 (file)
@@ -251,7 +251,6 @@ static int ad5761_write_raw(struct iio_dev *indio_dev,
 static const struct iio_info ad5761_info = {
        .read_raw = &ad5761_read_raw,
        .write_raw = &ad5761_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 #define AD5761_CHAN(_bits) {                           \
index 9a547bb..033f20e 100644 (file)
@@ -268,7 +268,6 @@ static int ad5764_read_raw(struct iio_dev *indio_dev,
 static const struct iio_info ad5764_info = {
        .read_raw = ad5764_read_raw,
        .write_raw = ad5764_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int ad5764_probe(struct spi_device *spi)
index 33e4ae5..7569bf6 100644 (file)
@@ -340,7 +340,6 @@ static int ad5791_write_raw(struct iio_dev *indio_dev,
 static const struct iio_info ad5791_info = {
        .read_raw = &ad5791_read_raw,
        .write_raw = &ad5791_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int ad5791_probe(struct spi_device *spi)
index 4b0f942..8f3bd19 100644 (file)
@@ -161,7 +161,6 @@ static int ad7303_write_raw(struct iio_dev *indio_dev,
 static const struct iio_info ad7303_info = {
        .read_raw = ad7303_read_raw,
        .write_raw = ad7303_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_chan_spec_ext_info ad7303_ext_info[] = {
index f06faa1..aef5808 100644 (file)
@@ -92,7 +92,6 @@ static int ad8801_read_raw(struct iio_dev *indio_dev,
 static const struct iio_info ad8801_info = {
        .read_raw = ad8801_read_raw,
        .write_raw = ad8801_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 #define AD8801_CHANNEL(chan) {         \
index a8dffd9..6898b0c 100644 (file)
@@ -85,7 +85,6 @@ static int cio_dac_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info cio_dac_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = cio_dac_read_raw,
        .write_raw = cio_dac_write_raw
 };
index 960a2b4..aaa2103 100644 (file)
@@ -128,7 +128,6 @@ static const struct iio_info dpot_dac_info = {
        .read_raw = dpot_dac_read_raw,
        .read_avail = dpot_dac_read_avail,
        .write_raw = dpot_dac_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int dpot_dac_channel_max_ohms(struct iio_dev *indio_dev)
index 55d1456..7036f77 100644 (file)
@@ -103,7 +103,6 @@ static int lpc18xx_dac_write_raw(struct iio_dev *indio_dev,
 static const struct iio_info lpc18xx_dac_info = {
        .read_raw = lpc18xx_dac_read_raw,
        .write_raw = lpc18xx_dac_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int lpc18xx_dac_probe(struct platform_device *pdev)
index ac5e05f..af2ddd0 100644 (file)
@@ -159,7 +159,6 @@ static ssize_t ltc2632_write_dac_powerdown(struct iio_dev *indio_dev,
 static const struct iio_info ltc2632_info = {
        .write_raw      = ltc2632_write_raw,
        .read_raw       = ltc2632_read_raw,
-       .driver_module  = THIS_MODULE,
 };
 
 static const struct iio_chan_spec_ext_info ltc2632_ext_info[] = {
index 76e8b04..1903194 100644 (file)
@@ -174,7 +174,6 @@ static SIMPLE_DEV_PM_OPS(m62332_pm_ops, m62332_suspend, m62332_resume);
 static const struct iio_info m62332_info = {
        .read_raw = m62332_read_raw,
        .write_raw = m62332_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 #define M62332_CHANNEL(chan) {                                 \
index 5507b39..1d85324 100644 (file)
@@ -137,7 +137,6 @@ static SIMPLE_DEV_PM_OPS(max517_pm_ops, max517_suspend, max517_resume);
 static const struct iio_info max517_info = {
        .read_raw = max517_read_raw,
        .write_raw = max517_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 #define MAX517_CHANNEL(chan) {                         \
index 193fac3..d0ecc1f 100644 (file)
@@ -300,7 +300,6 @@ static SIMPLE_DEV_PM_OPS(max5821_pm_ops, max5821_suspend, max5821_resume);
 static const struct iio_info max5821_info = {
        .read_raw = max5821_read_raw,
        .write_raw = max5821_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int max5821_probe(struct i2c_client *client,
index 6ab1f23..afa856d 100644 (file)
@@ -363,7 +363,6 @@ static const struct iio_info mcp4725_info = {
        .read_raw = mcp4725_read_raw,
        .write_raw = mcp4725_write_raw,
        .attrs = &mcp4725_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 #ifdef CONFIG_OF
index 3854d20..bf9aa3f 100644 (file)
@@ -119,7 +119,6 @@ static const struct iio_chan_spec mcp4922_channels[3][MCP4922_NUM_CHANNELS] = {
 static const struct iio_info mcp4922_info = {
        .read_raw = &mcp4922_read_raw,
        .write_raw = &mcp4922_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int mcp4922_probe(struct spi_device *spi)
index c1864e8..9ffab02 100644 (file)
@@ -156,7 +156,6 @@ static const struct iio_info stm32_dac_iio_info = {
        .read_raw = stm32_dac_read_raw,
        .write_raw = stm32_dac_write_raw,
        .debugfs_reg_access = stm32_dac_debugfs_reg_access,
-       .driver_module = THIS_MODULE,
 };
 
 static const char * const stm32_dac_powerdown_modes[] = {
index c4ec777..5dccdd1 100644 (file)
@@ -167,7 +167,6 @@ static int vf610_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info vf610_dac_iio_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = &vf610_read_raw,
        .write_raw = &vf610_write_raw,
 };