]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iio:temperature: drop assignment of iio_info.driver_module
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:26:07 +0000 (17:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Aug 2017 21:14:52 +0000 (22:14 +0100)
The equivalent of this is now done via macro magic when
the relevant register call is 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>
drivers/iio/temperature/hid-sensor-temperature.c
drivers/iio/temperature/maxim_thermocouple.c
drivers/iio/temperature/mlx90614.c
drivers/iio/temperature/tmp006.c
drivers/iio/temperature/tmp007.c
drivers/iio/temperature/tsys01.c
drivers/iio/temperature/tsys02d.c

index c01efeca4002e987520e524e226707570e11623f..beaf6fd3e337c6f962bb3dbcd49a482150ca64bf 100644 (file)
@@ -123,7 +123,6 @@ static int temperature_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info temperature_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = &temperature_read_raw,
        .write_raw = &temperature_write_raw,
 };
index d70e2e53d6a78cc5ab8ee073a7e01e5f635483d1..e8b7e0b6c8ad0d114688467f7957e66ec4dc1b29 100644 (file)
@@ -208,7 +208,6 @@ static int maxim_thermocouple_read_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info maxim_thermocouple_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = maxim_thermocouple_read_raw,
 };
 
index 2077eef4095cdc18f82626588626614bda195c4a..d619e8634a00fb93bd526bc3527d8f516d07a8a2 100644 (file)
@@ -400,7 +400,6 @@ static const struct iio_info mlx90614_info = {
        .write_raw = mlx90614_write_raw,
        .write_raw_get_fmt = mlx90614_write_raw_get_fmt,
        .attrs = &mlx90614_attr_group,
-       .driver_module = THIS_MODULE,
 };
 
 #ifdef CONFIG_PM
index 18c9b43c02cb60583a15b29423ef09e449a0121e..a9b5b7cc7836fa2800cc732cd03bca920fd59b91 100644 (file)
@@ -179,7 +179,6 @@ static const struct iio_info tmp006_info = {
        .read_raw = tmp006_read_raw,
        .write_raw = tmp006_write_raw,
        .attrs = &tmp006_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static bool tmp006_check_identification(struct i2c_client *client)
index 0615324d054c2e65a8fd08b292450e5cb6175411..0e3f2d432e107927741a958c892563eb89205530 100644 (file)
@@ -426,7 +426,6 @@ static const struct iio_info tmp007_info = {
        .read_event_value = tmp007_read_thresh,
        .write_event_value = tmp007_write_thresh,
        .attrs = &tmp007_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static bool tmp007_identify(struct i2c_client *client)
index d8aa211d76e42cb543a82b91eac9acffec6c6e4a..3799d007c8e73db6f8f5b6606d5390fc648fc96e 100644 (file)
@@ -111,7 +111,6 @@ static const struct iio_chan_spec tsys01_channels[] = {
 
 static const struct iio_info tsys01_info = {
        .read_raw = tsys01_read_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static bool tsys01_crc_valid(u16 *n_prom)
index c0a19a00038716258a255223fe5709c993e509dc..9b2e56fa5fd5c5a94ff0a2efcb32ea61926d7063 100644 (file)
@@ -120,7 +120,6 @@ static const struct iio_info tsys02d_info = {
        .read_raw = tsys02d_read_raw,
        .write_raw = tsys02d_write_raw,
        .attrs = &tsys02d_attribute_group,
-       .driver_module = THIS_MODULE,
 };
 
 static int tsys02d_probe(struct i2c_client *client,