diff options
author | Jonathan Cameron <jic23@kernel.org> | 2017-07-23 12:25:58 -0400 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-08-22 16:30:20 -0400 |
commit | 13a8c6c2a1138309dcf7744cb4db7aea54d8085a (patch) | |
tree | 8d8e99f4e02c475ac3e62bb8848f5ea248ec6a25 | |
parent | 73bba67096986c9fa5eb62811b09ac9b22876d2c (diff) |
iio:humidity: drop assign iio_info.driver_module and iio_trigger_ops.owner
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>
-rw-r--r-- | drivers/iio/humidity/am2315.c | 1 | ||||
-rw-r--r-- | drivers/iio/humidity/dht11.c | 1 | ||||
-rw-r--r-- | drivers/iio/humidity/hdc100x.c | 1 | ||||
-rw-r--r-- | drivers/iio/humidity/hid-sensor-humidity.c | 1 | ||||
-rw-r--r-- | drivers/iio/humidity/hts221_buffer.c | 1 | ||||
-rw-r--r-- | drivers/iio/humidity/hts221_core.c | 1 | ||||
-rw-r--r-- | drivers/iio/humidity/htu21.c | 1 | ||||
-rw-r--r-- | drivers/iio/humidity/si7005.c | 1 | ||||
-rw-r--r-- | drivers/iio/humidity/si7020.c | 1 |
9 files changed, 0 insertions, 9 deletions
diff --git a/drivers/iio/humidity/am2315.c b/drivers/iio/humidity/am2315.c index ff96b6d0fdae..7d8669dc6547 100644 --- a/drivers/iio/humidity/am2315.c +++ b/drivers/iio/humidity/am2315.c | |||
@@ -215,7 +215,6 @@ static int am2315_read_raw(struct iio_dev *indio_dev, | |||
215 | } | 215 | } |
216 | 216 | ||
217 | static const struct iio_info am2315_info = { | 217 | static const struct iio_info am2315_info = { |
218 | .driver_module = THIS_MODULE, | ||
219 | .read_raw = am2315_read_raw, | 218 | .read_raw = am2315_read_raw, |
220 | }; | 219 | }; |
221 | 220 | ||
diff --git a/drivers/iio/humidity/dht11.c b/drivers/iio/humidity/dht11.c index 2a22ad920333..df6bab40d6fa 100644 --- a/drivers/iio/humidity/dht11.c +++ b/drivers/iio/humidity/dht11.c | |||
@@ -284,7 +284,6 @@ err: | |||
284 | } | 284 | } |
285 | 285 | ||
286 | static const struct iio_info dht11_iio_info = { | 286 | static const struct iio_info dht11_iio_info = { |
287 | .driver_module = THIS_MODULE, | ||
288 | .read_raw = dht11_read_raw, | 287 | .read_raw = dht11_read_raw, |
289 | }; | 288 | }; |
290 | 289 | ||
diff --git a/drivers/iio/humidity/hdc100x.c b/drivers/iio/humidity/hdc100x.c index 7851bd90ef64..d8438310b6d4 100644 --- a/drivers/iio/humidity/hdc100x.c +++ b/drivers/iio/humidity/hdc100x.c | |||
@@ -357,7 +357,6 @@ static const struct iio_info hdc100x_info = { | |||
357 | .read_raw = hdc100x_read_raw, | 357 | .read_raw = hdc100x_read_raw, |
358 | .write_raw = hdc100x_write_raw, | 358 | .write_raw = hdc100x_write_raw, |
359 | .attrs = &hdc100x_attribute_group, | 359 | .attrs = &hdc100x_attribute_group, |
360 | .driver_module = THIS_MODULE, | ||
361 | }; | 360 | }; |
362 | 361 | ||
363 | static int hdc100x_probe(struct i2c_client *client, | 362 | static int hdc100x_probe(struct i2c_client *client, |
diff --git a/drivers/iio/humidity/hid-sensor-humidity.c b/drivers/iio/humidity/hid-sensor-humidity.c index 6e09c1acfe51..beab6d6fd6e1 100644 --- a/drivers/iio/humidity/hid-sensor-humidity.c +++ b/drivers/iio/humidity/hid-sensor-humidity.c | |||
@@ -125,7 +125,6 @@ static int humidity_write_raw(struct iio_dev *indio_dev, | |||
125 | } | 125 | } |
126 | 126 | ||
127 | static const struct iio_info humidity_info = { | 127 | static const struct iio_info humidity_info = { |
128 | .driver_module = THIS_MODULE, | ||
129 | .read_raw = &humidity_read_raw, | 128 | .read_raw = &humidity_read_raw, |
130 | .write_raw = &humidity_write_raw, | 129 | .write_raw = &humidity_write_raw, |
131 | }; | 130 | }; |
diff --git a/drivers/iio/humidity/hts221_buffer.c b/drivers/iio/humidity/hts221_buffer.c index 9690dfe9a844..e971ea425268 100644 --- a/drivers/iio/humidity/hts221_buffer.c +++ b/drivers/iio/humidity/hts221_buffer.c | |||
@@ -47,7 +47,6 @@ static int hts221_trig_set_state(struct iio_trigger *trig, bool state) | |||
47 | } | 47 | } |
48 | 48 | ||
49 | static const struct iio_trigger_ops hts221_trigger_ops = { | 49 | static const struct iio_trigger_ops hts221_trigger_ops = { |
50 | .owner = THIS_MODULE, | ||
51 | .set_trigger_state = hts221_trig_set_state, | 50 | .set_trigger_state = hts221_trig_set_state, |
52 | }; | 51 | }; |
53 | 52 | ||
diff --git a/drivers/iio/humidity/hts221_core.c b/drivers/iio/humidity/hts221_core.c index 32524a8dc66f..daef177219b6 100644 --- a/drivers/iio/humidity/hts221_core.c +++ b/drivers/iio/humidity/hts221_core.c | |||
@@ -573,7 +573,6 @@ static const struct attribute_group hts221_attribute_group = { | |||
573 | }; | 573 | }; |
574 | 574 | ||
575 | static const struct iio_info hts221_info = { | 575 | static const struct iio_info hts221_info = { |
576 | .driver_module = THIS_MODULE, | ||
577 | .attrs = &hts221_attribute_group, | 576 | .attrs = &hts221_attribute_group, |
578 | .read_raw = hts221_read_raw, | 577 | .read_raw = hts221_read_raw, |
579 | .write_raw = hts221_write_raw, | 578 | .write_raw = hts221_write_raw, |
diff --git a/drivers/iio/humidity/htu21.c b/drivers/iio/humidity/htu21.c index 2c4b9be85a05..f5a2701ba6dd 100644 --- a/drivers/iio/humidity/htu21.c +++ b/drivers/iio/humidity/htu21.c | |||
@@ -175,7 +175,6 @@ static const struct iio_info htu21_info = { | |||
175 | .read_raw = htu21_read_raw, | 175 | .read_raw = htu21_read_raw, |
176 | .write_raw = htu21_write_raw, | 176 | .write_raw = htu21_write_raw, |
177 | .attrs = &htu21_attribute_group, | 177 | .attrs = &htu21_attribute_group, |
178 | .driver_module = THIS_MODULE, | ||
179 | }; | 178 | }; |
180 | 179 | ||
181 | static int htu21_probe(struct i2c_client *client, | 180 | static int htu21_probe(struct i2c_client *client, |
diff --git a/drivers/iio/humidity/si7005.c b/drivers/iio/humidity/si7005.c index 6297766e93d0..1fd19f035a5d 100644 --- a/drivers/iio/humidity/si7005.c +++ b/drivers/iio/humidity/si7005.c | |||
@@ -124,7 +124,6 @@ static const struct iio_chan_spec si7005_channels[] = { | |||
124 | 124 | ||
125 | static const struct iio_info si7005_info = { | 125 | static const struct iio_info si7005_info = { |
126 | .read_raw = si7005_read_raw, | 126 | .read_raw = si7005_read_raw, |
127 | .driver_module = THIS_MODULE, | ||
128 | }; | 127 | }; |
129 | 128 | ||
130 | static int si7005_probe(struct i2c_client *client, | 129 | static int si7005_probe(struct i2c_client *client, |
diff --git a/drivers/iio/humidity/si7020.c b/drivers/iio/humidity/si7020.c index 345a7656c5ef..1b2ec8df1a72 100644 --- a/drivers/iio/humidity/si7020.c +++ b/drivers/iio/humidity/si7020.c | |||
@@ -108,7 +108,6 @@ static const struct iio_chan_spec si7020_channels[] = { | |||
108 | 108 | ||
109 | static const struct iio_info si7020_info = { | 109 | static const struct iio_info si7020_info = { |
110 | .read_raw = si7020_read_raw, | 110 | .read_raw = si7020_read_raw, |
111 | .driver_module = THIS_MODULE, | ||
112 | }; | 111 | }; |
113 | 112 | ||
114 | static int si7020_probe(struct i2c_client *client, | 113 | static int si7020_probe(struct i2c_client *client, |