iio:light: drop assign iio_info.driver_module and iio_trigger_ops.owner
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:26:00 +0000 (17:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Aug 2017 20:31:57 +0000 (21:31 +0100)
The equivalent of both of these are now done via macro magic when
the relevant register calls are made.  The actual structure
elements will shortly go away.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
37 files changed:
drivers/iio/light/acpi-als.c
drivers/iio/light/adjd_s311.c
drivers/iio/light/al3320a.c
drivers/iio/light/apds9300.c
drivers/iio/light/apds9960.c
drivers/iio/light/bh1750.c
drivers/iio/light/bh1780.c
drivers/iio/light/cm32181.c
drivers/iio/light/cm3232.c
drivers/iio/light/cm3323.c
drivers/iio/light/cm3605.c
drivers/iio/light/cm36651.c
drivers/iio/light/cros_ec_light_prox.c
drivers/iio/light/gp2ap020a00f.c
drivers/iio/light/hid-sensor-als.c
drivers/iio/light/hid-sensor-prox.c
drivers/iio/light/isl29018.c
drivers/iio/light/isl29028.c
drivers/iio/light/isl29125.c
drivers/iio/light/jsa1212.c
drivers/iio/light/lm3533-als.c
drivers/iio/light/ltr501.c
drivers/iio/light/max44000.c
drivers/iio/light/opt3001.c
drivers/iio/light/pa12203001.c
drivers/iio/light/rpr0521.c
drivers/iio/light/si1145.c
drivers/iio/light/stk3310.c
drivers/iio/light/tcs3414.c
drivers/iio/light/tcs3472.c
drivers/iio/light/tsl2563.c
drivers/iio/light/tsl2583.c
drivers/iio/light/tsl4531.c
drivers/iio/light/us5182d.c
drivers/iio/light/vcnl4000.c
drivers/iio/light/veml6070.c
drivers/iio/light/vl6180.c

index f0b47c501f4ecf2dba26ddca6fc60c12bd07cc84..c35e2f8df339dcada1aa41ba090a66698681cd23 100644 (file)
@@ -171,7 +171,6 @@ static int acpi_als_read_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info acpi_als_info = {
-       .driver_module          = THIS_MODULE,
        .read_raw               = acpi_als_read_raw,
 };
 
index 0113fc843a8106b83d23b1ad01a81c732feda84e..e45bb6a277c2ff9a4b7e60e78554057984ed3069 100644 (file)
@@ -245,7 +245,6 @@ static const struct iio_info adjd_s311_info = {
        .read_raw = adjd_s311_read_raw,
        .write_raw = adjd_s311_write_raw,
        .update_scan_mode = adjd_s311_update_scan_mode,
-       .driver_module = THIS_MODULE,
 };
 
 static int adjd_s311_probe(struct i2c_client *client,
index 6aac6513fd4121eb13d1e9c25616eb7e99d47bcb..66623facea9aed74f42d827399fffb56032eaaab 100644 (file)
@@ -168,7 +168,6 @@ static int al3320a_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info al3320a_info = {
-       .driver_module  = THIS_MODULE,
        .read_raw       = al3320a_read_raw,
        .write_raw      = al3320a_write_raw,
        .attrs          = &al3320a_attribute_group,
index 05eacd1ee40f2874553d5072db62ddeaa3cb9318..5c15736fb93eb928bdb469d73370d11f8b9a4095 100644 (file)
@@ -337,12 +337,10 @@ static int apds9300_write_interrupt_config(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info apds9300_info_no_irq = {
-       .driver_module  = THIS_MODULE,
        .read_raw       = apds9300_read_raw,
 };
 
 static const struct iio_info apds9300_info = {
-       .driver_module          = THIS_MODULE,
        .read_raw               = apds9300_read_raw,
        .read_event_value       = apds9300_read_thresh,
        .write_event_value      = apds9300_write_thresh,
index 518a47e9377b031130d3e562e818c3a463a1c18f..a8fa00e31c391df5061c29409e2114cf40a212dc 100644 (file)
@@ -744,7 +744,6 @@ static int apds9960_write_event_config(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info apds9960_info = {
-       .driver_module = THIS_MODULE,
        .attrs = &apds9960_attribute_group,
        .read_raw = apds9960_read_raw,
        .write_raw = apds9960_write_raw,
index 6c61187e630fd9a8bb088faafed623e67827d297..a814828e69f5c3c47de3c3a95a8131d042dbbec5 100644 (file)
@@ -217,7 +217,6 @@ static const struct attribute_group bh1750_attribute_group = {
 };
 
 static const struct iio_info bh1750_info = {
-       .driver_module = THIS_MODULE,
        .attrs = &bh1750_attribute_group,
        .read_raw = bh1750_read_raw,
        .write_raw = bh1750_write_raw,
index b54dcba05a8294d988d6bf5421cca21f01224159..036f3bbe323c3138f5a924ee602887ff427b7191 100644 (file)
@@ -128,7 +128,6 @@ static int bh1780_read_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info bh1780_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = bh1780_read_raw,
        .debugfs_reg_access = bh1780_debugfs_reg_access,
 };
index d6fd0dace74f24bf853c2e45d7171c1c115c8ba7..aebf7dd071af1fe3691a70a4d689931d3c223ccf 100644 (file)
@@ -292,7 +292,6 @@ static const struct attribute_group cm32181_attribute_group = {
 };
 
 static const struct iio_info cm32181_info = {
-       .driver_module          = THIS_MODULE,
        .read_raw               = &cm32181_read_raw,
        .write_raw              = &cm32181_write_raw,
        .attrs                  = &cm32181_attribute_group,
index 263e97235ea06f436a6d39a6e1cd3efdd6de81c7..c639cf276ee6dda23e1aca2908fccabaf5e3ead4 100644 (file)
@@ -322,7 +322,6 @@ static const struct attribute_group cm3232_attribute_group = {
 };
 
 static const struct iio_info cm3232_info = {
-       .driver_module          = THIS_MODULE,
        .read_raw               = &cm3232_read_raw,
        .write_raw              = &cm3232_write_raw,
        .attrs                  = &cm3232_attribute_group,
index d823c112d54bdbbf9b656e6eb8790c327cc1ccd8..83b08b6dc60f77dd905e5d3db1aef4a5dc182ea7 100644 (file)
@@ -211,7 +211,6 @@ static int cm3323_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info cm3323_info = {
-       .driver_module  = THIS_MODULE,
        .read_raw       = cm3323_read_raw,
        .write_raw      = cm3323_write_raw,
        .attrs          = &cm3323_attribute_group,
index 980624e9ffb511b6b4f3a350a059f0f1afad6c99..e454bc6a33c6b109d8cc1adbe88267c4ed032b67 100644 (file)
@@ -126,7 +126,6 @@ static int cm3605_read_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info cm3605_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = cm3605_read_raw,
 };
 
index 9d66e89c57ef6d6aba8bd78c26f5b55d979441e5..1dd8ed0121b3845f45623efa581f91ba2fe65a8d 100644 (file)
@@ -612,7 +612,6 @@ static const struct attribute_group cm36651_attribute_group = {
 };
 
 static const struct iio_info cm36651_info = {
-       .driver_module          = THIS_MODULE,
        .read_raw               = &cm36651_read_raw,
        .write_raw              = &cm36651_write_raw,
        .read_event_value       = &cm36651_read_prox_thresh,
index 721722376fd09835cb995142a0b381507afae3e5..b2a46b390d5c08c14896e09bd9d78bf6a89e2780 100644 (file)
@@ -175,7 +175,6 @@ static int cros_ec_light_prox_write(struct iio_dev *indio_dev,
 static const struct iio_info cros_ec_light_prox_info = {
        .read_raw = &cros_ec_light_prox_read,
        .write_raw = &cros_ec_light_prox_write,
-       .driver_module = THIS_MODULE,
 };
 
 static int cros_ec_light_prox_probe(struct platform_device *pdev)
index 6ada9149f1422b644a7340a770fa7f1537595a99..44b13fbcd0937c272743a2fd7e8596a3e0467795 100644 (file)
@@ -1384,7 +1384,6 @@ static const struct iio_info gp2ap020a00f_info = {
        .read_event_config = &gp2ap020a00f_read_event_config,
        .write_event_value = &gp2ap020a00f_write_event_val,
        .write_event_config = &gp2ap020a00f_write_event_config,
-       .driver_module = THIS_MODULE,
 };
 
 static int gp2ap020a00f_buffer_postenable(struct iio_dev *indio_dev)
@@ -1481,7 +1480,6 @@ static const struct iio_buffer_setup_ops gp2ap020a00f_buffer_setup_ops = {
 };
 
 static const struct iio_trigger_ops gp2ap020a00f_trigger_ops = {
-       .owner = THIS_MODULE,
 };
 
 static int gp2ap020a00f_probe(struct i2c_client *client,
index 059d964772c73e8e3a19d7d04169478787a9e40d..befd693a4a3170c9ac5b2251616283c3671c6d7c 100644 (file)
@@ -177,7 +177,6 @@ static int als_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info als_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = &als_read_raw,
        .write_raw = &als_write_raw,
 };
index 73fced8a63b717d9604af85b078aa719979ba806..45107f7537b5d8e0911f381c0ef2289d19b7730e 100644 (file)
@@ -156,7 +156,6 @@ static int prox_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info prox_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = &prox_read_raw,
        .write_raw = &prox_write_raw,
 };
index 61f5924b472d9651e1f84c84156e3281be549fdb..b45400f8fef4f54df6d00ea1e80c04eb69285cc1 100644 (file)
@@ -624,14 +624,12 @@ static int isl29018_chip_init(struct isl29018_chip *chip)
 
 static const struct iio_info isl29018_info = {
        .attrs = &isl29018_group,
-       .driver_module = THIS_MODULE,
        .read_raw = isl29018_read_raw,
        .write_raw = isl29018_write_raw,
 };
 
 static const struct iio_info isl29023_info = {
        .attrs = &isl29023_group,
-       .driver_module = THIS_MODULE,
        .read_raw = isl29018_read_raw,
        .write_raw = isl29018_write_raw,
 };
index 3d09c1fc4dad060ea872480d80f07ae5895ad022..f9912ab4f65c08c2777ec000a136f419a8a2002c 100644 (file)
@@ -536,7 +536,6 @@ static const struct iio_chan_spec isl29028_channels[] = {
 
 static const struct iio_info isl29028_info = {
        .attrs = &isl29108_group,
-       .driver_module = THIS_MODULE,
        .read_raw = isl29028_read_raw,
        .write_raw = isl29028_write_raw,
 };
index 1d2c0c8a1d4f063dfa2db4a125889c23d8acc8ee..ed38edcd5efe7e230bba3af3696dc8b0cdb203cd 100644 (file)
@@ -214,7 +214,6 @@ static const struct iio_info isl29125_info = {
        .read_raw = isl29125_read_raw,
        .write_raw = isl29125_write_raw,
        .attrs = &isl29125_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static int isl29125_buffer_preenable(struct iio_dev *indio_dev)
index e8a8931b4f50d0a2c1db1959a05b6722b2621d25..811505d925b341ba27fc2738cc5dd3d062191890 100644 (file)
@@ -271,7 +271,6 @@ static const struct iio_chan_spec jsa1212_channels[] = {
 };
 
 static const struct iio_info jsa1212_info = {
-       .driver_module          = THIS_MODULE,
        .read_raw               = &jsa1212_read_raw,
 };
 
index 0443fd2e8757a651014ac840df19dbb68a2d8284..36208a3652e913c35dac55122bda6b4ac1624e34 100644 (file)
@@ -827,7 +827,6 @@ static int lm3533_als_disable(struct lm3533_als *als)
 static const struct iio_info lm3533_als_info = {
        .attrs          = &lm3533_als_attribute_group,
        .event_attrs    = &lm3533_als_event_attribute_group,
-       .driver_module  = THIS_MODULE,
        .read_raw       = &lm3533_als_read_raw,
 };
 
index 67838edd8b37fbad0e6289f249c223e99f221740..830a2d45aa4dd4e7fb7ed7cbac5431c3011aba88 100644 (file)
@@ -1158,7 +1158,6 @@ static const struct iio_info ltr501_info_no_irq = {
        .read_raw = ltr501_read_raw,
        .write_raw = ltr501_write_raw,
        .attrs = &ltr501_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_info ltr501_info = {
@@ -1169,14 +1168,12 @@ static const struct iio_info ltr501_info = {
        .write_event_value      = &ltr501_write_event,
        .read_event_config      = &ltr501_read_event_config,
        .write_event_config     = &ltr501_write_event_config,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_info ltr301_info_no_irq = {
        .read_raw = ltr501_read_raw,
        .write_raw = ltr501_write_raw,
        .attrs = &ltr301_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static const struct iio_info ltr301_info = {
@@ -1187,7 +1184,6 @@ static const struct iio_info ltr301_info = {
        .write_event_value      = &ltr501_write_event,
        .read_event_config      = &ltr501_read_event_config,
        .write_event_config     = &ltr501_write_event_config,
-       .driver_module = THIS_MODULE,
 };
 
 static struct ltr501_chip_info ltr501_chip_info_tbl[] = {
index 81bd8e8da4a69af929760bfe1c12716fe16de972..bcdb0eb9e5371f05a35ca91eb1daaa7337ac12f1 100644 (file)
@@ -402,7 +402,6 @@ static const struct attribute_group max44000_attribute_group = {
 };
 
 static const struct iio_info max44000_info = {
-       .driver_module          = THIS_MODULE,
        .read_raw               = max44000_read_raw,
        .write_raw              = max44000_write_raw,
        .write_raw_get_fmt      = max44000_write_raw_get_fmt,
index b91ebc3483cea336b9dc4043e013cdf862bbf6a6..54d88b60e30359be56561767c668fbd3a46e2969 100644 (file)
@@ -585,7 +585,6 @@ err:
 }
 
 static const struct iio_info opt3001_info = {
-       .driver_module = THIS_MODULE,
        .attrs = &opt3001_attribute_group,
        .read_raw = opt3001_read_raw,
        .write_raw = opt3001_write_raw,
index 76a9e12b46bc45e50896b2abfb1513b577560667..30ea1a088dd907993ca74440bf769fdf0776777a 100644 (file)
@@ -306,7 +306,6 @@ static int pa12203001_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info pa12203001_info = {
-       .driver_module  = THIS_MODULE,
        .read_raw = pa12203001_read_raw,
        .write_raw = pa12203001_write_raw,
        .attrs = &pa12203001_attr_group,
index a6efa12613a26234d6b2135b935b7a825714e8d2..ffe9ce798ea2d73b2cd952afb1ec8d0647876473 100644 (file)
@@ -538,7 +538,6 @@ static int rpr0521_pxs_drdy_set_state(struct iio_trigger *trigger,
 
 static const struct iio_trigger_ops rpr0521_trigger_ops = {
        .set_trigger_state = rpr0521_pxs_drdy_set_state,
-       .owner = THIS_MODULE,
        };
 
 
@@ -830,7 +829,6 @@ static int rpr0521_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info rpr0521_info = {
-       .driver_module  = THIS_MODULE,
        .read_raw       = rpr0521_read_raw,
        .write_raw      = rpr0521_write_raw,
        .attrs          = &rpr0521_attribute_group,
index 096034c126a456216df8024e7fad419b845fd272..76f16f9c7616401141c0697c27c2c8986e7c4614 100644 (file)
@@ -989,14 +989,12 @@ static const struct attribute_group si114x_attribute_group = {
 static const struct iio_info si1132_info = {
        .read_raw = si1145_read_raw,
        .write_raw = si1145_write_raw,
-       .driver_module = THIS_MODULE,
        .attrs = &si1132_attribute_group,
 };
 
 static const struct iio_info si114x_info = {
        .read_raw = si1145_read_raw,
        .write_raw = si1145_write_raw,
-       .driver_module = THIS_MODULE,
        .attrs = &si114x_attribute_group,
 };
 
@@ -1237,7 +1235,6 @@ disable:
 }
 
 static const struct iio_trigger_ops si1145_trigger_ops = {
-       .owner = THIS_MODULE,
        .set_trigger_state = si1145_trigger_set_state,
 };
 
index 45cf8b0a43637863456240d6c6bfce9e42db9790..6e2a169da950864609e3f926f6afa1a3047e5a3d 100644 (file)
@@ -409,7 +409,6 @@ static int stk3310_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info stk3310_info = {
-       .driver_module          = THIS_MODULE,
        .read_raw               = stk3310_read_raw,
        .write_raw              = stk3310_write_raw,
        .attrs                  = &stk3310_attribute_group,
index a795afb7667bdeb7ec23987a64aaa897a88ed890..205e5659ce6b5faae1bb13679d085a57041e749d 100644 (file)
@@ -241,7 +241,6 @@ static const struct iio_info tcs3414_info = {
        .read_raw = tcs3414_read_raw,
        .write_raw = tcs3414_write_raw,
        .attrs = &tcs3414_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static int tcs3414_buffer_preenable(struct iio_dev *indio_dev)
index 09e6ca5e332e97aac9e13a54e009ab2f2cd4678d..9540a5c1d7469d93164a135f4d5a396ad71313d7 100644 (file)
@@ -246,7 +246,6 @@ static const struct iio_info tcs3472_info = {
        .read_raw = tcs3472_read_raw,
        .write_raw = tcs3472_write_raw,
        .attrs = &tcs3472_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static int tcs3472_probe(struct i2c_client *client,
index 7599693f7fe9597cb750319ccb2635362c1dc9f0..6bbb0b1e6032aea717d857d22f3327c50dff5fb9 100644 (file)
@@ -697,13 +697,11 @@ static int tsl2563_read_interrupt_config(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info tsl2563_info_no_irq = {
-       .driver_module = THIS_MODULE,
        .read_raw = &tsl2563_read_raw,
        .write_raw = &tsl2563_write_raw,
 };
 
 static const struct iio_info tsl2563_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = &tsl2563_read_raw,
        .write_raw = &tsl2563_write_raw,
        .read_event_value = &tsl2563_read_thresh,
index fb711ed4862e1aa99d0dec658355f431089a105e..f2e50edaa2426a48e57e376983018958f2a3ae31 100644 (file)
@@ -804,7 +804,6 @@ static int tsl2583_write_raw(struct iio_dev *indio_dev,
 
 static const struct iio_info tsl2583_info = {
        .attrs = &tsl2583_attribute_group,
-       .driver_module = THIS_MODULE,
        .read_raw = tsl2583_read_raw,
        .write_raw = tsl2583_write_raw,
 };
index cf94ec72b181fb756e32502b5c83059c1f9388b4..06171cb76e23ec0a8390b80685fb1ed55fe4f632 100644 (file)
@@ -144,7 +144,6 @@ static const struct iio_info tsl4531_info = {
        .read_raw = tsl4531_read_raw,
        .write_raw = tsl4531_write_raw,
        .attrs = &tsl4531_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static int tsl4531_check_id(struct i2c_client *client)
index d571ad7291edc980b13ddc120958cafb5a5815e0..68e52943879abd2f6bd4c40b2c52ee443554a36b 100644 (file)
@@ -714,7 +714,6 @@ err:
 }
 
 static const struct iio_info us5182d_info = {
-       .driver_module  = THIS_MODULE,
        .read_raw = us5182d_read_raw,
        .write_raw = us5182d_write_raw,
        .attrs = &us5182d_attr_group,
index 360b6e98137acbfbd604e6492687f0b34f424de5..c599a90506ad2d250484497bf0ba10d29c3bdb8c 100644 (file)
@@ -155,7 +155,6 @@ static int vcnl4000_read_raw(struct iio_dev *indio_dev,
 
 static const struct iio_info vcnl4000_info = {
        .read_raw = vcnl4000_read_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int vcnl4000_probe(struct i2c_client *client,
index bc1c4cb782cdea5ddd6afaceb11b8f96a622202f..f4bf3c5b5eda0881bdf92872b76c820e4e3eb48a 100644 (file)
@@ -136,7 +136,6 @@ static int veml6070_read_raw(struct iio_dev *indio_dev,
 
 static const struct iio_info veml6070_info = {
        .read_raw = veml6070_read_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static int veml6070_probe(struct i2c_client *client,
index 6e25b724d941dbdb8d5cf5f80f04338aa7f2852c..2306967f574ff2efb8f50dcba19888e1742ed293 100644 (file)
@@ -429,7 +429,6 @@ static const struct iio_info vl6180_info = {
        .read_raw = vl6180_read_raw,
        .write_raw = vl6180_write_raw,
        .attrs = &vl6180_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static int vl6180_init(struct vl6180_data *data)