Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio:light: 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>

authored by

Jonathan Cameron and committed by
Jonathan Cameron
4166b47c 79978a9b

-47
-1
drivers/iio/light/acpi-als.c
··· 171 171 } 172 172 173 173 static const struct iio_info acpi_als_info = { 174 - .driver_module = THIS_MODULE, 175 174 .read_raw = acpi_als_read_raw, 176 175 }; 177 176
-1
drivers/iio/light/adjd_s311.c
··· 245 245 .read_raw = adjd_s311_read_raw, 246 246 .write_raw = adjd_s311_write_raw, 247 247 .update_scan_mode = adjd_s311_update_scan_mode, 248 - .driver_module = THIS_MODULE, 249 248 }; 250 249 251 250 static int adjd_s311_probe(struct i2c_client *client,
-1
drivers/iio/light/al3320a.c
··· 168 168 } 169 169 170 170 static const struct iio_info al3320a_info = { 171 - .driver_module = THIS_MODULE, 172 171 .read_raw = al3320a_read_raw, 173 172 .write_raw = al3320a_write_raw, 174 173 .attrs = &al3320a_attribute_group,
-2
drivers/iio/light/apds9300.c
··· 337 337 } 338 338 339 339 static const struct iio_info apds9300_info_no_irq = { 340 - .driver_module = THIS_MODULE, 341 340 .read_raw = apds9300_read_raw, 342 341 }; 343 342 344 343 static const struct iio_info apds9300_info = { 345 - .driver_module = THIS_MODULE, 346 344 .read_raw = apds9300_read_raw, 347 345 .read_event_value = apds9300_read_thresh, 348 346 .write_event_value = apds9300_write_thresh,
-1
drivers/iio/light/apds9960.c
··· 744 744 } 745 745 746 746 static const struct iio_info apds9960_info = { 747 - .driver_module = THIS_MODULE, 748 747 .attrs = &apds9960_attribute_group, 749 748 .read_raw = apds9960_read_raw, 750 749 .write_raw = apds9960_write_raw,
-1
drivers/iio/light/bh1750.c
··· 217 217 }; 218 218 219 219 static const struct iio_info bh1750_info = { 220 - .driver_module = THIS_MODULE, 221 220 .attrs = &bh1750_attribute_group, 222 221 .read_raw = bh1750_read_raw, 223 222 .write_raw = bh1750_write_raw,
-1
drivers/iio/light/bh1780.c
··· 128 128 } 129 129 130 130 static const struct iio_info bh1780_info = { 131 - .driver_module = THIS_MODULE, 132 131 .read_raw = bh1780_read_raw, 133 132 .debugfs_reg_access = bh1780_debugfs_reg_access, 134 133 };
-1
drivers/iio/light/cm32181.c
··· 292 292 }; 293 293 294 294 static const struct iio_info cm32181_info = { 295 - .driver_module = THIS_MODULE, 296 295 .read_raw = &cm32181_read_raw, 297 296 .write_raw = &cm32181_write_raw, 298 297 .attrs = &cm32181_attribute_group,
-1
drivers/iio/light/cm3232.c
··· 322 322 }; 323 323 324 324 static const struct iio_info cm3232_info = { 325 - .driver_module = THIS_MODULE, 326 325 .read_raw = &cm3232_read_raw, 327 326 .write_raw = &cm3232_write_raw, 328 327 .attrs = &cm3232_attribute_group,
-1
drivers/iio/light/cm3323.c
··· 211 211 } 212 212 213 213 static const struct iio_info cm3323_info = { 214 - .driver_module = THIS_MODULE, 215 214 .read_raw = cm3323_read_raw, 216 215 .write_raw = cm3323_write_raw, 217 216 .attrs = &cm3323_attribute_group,
-1
drivers/iio/light/cm3605.c
··· 126 126 } 127 127 128 128 static const struct iio_info cm3605_info = { 129 - .driver_module = THIS_MODULE, 130 129 .read_raw = cm3605_read_raw, 131 130 }; 132 131
-1
drivers/iio/light/cm36651.c
··· 612 612 }; 613 613 614 614 static const struct iio_info cm36651_info = { 615 - .driver_module = THIS_MODULE, 616 615 .read_raw = &cm36651_read_raw, 617 616 .write_raw = &cm36651_write_raw, 618 617 .read_event_value = &cm36651_read_prox_thresh,
-1
drivers/iio/light/cros_ec_light_prox.c
··· 175 175 static const struct iio_info cros_ec_light_prox_info = { 176 176 .read_raw = &cros_ec_light_prox_read, 177 177 .write_raw = &cros_ec_light_prox_write, 178 - .driver_module = THIS_MODULE, 179 178 }; 180 179 181 180 static int cros_ec_light_prox_probe(struct platform_device *pdev)
-2
drivers/iio/light/gp2ap020a00f.c
··· 1384 1384 .read_event_config = &gp2ap020a00f_read_event_config, 1385 1385 .write_event_value = &gp2ap020a00f_write_event_val, 1386 1386 .write_event_config = &gp2ap020a00f_write_event_config, 1387 - .driver_module = THIS_MODULE, 1388 1387 }; 1389 1388 1390 1389 static int gp2ap020a00f_buffer_postenable(struct iio_dev *indio_dev) ··· 1480 1481 }; 1481 1482 1482 1483 static const struct iio_trigger_ops gp2ap020a00f_trigger_ops = { 1483 - .owner = THIS_MODULE, 1484 1484 }; 1485 1485 1486 1486 static int gp2ap020a00f_probe(struct i2c_client *client,
-1
drivers/iio/light/hid-sensor-als.c
··· 177 177 } 178 178 179 179 static const struct iio_info als_info = { 180 - .driver_module = THIS_MODULE, 181 180 .read_raw = &als_read_raw, 182 181 .write_raw = &als_write_raw, 183 182 };
-1
drivers/iio/light/hid-sensor-prox.c
··· 156 156 } 157 157 158 158 static const struct iio_info prox_info = { 159 - .driver_module = THIS_MODULE, 160 159 .read_raw = &prox_read_raw, 161 160 .write_raw = &prox_write_raw, 162 161 };
-2
drivers/iio/light/isl29018.c
··· 624 624 625 625 static const struct iio_info isl29018_info = { 626 626 .attrs = &isl29018_group, 627 - .driver_module = THIS_MODULE, 628 627 .read_raw = isl29018_read_raw, 629 628 .write_raw = isl29018_write_raw, 630 629 }; 631 630 632 631 static const struct iio_info isl29023_info = { 633 632 .attrs = &isl29023_group, 634 - .driver_module = THIS_MODULE, 635 633 .read_raw = isl29018_read_raw, 636 634 .write_raw = isl29018_write_raw, 637 635 };
-1
drivers/iio/light/isl29028.c
··· 536 536 537 537 static const struct iio_info isl29028_info = { 538 538 .attrs = &isl29108_group, 539 - .driver_module = THIS_MODULE, 540 539 .read_raw = isl29028_read_raw, 541 540 .write_raw = isl29028_write_raw, 542 541 };
-1
drivers/iio/light/isl29125.c
··· 214 214 .read_raw = isl29125_read_raw, 215 215 .write_raw = isl29125_write_raw, 216 216 .attrs = &isl29125_attribute_group, 217 - .driver_module = THIS_MODULE, 218 217 }; 219 218 220 219 static int isl29125_buffer_preenable(struct iio_dev *indio_dev)
-1
drivers/iio/light/jsa1212.c
··· 271 271 }; 272 272 273 273 static const struct iio_info jsa1212_info = { 274 - .driver_module = THIS_MODULE, 275 274 .read_raw = &jsa1212_read_raw, 276 275 }; 277 276
-1
drivers/iio/light/lm3533-als.c
··· 827 827 static const struct iio_info lm3533_als_info = { 828 828 .attrs = &lm3533_als_attribute_group, 829 829 .event_attrs = &lm3533_als_event_attribute_group, 830 - .driver_module = THIS_MODULE, 831 830 .read_raw = &lm3533_als_read_raw, 832 831 }; 833 832
-4
drivers/iio/light/ltr501.c
··· 1158 1158 .read_raw = ltr501_read_raw, 1159 1159 .write_raw = ltr501_write_raw, 1160 1160 .attrs = &ltr501_attribute_group, 1161 - .driver_module = THIS_MODULE, 1162 1161 }; 1163 1162 1164 1163 static const struct iio_info ltr501_info = { ··· 1168 1169 .write_event_value = &ltr501_write_event, 1169 1170 .read_event_config = &ltr501_read_event_config, 1170 1171 .write_event_config = &ltr501_write_event_config, 1171 - .driver_module = THIS_MODULE, 1172 1172 }; 1173 1173 1174 1174 static const struct iio_info ltr301_info_no_irq = { 1175 1175 .read_raw = ltr501_read_raw, 1176 1176 .write_raw = ltr501_write_raw, 1177 1177 .attrs = &ltr301_attribute_group, 1178 - .driver_module = THIS_MODULE, 1179 1178 }; 1180 1179 1181 1180 static const struct iio_info ltr301_info = { ··· 1184 1187 .write_event_value = &ltr501_write_event, 1185 1188 .read_event_config = &ltr501_read_event_config, 1186 1189 .write_event_config = &ltr501_write_event_config, 1187 - .driver_module = THIS_MODULE, 1188 1190 }; 1189 1191 1190 1192 static struct ltr501_chip_info ltr501_chip_info_tbl[] = {
-1
drivers/iio/light/max44000.c
··· 402 402 }; 403 403 404 404 static const struct iio_info max44000_info = { 405 - .driver_module = THIS_MODULE, 406 405 .read_raw = max44000_read_raw, 407 406 .write_raw = max44000_write_raw, 408 407 .write_raw_get_fmt = max44000_write_raw_get_fmt,
-1
drivers/iio/light/opt3001.c
··· 585 585 } 586 586 587 587 static const struct iio_info opt3001_info = { 588 - .driver_module = THIS_MODULE, 589 588 .attrs = &opt3001_attribute_group, 590 589 .read_raw = opt3001_read_raw, 591 590 .write_raw = opt3001_write_raw,
-1
drivers/iio/light/pa12203001.c
··· 306 306 } 307 307 308 308 static const struct iio_info pa12203001_info = { 309 - .driver_module = THIS_MODULE, 310 309 .read_raw = pa12203001_read_raw, 311 310 .write_raw = pa12203001_write_raw, 312 311 .attrs = &pa12203001_attr_group,
-2
drivers/iio/light/rpr0521.c
··· 538 538 539 539 static const struct iio_trigger_ops rpr0521_trigger_ops = { 540 540 .set_trigger_state = rpr0521_pxs_drdy_set_state, 541 - .owner = THIS_MODULE, 542 541 }; 543 542 544 543 ··· 829 830 } 830 831 831 832 static const struct iio_info rpr0521_info = { 832 - .driver_module = THIS_MODULE, 833 833 .read_raw = rpr0521_read_raw, 834 834 .write_raw = rpr0521_write_raw, 835 835 .attrs = &rpr0521_attribute_group,
-3
drivers/iio/light/si1145.c
··· 989 989 static const struct iio_info si1132_info = { 990 990 .read_raw = si1145_read_raw, 991 991 .write_raw = si1145_write_raw, 992 - .driver_module = THIS_MODULE, 993 992 .attrs = &si1132_attribute_group, 994 993 }; 995 994 996 995 static const struct iio_info si114x_info = { 997 996 .read_raw = si1145_read_raw, 998 997 .write_raw = si1145_write_raw, 999 - .driver_module = THIS_MODULE, 1000 998 .attrs = &si114x_attribute_group, 1001 999 }; 1002 1000 ··· 1235 1237 } 1236 1238 1237 1239 static const struct iio_trigger_ops si1145_trigger_ops = { 1238 - .owner = THIS_MODULE, 1239 1240 .set_trigger_state = si1145_trigger_set_state, 1240 1241 }; 1241 1242
-1
drivers/iio/light/stk3310.c
··· 409 409 } 410 410 411 411 static const struct iio_info stk3310_info = { 412 - .driver_module = THIS_MODULE, 413 412 .read_raw = stk3310_read_raw, 414 413 .write_raw = stk3310_write_raw, 415 414 .attrs = &stk3310_attribute_group,
-1
drivers/iio/light/tcs3414.c
··· 241 241 .read_raw = tcs3414_read_raw, 242 242 .write_raw = tcs3414_write_raw, 243 243 .attrs = &tcs3414_attribute_group, 244 - .driver_module = THIS_MODULE, 245 244 }; 246 245 247 246 static int tcs3414_buffer_preenable(struct iio_dev *indio_dev)
-1
drivers/iio/light/tcs3472.c
··· 246 246 .read_raw = tcs3472_read_raw, 247 247 .write_raw = tcs3472_write_raw, 248 248 .attrs = &tcs3472_attribute_group, 249 - .driver_module = THIS_MODULE, 250 249 }; 251 250 252 251 static int tcs3472_probe(struct i2c_client *client,
-2
drivers/iio/light/tsl2563.c
··· 697 697 } 698 698 699 699 static const struct iio_info tsl2563_info_no_irq = { 700 - .driver_module = THIS_MODULE, 701 700 .read_raw = &tsl2563_read_raw, 702 701 .write_raw = &tsl2563_write_raw, 703 702 }; 704 703 705 704 static const struct iio_info tsl2563_info = { 706 - .driver_module = THIS_MODULE, 707 705 .read_raw = &tsl2563_read_raw, 708 706 .write_raw = &tsl2563_write_raw, 709 707 .read_event_value = &tsl2563_read_thresh,
-1
drivers/iio/light/tsl2583.c
··· 804 804 805 805 static const struct iio_info tsl2583_info = { 806 806 .attrs = &tsl2583_attribute_group, 807 - .driver_module = THIS_MODULE, 808 807 .read_raw = tsl2583_read_raw, 809 808 .write_raw = tsl2583_write_raw, 810 809 };
-1
drivers/iio/light/tsl4531.c
··· 144 144 .read_raw = tsl4531_read_raw, 145 145 .write_raw = tsl4531_write_raw, 146 146 .attrs = &tsl4531_attribute_group, 147 - .driver_module = THIS_MODULE, 148 147 }; 149 148 150 149 static int tsl4531_check_id(struct i2c_client *client)
-1
drivers/iio/light/us5182d.c
··· 714 714 } 715 715 716 716 static const struct iio_info us5182d_info = { 717 - .driver_module = THIS_MODULE, 718 717 .read_raw = us5182d_read_raw, 719 718 .write_raw = us5182d_write_raw, 720 719 .attrs = &us5182d_attr_group,
-1
drivers/iio/light/vcnl4000.c
··· 155 155 156 156 static const struct iio_info vcnl4000_info = { 157 157 .read_raw = vcnl4000_read_raw, 158 - .driver_module = THIS_MODULE, 159 158 }; 160 159 161 160 static int vcnl4000_probe(struct i2c_client *client,
-1
drivers/iio/light/veml6070.c
··· 136 136 137 137 static const struct iio_info veml6070_info = { 138 138 .read_raw = veml6070_read_raw, 139 - .driver_module = THIS_MODULE, 140 139 }; 141 140 142 141 static int veml6070_probe(struct i2c_client *client,
-1
drivers/iio/light/vl6180.c
··· 429 429 .read_raw = vl6180_read_raw, 430 430 .write_raw = vl6180_write_raw, 431 431 .attrs = &vl6180_attribute_group, 432 - .driver_module = THIS_MODULE, 433 432 }; 434 433 435 434 static int vl6180_init(struct vl6180_data *data)