Эх сурвалжийг харах

iio:temperature: drop assignment of iio_info.driver_module

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>
Jonathan Cameron 8 жил өмнө
parent
commit
5e42916ad9

+ 0 - 1
drivers/iio/temperature/hid-sensor-temperature.c

@@ -123,7 +123,6 @@ static int temperature_write_raw(struct iio_dev *indio_dev,
 }
 }
 
 
 static const struct iio_info temperature_info = {
 static const struct iio_info temperature_info = {
-	.driver_module = THIS_MODULE,
 	.read_raw = &temperature_read_raw,
 	.read_raw = &temperature_read_raw,
 	.write_raw = &temperature_write_raw,
 	.write_raw = &temperature_write_raw,
 };
 };

+ 0 - 1
drivers/iio/temperature/maxim_thermocouple.c

@@ -208,7 +208,6 @@ static int maxim_thermocouple_read_raw(struct iio_dev *indio_dev,
 }
 }
 
 
 static const struct iio_info maxim_thermocouple_info = {
 static const struct iio_info maxim_thermocouple_info = {
-	.driver_module = THIS_MODULE,
 	.read_raw = maxim_thermocouple_read_raw,
 	.read_raw = maxim_thermocouple_read_raw,
 };
 };
 
 

+ 0 - 1
drivers/iio/temperature/mlx90614.c

@@ -400,7 +400,6 @@ static const struct iio_info mlx90614_info = {
 	.write_raw = mlx90614_write_raw,
 	.write_raw = mlx90614_write_raw,
 	.write_raw_get_fmt = mlx90614_write_raw_get_fmt,
 	.write_raw_get_fmt = mlx90614_write_raw_get_fmt,
 	.attrs = &mlx90614_attr_group,
 	.attrs = &mlx90614_attr_group,
-	.driver_module = THIS_MODULE,
 };
 };
 
 
 #ifdef CONFIG_PM
 #ifdef CONFIG_PM

+ 0 - 1
drivers/iio/temperature/tmp006.c

@@ -179,7 +179,6 @@ static const struct iio_info tmp006_info = {
 	.read_raw = tmp006_read_raw,
 	.read_raw = tmp006_read_raw,
 	.write_raw = tmp006_write_raw,
 	.write_raw = tmp006_write_raw,
 	.attrs = &tmp006_attribute_group,
 	.attrs = &tmp006_attribute_group,
-	.driver_module = THIS_MODULE,
 };
 };
 
 
 static bool tmp006_check_identification(struct i2c_client *client)
 static bool tmp006_check_identification(struct i2c_client *client)

+ 0 - 1
drivers/iio/temperature/tmp007.c

@@ -426,7 +426,6 @@ static const struct iio_info tmp007_info = {
 	.read_event_value = tmp007_read_thresh,
 	.read_event_value = tmp007_read_thresh,
 	.write_event_value = tmp007_write_thresh,
 	.write_event_value = tmp007_write_thresh,
 	.attrs = &tmp007_attribute_group,
 	.attrs = &tmp007_attribute_group,
-	.driver_module = THIS_MODULE,
 };
 };
 
 
 static bool tmp007_identify(struct i2c_client *client)
 static bool tmp007_identify(struct i2c_client *client)

+ 0 - 1
drivers/iio/temperature/tsys01.c

@@ -111,7 +111,6 @@ static const struct iio_chan_spec tsys01_channels[] = {
 
 
 static const struct iio_info tsys01_info = {
 static const struct iio_info tsys01_info = {
 	.read_raw = tsys01_read_raw,
 	.read_raw = tsys01_read_raw,
-	.driver_module = THIS_MODULE,
 };
 };
 
 
 static bool tsys01_crc_valid(u16 *n_prom)
 static bool tsys01_crc_valid(u16 *n_prom)

+ 0 - 1
drivers/iio/temperature/tsys02d.c

@@ -120,7 +120,6 @@ static const struct iio_info tsys02d_info = {
 	.read_raw = tsys02d_read_raw,
 	.read_raw = tsys02d_read_raw,
 	.write_raw = tsys02d_write_raw,
 	.write_raw = tsys02d_write_raw,
 	.attrs = &tsys02d_attribute_group,
 	.attrs = &tsys02d_attribute_group,
-	.driver_module = THIS_MODULE,
 };
 };
 
 
 static int tsys02d_probe(struct i2c_client *client,
 static int tsys02d_probe(struct i2c_client *client,