iio: Rework i2c_device_id initialisation
Subsystems (61)
v2 cover iio: Rework i2c_device_id initialisation
Hello,
the objective of this series is to convert all i2c_device_id arrays to use named initialization. This is better readable and a prepartion for further cleanups involving changes to i2c_device_id.
Changes since v1:
- Drop driver data from more drivers, v1 only had the first patch that is unmodified. Patches #2 to #6 are new and are handling more complex simplifications in one driver per patch.
- Also convert i2c_device_id entries that don't have assignments for .driver_data in patch #7.
Patch #1 was already applied to the testing branch, I included it here again for completeness.
Patch #7 got a Reviewed-by tag by Linus Walleij. Given the changes in that patch I didn't apply it here.
There is still the patch opportunity in the sx9310 driver pointed out by Jonathan in the v1 thread. I considered that too complex to include it in this cleanup series and wasn't confident to not break the driver given I don't have a device to test. I think the whole .check_whoami() callback should be dropped from all drivers using sx_common and if the whoami register should be checked, just do it in .probe().
Best regards
Uwe
Uwe Kleine-König (The Capable Hub) (7):
iio: Drop unused driver_data in four i2c drivers
iio: accel: bmc150: Explicitly set .driver_data
iio: adc: ad7091r5: Simplify driver_data handling
iio: dac: max5821: Drop unused i2c driver data
iio: proximity: sx9324: Drop unused driver data
iio: proximity: sx9360: Drop unused driver data
iio: Initialize i2c_device_id arrays using member names
drivers/iio/accel/adxl345_i2c.c | 4 +- drivers/iio/accel/adxl355_i2c.c | 4 +- drivers/iio/accel/adxl367_i2c.c | 2 +- drivers/iio/accel/adxl372_i2c.c | 4 +- drivers/iio/accel/adxl380_i2c.c | 8 +- drivers/iio/accel/bma180.c | 10 +- drivers/iio/accel/bma220_i2c.c | 2 +- drivers/iio/accel/bma400_i2c.c | 2 +- drivers/iio/accel/bmc150-accel-i2c.c | 20 ++-- drivers/iio/accel/bmi088-accel-i2c.c | 6 +- drivers/iio/accel/da280.c | 6 +- drivers/iio/accel/da311.c | 2 +- drivers/iio/accel/dmard06.c | 6 +- drivers/iio/accel/dmard09.c | 2 +- drivers/iio/accel/dmard10.c | 2 +- drivers/iio/accel/fxls8962af-i2c.c | 8 +- drivers/iio/accel/kxcjk-1013.c | 10 +- drivers/iio/accel/kxsd9-i2c.c | 2 +- drivers/iio/accel/mc3230.c | 4 +- drivers/iio/accel/mma7455_i2c.c | 4 +- drivers/iio/accel/mma7660.c | 2 +- drivers/iio/accel/mma8452.c | 12 +-- drivers/iio/accel/mma9551.c | 2 +- drivers/iio/accel/mma9553.c | 2 +- drivers/iio/accel/mxc4005.c | 4 +- drivers/iio/accel/mxc6255.c | 4 +- drivers/iio/accel/st_accel_i2c.c | 52 +++++----- drivers/iio/accel/stk8312.c | 4 +- drivers/iio/accel/stk8ba50.c | 2 +- drivers/iio/adc/ad7091r5.c | 12 +-- drivers/iio/adc/ad7291.c | 2 +- drivers/iio/adc/ad799x.c | 16 ++-- drivers/iio/adc/gehc-pmc-adc.c | 2 +- drivers/iio/adc/ina2xx-adc.c | 12 +-- drivers/iio/adc/ltc2309.c | 4 +- drivers/iio/adc/ltc2471.c | 4 +- drivers/iio/adc/ltc2485.c | 2 +- drivers/iio/adc/ltc2497.c | 4 +- drivers/iio/adc/max34408.c | 4 +- drivers/iio/adc/mcp3422.c | 16 ++-- drivers/iio/adc/nau7802.c | 2 +- drivers/iio/adc/pac1921.c | 2 +- drivers/iio/adc/rohm-bd79124.c | 2 +- drivers/iio/adc/ti-adc081c.c | 6 +- drivers/iio/adc/ti-ads1015.c | 6 +- drivers/iio/adc/ti-ads1100.c | 4 +- drivers/iio/adc/ti-ads1119.c | 2 +- drivers/iio/adc/ti-ads7138.c | 4 +- drivers/iio/adc/ti-ads7924.c | 2 +- drivers/iio/cdc/ad7150.c | 6 +- drivers/iio/cdc/ad7746.c | 6 +- drivers/iio/chemical/ags02ma.c | 2 +- drivers/iio/chemical/ams-iaq-core.c | 2 +- drivers/iio/chemical/atlas-ezo-sensor.c | 6 +- drivers/iio/chemical/atlas-sensor.c | 10 +- drivers/iio/chemical/bme680_i2c.c | 2 +- drivers/iio/chemical/ccs811.c | 4 +- drivers/iio/chemical/ens160_i2c.c | 2 +- drivers/iio/chemical/sgp30.c | 4 +- drivers/iio/chemical/sgp40.c | 2 +- drivers/iio/chemical/sps30_i2c.c | 2 +- drivers/iio/chemical/vz89x.c | 4 +- drivers/iio/dac/ad5064.c | 94 +++++++++---------- drivers/iio/dac/ad5380.c | 32 +++---- drivers/iio/dac/ad5446-i2c.c | 12 +-- drivers/iio/dac/ad5696-i2c.c | 32 +++---- drivers/iio/dac/ds4424.c | 8 +- drivers/iio/dac/m62332.c | 2 +- drivers/iio/dac/max517.c | 10 +- drivers/iio/dac/max5821.c | 6 +- drivers/iio/dac/mcp4725.c | 4 +- drivers/iio/dac/mcp4728.c | 2 +- drivers/iio/dac/mcp47feb02.c | 48 +++++----- drivers/iio/dac/ti-dac5571.c | 22 ++--- drivers/iio/gyro/bmg160_i2c.c | 6 +- drivers/iio/gyro/fxas21002c_i2c.c | 2 +- drivers/iio/gyro/itg3200_core.c | 2 +- drivers/iio/gyro/mpu3050-i2c.c | 2 +- drivers/iio/gyro/st_gyro_i2c.c | 18 ++-- drivers/iio/health/afe4404.c | 2 +- drivers/iio/health/max30100.c | 2 +- drivers/iio/health/max30102.c | 6 +- drivers/iio/humidity/am2315.c | 2 +- drivers/iio/humidity/ens210.c | 12 +-- drivers/iio/humidity/hdc100x.c | 12 +-- drivers/iio/humidity/hdc2010.c | 4 +- drivers/iio/humidity/hdc3020.c | 6 +- drivers/iio/humidity/hts221_i2c.c | 2 +- drivers/iio/humidity/htu21.c | 4 +- drivers/iio/humidity/si7005.c | 4 +- drivers/iio/humidity/si7020.c | 4 +- drivers/iio/imu/bmi160/bmi160_i2c.c | 4 +- drivers/iio/imu/bmi270/bmi270_i2c.c | 4 +- drivers/iio/imu/bmi323/bmi323_i2c.c | 2 +- drivers/iio/imu/bno055/bno055_i2c.c | 2 +- drivers/iio/imu/fxos8700_i2c.c | 2 +- .../iio/imu/inv_icm42600/inv_icm42600_i2c.c | 14 +-- .../iio/imu/inv_icm45600/inv_icm45600_i2c.c | 16 ++-- drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c | 36 +++---- drivers/iio/imu/kmx61.c | 2 +- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c | 48 +++++----- drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c | 4 +- drivers/iio/light/adjd_s311.c | 2 +- drivers/iio/light/adux1020.c | 2 +- drivers/iio/light/al3000a.c | 2 +- drivers/iio/light/al3010.c | 2 +- drivers/iio/light/al3320a.c | 2 +- drivers/iio/light/apds9160.c | 2 +- drivers/iio/light/apds9300.c | 2 +- drivers/iio/light/apds9960.c | 2 +- drivers/iio/light/as73211.c | 4 +- drivers/iio/light/bh1745.c | 2 +- drivers/iio/light/bh1750.c | 10 +- drivers/iio/light/bh1780.c | 2 +- drivers/iio/light/cm3232.c | 2 +- drivers/iio/light/cm3323.c | 2 +- drivers/iio/light/cm36651.c | 2 +- drivers/iio/light/gp2ap002.c | 2 +- drivers/iio/light/gp2ap020a00f.c | 2 +- drivers/iio/light/isl29018.c | 6 +- drivers/iio/light/isl29028.c | 4 +- drivers/iio/light/isl29125.c | 2 +- drivers/iio/light/isl76682.c | 2 +- drivers/iio/light/jsa1212.c | 2 +- drivers/iio/light/ltr390.c | 2 +- drivers/iio/light/ltr501.c | 8 +- drivers/iio/light/ltrf216a.c | 4 +- drivers/iio/light/lv0104cs.c | 2 +- drivers/iio/light/max44000.c | 2 +- drivers/iio/light/max44009.c | 2 +- drivers/iio/light/noa1305.c | 2 +- drivers/iio/light/opt3001.c | 4 +- drivers/iio/light/opt4001.c | 4 +- drivers/iio/light/opt4060.c | 2 +- drivers/iio/light/pa12203001.c | 2 +- drivers/iio/light/rpr0521.c | 2 +- drivers/iio/light/si1133.c | 2 +- drivers/iio/light/si1145.c | 14 +-- drivers/iio/light/st_uvis25_i2c.c | 2 +- drivers/iio/light/stk3310.c | 8 +- drivers/iio/light/tcs3414.c | 2 +- drivers/iio/light/tcs3472.c | 2 +- drivers/iio/light/tsl2563.c | 8 +- drivers/iio/light/tsl2583.c | 6 +- drivers/iio/light/tsl2772.c | 22 ++--- drivers/iio/light/tsl4531.c | 2 +- drivers/iio/light/us5182d.c | 2 +- drivers/iio/light/vcnl4000.c | 14 +-- drivers/iio/light/vcnl4035.c | 2 +- drivers/iio/light/veml3235.c | 2 +- drivers/iio/light/veml6030.c | 6 +- drivers/iio/light/veml6040.c | 2 +- drivers/iio/light/veml6046x00.c | 2 +- drivers/iio/light/veml6070.c | 2 +- drivers/iio/light/veml6075.c | 2 +- drivers/iio/light/vl6180.c | 2 +- drivers/iio/light/zopt2201.c | 2 +- drivers/iio/magnetometer/af8133j.c | 2 +- drivers/iio/magnetometer/ak8974.c | 8 +- drivers/iio/magnetometer/ak8975.c | 14 +-- drivers/iio/magnetometer/bmc150_magn_i2c.c | 6 +- drivers/iio/magnetometer/hmc5843_i2c.c | 8 +- drivers/iio/magnetometer/mag3110.c | 2 +- drivers/iio/magnetometer/mmc35240.c | 2 +- drivers/iio/magnetometer/mmc5633.c | 4 +- drivers/iio/magnetometer/si7210.c | 2 +- drivers/iio/magnetometer/st_magn_i2c.c | 18 ++-- drivers/iio/magnetometer/tlv493d.c | 2 +- drivers/iio/magnetometer/tmag5273.c | 2 +- drivers/iio/magnetometer/yamaha-yas530.c | 8 +- drivers/iio/potentiometer/ad5272.c | 10 +- drivers/iio/potentiometer/ds1803.c | 8 +- drivers/iio/potentiometer/tpl0102.c | 8 +- drivers/iio/potentiostat/lmp91000.c | 4 +- drivers/iio/pressure/abp060mg.c | 90 +++++++++++------- drivers/iio/pressure/abp2030pa_i2c.c | 2 +- drivers/iio/pressure/adp810.c | 2 +- drivers/iio/pressure/bmp280-i2c.c | 12 +-- drivers/iio/pressure/dlhl60d.c | 4 +- drivers/iio/pressure/dps310.c | 2 +- drivers/iio/pressure/hp03.c | 2 +- drivers/iio/pressure/hp206c.c | 2 +- drivers/iio/pressure/hsc030pa_i2c.c | 2 +- drivers/iio/pressure/icp10100.c | 2 +- drivers/iio/pressure/mpl115_i2c.c | 2 +- drivers/iio/pressure/mpl3115.c | 2 +- drivers/iio/pressure/mprls0025pa_i2c.c | 2 +- drivers/iio/pressure/ms5611_i2c.c | 4 +- drivers/iio/pressure/ms5637.c | 8 +- drivers/iio/pressure/rohm-bm1390.c | 2 +- drivers/iio/pressure/sdp500.c | 2 +- drivers/iio/pressure/st_pressure_i2c.c | 16 ++-- drivers/iio/pressure/t5403.c | 2 +- drivers/iio/pressure/zpa2326_i2c.c | 2 +- drivers/iio/proximity/aw96103.c | 4 +- drivers/iio/proximity/hx9023s.c | 2 +- drivers/iio/proximity/isl29501.c | 2 +- drivers/iio/proximity/mb1232.c | 14 +-- .../iio/proximity/pulsedlight-lidar-lite-v2.c | 4 +- drivers/iio/proximity/rfd77402.c | 2 +- drivers/iio/proximity/srf08.c | 6 +- drivers/iio/proximity/sx9310.c | 4 +- drivers/iio/proximity/sx9324.c | 6 +- drivers/iio/proximity/sx9360.c | 8 +- drivers/iio/proximity/sx9500.c | 2 +- drivers/iio/proximity/vl53l0x-i2c.c | 2 +- drivers/iio/proximity/vl53l1x-i2c.c | 2 +- drivers/iio/temperature/max30208.c | 2 +- drivers/iio/temperature/mcp9600.c | 4 +- drivers/iio/temperature/mlx90614.c | 4 +- drivers/iio/temperature/mlx90632.c | 2 +- drivers/iio/temperature/mlx90635.c | 2 +- drivers/iio/temperature/tmp006.c | 2 +- drivers/iio/temperature/tmp007.c | 2 +- drivers/iio/temperature/tmp117.c | 4 +- drivers/iio/temperature/tsys01.c | 2 +- drivers/iio/temperature/tsys02d.c | 2 +- 217 files changed, 708 insertions(+), 696 deletions(-)
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
Signature · 1 line
2.47.3
PATCH v2 1/7 iio: Drop unused driver_data in four i2c drivers
For the four drivers the .driver_data member of i2c_device_id is write-only. Drop the explicit assignment.
While touching these arrays use a named initializer to assign the .name member, which is easier to parse for a human.
--- drivers/iio/adc/pac1921.c | 2 +- drivers/iio/light/apds9160.c | 2 +- drivers/iio/light/tsl2563.c | 8 ++++---- drivers/iio/light/tsl2583.c | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-)
drivers/iio/adc/pac1921.c +1 -1
@@ -1310,7 +1310,7 @@ static int pac1921_probe(struct i2c_client *client) }static const struct i2c_device_id pac1921_id[] = { - { .name ="pac1921" ,0 }, + { .name ="pac1921" }, { } };MODULE_DEVICE_TABLE (i2c, pac1921_id);
drivers/iio/light/apds9160.c +1 -1
@@ -1572,7 +1572,7 @@ static const struct of_device_id apds9160_of_match[] = {MODULE_DEVICE_TABLE (of, apds9160_of_match);static const struct i2c_device_id apds9160_id[] = { - {"apds9160" ,0 }, + { .name ="apds9160" }, { } };MODULE_DEVICE_TABLE (i2c, apds9160_id);
drivers/iio/light/tsl2563.c +4 -4
@@ -839,10 +839,10 @@ static DEFINE_SIMPLE_DEV_PM_OPS(tsl2563_pm_ops, tsl2563_suspend, tsl2563_resume);static const struct i2c_device_id tsl2563_id[] = { - {"tsl2560" ,0 }, - {"tsl2561" ,1 }, - {"tsl2562" ,2 }, - {"tsl2563" ,3 }, + { .name ="tsl2560" }, + { .name ="tsl2561" }, + { .name ="tsl2562" }, + { .name ="tsl2563" }, { } };MODULE_DEVICE_TABLE (i2c, tsl2563_id);
drivers/iio/light/tsl2583.c +3 -3
@@ -913,9 +913,9 @@ static DEFINE_RUNTIME_DEV_PM_OPS(tsl2583_pm_ops, tsl2583_suspend, tsl2583_resume, NULL);static const struct i2c_device_id tsl2583_idtable[] = { - {"tsl2580" ,0 }, - {"tsl2581" ,1 }, - {"tsl2583" ,2 }, + { .name ="tsl2580" }, + { .name ="tsl2581" }, + { .name ="tsl2583" }, { } };MODULE_DEVICE_TABLE (i2c, tsl2583_idtable);
Signature · 1 line
2.47.3
PATCH v2 2/7 iio: accel: bmc150: Explicitly set .driver_data
In reply to Uwe Kleine-König (The Capable Hub)There is one id entry that has an explicit assignment to .driver_data. To make the intention clearer, assign BOSCH_UNKNOWN (which is also 0) for all previously ids that had .driver_data = 0 implicitly before.
While touching all entries in this array, convert to named initializers.
--- drivers/iio/accel/bmc150-accel-i2c.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
drivers/iio/accel/bmc150-accel-i2c.c +10 -10
@@ -245,16 +245,16 @@ static const struct acpi_device_id bmc150_accel_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, bmc150_accel_acpi_match);static const struct i2c_device_id bmc150_accel_id[] = { - {"bma222" }, - {"bma222e" }, - {"bma250e" }, - {"bma253" }, - {"bma254" }, - {"bma255" }, - {"bma280" }, - {"bmc150_accel" }, - {"bmc156_accel" ,BOSCH_BMC156 }, - {"bmi055_accel" }, + { .name ="bma222" , .driver_data =BOSCH_UNKNOWN }, + { .name ="bma222e" , .driver_data =BOSCH_UNKNOWN }, + { .name ="bma250e" , .driver_data =BOSCH_UNKNOWN }, + { .name ="bma253" , .driver_data =BOSCH_UNKNOWN }, + { .name ="bma254" , .driver_data =BOSCH_UNKNOWN }, + { .name ="bma255" , .driver_data =BOSCH_UNKNOWN }, + { .name ="bma280" , .driver_data =BOSCH_UNKNOWN }, + { .name ="bmc150_accel" , .driver_data =BOSCH_UNKNOWN }, + { .name ="bmc156_accel" , .driver_data =BOSCH_BMC156 }, + { .name ="bmi055_accel" , .driver_data =BOSCH_UNKNOWN }, { } };
Signature · 1 line
2.47.3
Re: [PATCH v2 2/7] iio: accel: bmc150: Explicitly set .driver_data
Quoted 7 lines · On Tue, 19 May 2026 10:13:04 +0200 Uwe Kleine-König (The Capable Hub)…
There is one id entry that has an explicit assignment to .driver_data. To make the intention clearer, assign
BOSCH_UNKNOWN(which is also 0) for all previously ids that had .driver_data = 0 implicitly before.While touching all entries in this array, convert to named initializers.
Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>
Applied.
PATCH v2 3/7 iio: adc: ad7091r5: Simplify driver_data handling
In reply to Uwe Kleine-König (The Capable Hub)The driver only supports a single device type. So the return value of i2c_get_match_data() is already known and can just be hardcoded without type casting. While at it also remove the unused .data of the single of_device_id entry.
--- drivers/iio/adc/ad7091r5.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)
drivers/iio/adc/ad7091r5.c +3 -9
@@ -101,23 +101,17 @@ static const struct ad7091r_init_info ad7091r5_init_info = {static int ad7091r5_i2c_probe (struct i2c_client *i2c) { -const struct ad7091r_init_info *init_info; - - init_info =i2c_get_match_data (i2c); -if (!init_info) -return -EINVAL ; - -return ad7091r_probe (&i2c->dev, init_info, i2c->irq); +return ad7091r_probe (&i2c->dev, &ad7091r5_init_info, i2c->irq); }static const struct of_device_id ad7091r5_dt_ids[] = { - { .compatible ="adi,ad7091r5" , .data = &ad7091r5_init_info }, + { .compatible ="adi,ad7091r5" }, { } };MODULE_DEVICE_TABLE (of, ad7091r5_dt_ids);static const struct i2c_device_id ad7091r5_i2c_ids[] = { - {"ad7091r5" , (kernel_ulong_t)&ad7091r5_init_info }, + { .name ="ad7091r5" }, { } };MODULE_DEVICE_TABLE (i2c, ad7091r5_i2c_ids);
Signature · 1 line
2.47.3
Re: [PATCH v2 3/7] iio: adc: ad7091r5: Simplify driver_data handling
Quoted 6 lines · On Tue, 19 May 2026 10:13:05 +0200 Uwe Kleine-König (The Capable Hub)…
The driver only supports a single device type. So the return value of
i2c_get_match_data()is already known and can just be hardcoded without type casting. While at it also remove the unused .data of the singleof_device_identry.Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>
Applied.
Re: [PATCH v2 3/7] iio: adc: ad7091r5: Simplify driver_data handling
In reply to Uwe Kleine-König (The Capable Hub)Quoted 6 lines · Uwe Kleine-König (The Capable Hub)
The driver only supports a single device type. So the return value of
i2c_get_match_data()is already known and can just be hardcoded without type casting. While at it also remove the unused .data of the singleof_device_identry.Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>
Not sure still on time to offer tags. If so,
Thanks,
Marcelo
Jonathan Cameron
maintainerRe: [PATCH v2 3/7] iio: adc: ad7091r5: Simplify driver_data handling
Quoted 6 lines · On Thu, 21 May 2026 14:15:41 -0300 Marcelo Schmitt…
Quoted 5 lines · Uwe Kleine-König (The Capable Hub)
The driver only supports a single device type. So the return value of
i2c_get_match_data()is already known and can just be hardcoded without type casting. While at it also remove the unused .data of the singleof_device_identry.
Quoted 6 lines
Quoted 1 line
Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>Not sure still on time to offer tags. If so,
Reviewed-by Marcelo Schmitt <[email protected]>
Added.
Quoted 2 lines
Thanks,
Marcelo
PATCH v2 4/7 iio: dac: max5821: Drop unused i2c driver data
In reply to Uwe Kleine-König (The Capable Hub)The .driver_data member of the single i2c_device_id array entry is unused in the driver. Drop it and also the then unused definition.
While at it, convert the i2c_device_id array to a better readable named initializer.
--- drivers/iio/dac/max5821.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/iio/dac/max5821.c +1 -5
@@ -26,10 +26,6 @@#define MAX5821_EXTENDED_DAC_A 0x04#define MAX5821_EXTENDED_DAC_B 0x08 -enum max5821_device_ids { -ID_MAX5821 , -}; -struct max5821_data {struct i2c_client *client;unsigned short vref_mv;
@@ -332,7 +328,7 @@ static int max5821_probe(struct i2c_client *client) }static const struct i2c_device_id max5821_id[] = { - {"max5821" ,ID_MAX5821 }, + { .name ="max5821" }, { } };MODULE_DEVICE_TABLE (i2c, max5821_id);
Signature · 1 line
2.47.3
Re: [PATCH v2 4/7] iio: dac: max5821: Drop unused i2c driver data
Quoted 7 lines · On Tue, 19 May 2026 10:13:06 +0200 Uwe Kleine-König (The Capable Hub)…
The .driver_data member of the single
i2c_device_idarray entry is unused in the driver. Drop it and also the then unused definition.While at it, convert the
i2c_device_idarray to a better readable named initializer.Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>
Applied.
Quoted 28 lines
--- drivers/iio/dac/max5821.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)drivers/iio/dac/max5821.c +1
-5@@ -26,10 +26,6 @@#define MAX5821_EXTENDED_DAC_A 0x04#define MAX5821_EXTENDED_DAC_B 0x08 -enum max5821_device_ids { -ID_MAX5821 , -}; -struct max5821_data {struct i2c_client *client;unsigned short vref_mv;@@ -332,7 +328,7 @@ static int max5821_probe(struct i2c_client *client) }static const struct i2c_device_id max5821_id[] = { - {"max5821" ,ID_MAX5821 }, + { .name ="max5821" }, { } };MODULE_DEVICE_TABLE (i2c, max5821_id);
PATCH v2 5/7 iio: proximity: sx9324: Drop unused driver data
In reply to Uwe Kleine-König (The Capable Hub)The value assigned in the three device_id entries (ACPI, of and i2c) are unused, directly in the driver and also the sx_common support lib. Drop them and while touching these arrays, convert to named initializers.
--- drivers/iio/proximity/sx9324.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/iio/proximity/sx9324.c +3 -3
@@ -1123,19 +1123,19 @@ static int sx9324_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(sx9324_pm_ops, sx9324_suspend, sx9324_resume);static const struct acpi_device_id sx9324_acpi_match[] = { - {"STH9324" ,SX9324_WHOAMI_VALUE }, + { .id ="STH9324" }, { } };MODULE_DEVICE_TABLE (acpi, sx9324_acpi_match);static const struct of_device_id sx9324_of_match[] = { - { .compatible ="semtech,sx9324" , (void *)SX9324_WHOAMI_VALUE }, + { .compatible ="semtech,sx9324" }, { } };MODULE_DEVICE_TABLE (of, sx9324_of_match);static const struct i2c_device_id sx9324_id[] = { - {"sx9324" ,SX9324_WHOAMI_VALUE }, + { .name ="sx9324" }, { } };MODULE_DEVICE_TABLE (i2c, sx9324_id);
Signature · 1 line
2.47.3
Re: [PATCH v2 5/7] iio: proximity: sx9324: Drop unused driver data
Quoted 5 lines · On Tue, 19 May 2026 10:13:07 +0200 Uwe Kleine-König (The Capable Hub)…
The value assigned in the three
device_identries (ACPI, of and i2c) are unused, directly in the driver and also thesx_commonsupport lib. Drop them and while touching these arrays, convert to named initializers.Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>
Applied.
PATCH v2 6/7 iio: proximity: sx9360: Drop unused driver data
In reply to Uwe Kleine-König (The Capable Hub)The value assigned in the three device_id entries (ACPI, of and i2c) are unused, directly in the driver and also the sx_common support lib. Drop them and while touching these arrays, convert to named initializers.
--- drivers/iio/proximity/sx9360.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/iio/proximity/sx9360.c +4 -4
@@ -832,20 +832,20 @@ static int sx9360_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(sx9360_pm_ops, sx9360_suspend, sx9360_resume);static const struct acpi_device_id sx9360_acpi_match[] = { - {"STH9360" ,SX9360_WHOAMI_VALUE }, - {"SAMM0208" ,SX9360_WHOAMI_VALUE }, + { .id ="STH9360" }, + { .id ="SAMM0208" }, { } };MODULE_DEVICE_TABLE (acpi, sx9360_acpi_match);static const struct of_device_id sx9360_of_match[] = { - { .compatible ="semtech,sx9360" , (void *)SX9360_WHOAMI_VALUE }, + { .compatible ="semtech,sx9360" }, { } };MODULE_DEVICE_TABLE (of, sx9360_of_match);static const struct i2c_device_id sx9360_id[] = { - {"sx9360" ,SX9360_WHOAMI_VALUE }, + { .name ="sx9360" }, { } };MODULE_DEVICE_TABLE (i2c, sx9360_id);
Signature · 1 line
2.47.3
Re: [PATCH v2 6/7] iio: proximity: sx9360: Drop unused driver data
Quoted 5 lines · On Tue, 19 May 2026 10:13:08 +0200 Uwe Kleine-König (The Capable Hub)…
The value assigned in the three
device_identries (ACPI, of and i2c) are unused, directly in the driver and also thesx_commonsupport lib. Drop them and while touching these arrays, convert to named initializers.Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>
Applied. Thanks for tidying these up!
J
PATCH v2 7/7 iio: Initialize i2c_device_id arrays using member names
In reply to Uwe Kleine-König (The Capable Hub)While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition.
The mentioned robustness is relevant for a planned change to struct i2c_device_id that replaces .driver_data by an anonymous union.
This patch doesn't modify the compiled arrays, only their representation in source form benefits. The former was confirmed with x86 and arm64 builds.
--- drivers/iio/accel/adxl345_i2c.c | 4 +- drivers/iio/accel/adxl355_i2c.c | 4 +- drivers/iio/accel/adxl367_i2c.c | 2 +- drivers/iio/accel/adxl372_i2c.c | 4 +- drivers/iio/accel/adxl380_i2c.c | 8 +- drivers/iio/accel/bma180.c | 10 +- drivers/iio/accel/bma220_i2c.c | 2 +- drivers/iio/accel/bma400_i2c.c | 2 +- drivers/iio/accel/bmi088-accel-i2c.c | 6 +- drivers/iio/accel/da280.c | 6 +- drivers/iio/accel/da311.c | 2 +- drivers/iio/accel/dmard06.c | 6 +- drivers/iio/accel/dmard09.c | 2 +- drivers/iio/accel/dmard10.c | 2 +- drivers/iio/accel/fxls8962af-i2c.c | 8 +- drivers/iio/accel/kxcjk-1013.c | 10 +- drivers/iio/accel/kxsd9-i2c.c | 2 +- drivers/iio/accel/mc3230.c | 4 +- drivers/iio/accel/mma7455_i2c.c | 4 +- drivers/iio/accel/mma7660.c | 2 +- drivers/iio/accel/mma8452.c | 12 +-- drivers/iio/accel/mma9551.c | 2 +- drivers/iio/accel/mma9553.c | 2 +- drivers/iio/accel/mxc4005.c | 4 +- drivers/iio/accel/mxc6255.c | 4 +- drivers/iio/accel/st_accel_i2c.c | 52 +++++----- drivers/iio/accel/stk8312.c | 4 +- drivers/iio/accel/stk8ba50.c | 2 +- drivers/iio/adc/ad7291.c | 2 +- drivers/iio/adc/ad799x.c | 16 ++-- drivers/iio/adc/gehc-pmc-adc.c | 2 +- drivers/iio/adc/ina2xx-adc.c | 12 +-- drivers/iio/adc/ltc2309.c | 4 +- drivers/iio/adc/ltc2471.c | 4 +- drivers/iio/adc/ltc2485.c | 2 +- drivers/iio/adc/ltc2497.c | 4 +- drivers/iio/adc/max34408.c | 4 +- drivers/iio/adc/mcp3422.c | 16 ++-- drivers/iio/adc/nau7802.c | 2 +- drivers/iio/adc/rohm-bd79124.c | 2 +- drivers/iio/adc/ti-adc081c.c | 6 +- drivers/iio/adc/ti-ads1015.c | 6 +- drivers/iio/adc/ti-ads1100.c | 4 +- drivers/iio/adc/ti-ads1119.c | 2 +- drivers/iio/adc/ti-ads7138.c | 4 +- drivers/iio/adc/ti-ads7924.c | 2 +- drivers/iio/cdc/ad7150.c | 6 +- drivers/iio/cdc/ad7746.c | 6 +- drivers/iio/chemical/ags02ma.c | 2 +- drivers/iio/chemical/ams-iaq-core.c | 2 +- drivers/iio/chemical/atlas-ezo-sensor.c | 6 +- drivers/iio/chemical/atlas-sensor.c | 10 +- drivers/iio/chemical/bme680_i2c.c | 2 +- drivers/iio/chemical/ccs811.c | 4 +- drivers/iio/chemical/ens160_i2c.c | 2 +- drivers/iio/chemical/sgp30.c | 4 +- drivers/iio/chemical/sgp40.c | 2 +- drivers/iio/chemical/sps30_i2c.c | 2 +- drivers/iio/chemical/vz89x.c | 4 +- drivers/iio/dac/ad5064.c | 94 +++++++++---------- drivers/iio/dac/ad5380.c | 32 +++---- drivers/iio/dac/ad5446-i2c.c | 12 +-- drivers/iio/dac/ad5696-i2c.c | 32 +++---- drivers/iio/dac/ds4424.c | 8 +- drivers/iio/dac/m62332.c | 2 +- drivers/iio/dac/max517.c | 10 +- drivers/iio/dac/mcp4725.c | 4 +- drivers/iio/dac/mcp4728.c | 2 +- drivers/iio/dac/mcp47feb02.c | 48 +++++----- drivers/iio/dac/ti-dac5571.c | 22 ++--- drivers/iio/gyro/bmg160_i2c.c | 6 +- drivers/iio/gyro/fxas21002c_i2c.c | 2 +- drivers/iio/gyro/itg3200_core.c | 2 +- drivers/iio/gyro/mpu3050-i2c.c | 2 +- drivers/iio/gyro/st_gyro_i2c.c | 18 ++-- drivers/iio/health/afe4404.c | 2 +- drivers/iio/health/max30100.c | 2 +- drivers/iio/health/max30102.c | 6 +- drivers/iio/humidity/am2315.c | 2 +- drivers/iio/humidity/ens210.c | 12 +-- drivers/iio/humidity/hdc100x.c | 12 +-- drivers/iio/humidity/hdc2010.c | 4 +- drivers/iio/humidity/hdc3020.c | 6 +- drivers/iio/humidity/hts221_i2c.c | 2 +- drivers/iio/humidity/htu21.c | 4 +- drivers/iio/humidity/si7005.c | 4 +- drivers/iio/humidity/si7020.c | 4 +- drivers/iio/imu/bmi160/bmi160_i2c.c | 4 +- drivers/iio/imu/bmi270/bmi270_i2c.c | 4 +- drivers/iio/imu/bmi323/bmi323_i2c.c | 2 +- drivers/iio/imu/bno055/bno055_i2c.c | 2 +- drivers/iio/imu/fxos8700_i2c.c | 2 +- .../iio/imu/inv_icm42600/inv_icm42600_i2c.c | 14 +-- .../iio/imu/inv_icm45600/inv_icm45600_i2c.c | 16 ++-- drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c | 36 +++---- drivers/iio/imu/kmx61.c | 2 +- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c | 48 +++++----- drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c | 4 +- drivers/iio/light/adjd_s311.c | 2 +- drivers/iio/light/adux1020.c | 2 +- drivers/iio/light/al3000a.c | 2 +- drivers/iio/light/al3010.c | 2 +- drivers/iio/light/al3320a.c | 2 +- drivers/iio/light/apds9300.c | 2 +- drivers/iio/light/apds9960.c | 2 +- drivers/iio/light/as73211.c | 4 +- drivers/iio/light/bh1745.c | 2 +- drivers/iio/light/bh1750.c | 10 +- drivers/iio/light/bh1780.c | 2 +- drivers/iio/light/cm3232.c | 2 +- drivers/iio/light/cm3323.c | 2 +- drivers/iio/light/cm36651.c | 2 +- drivers/iio/light/gp2ap002.c | 2 +- drivers/iio/light/gp2ap020a00f.c | 2 +- drivers/iio/light/isl29018.c | 6 +- drivers/iio/light/isl29028.c | 4 +- drivers/iio/light/isl29125.c | 2 +- drivers/iio/light/isl76682.c | 2 +- drivers/iio/light/jsa1212.c | 2 +- drivers/iio/light/ltr390.c | 2 +- drivers/iio/light/ltr501.c | 8 +- drivers/iio/light/ltrf216a.c | 4 +- drivers/iio/light/lv0104cs.c | 2 +- drivers/iio/light/max44000.c | 2 +- drivers/iio/light/max44009.c | 2 +- drivers/iio/light/noa1305.c | 2 +- drivers/iio/light/opt3001.c | 4 +- drivers/iio/light/opt4001.c | 4 +- drivers/iio/light/opt4060.c | 2 +- drivers/iio/light/pa12203001.c | 2 +- drivers/iio/light/rpr0521.c | 2 +- drivers/iio/light/si1133.c | 2 +- drivers/iio/light/si1145.c | 14 +-- drivers/iio/light/st_uvis25_i2c.c | 2 +- drivers/iio/light/stk3310.c | 8 +- drivers/iio/light/tcs3414.c | 2 +- drivers/iio/light/tcs3472.c | 2 +- drivers/iio/light/tsl2772.c | 22 ++--- drivers/iio/light/tsl4531.c | 2 +- drivers/iio/light/us5182d.c | 2 +- drivers/iio/light/vcnl4000.c | 14 +-- drivers/iio/light/vcnl4035.c | 2 +- drivers/iio/light/veml3235.c | 2 +- drivers/iio/light/veml6030.c | 6 +- drivers/iio/light/veml6040.c | 2 +- drivers/iio/light/veml6046x00.c | 2 +- drivers/iio/light/veml6070.c | 2 +- drivers/iio/light/veml6075.c | 2 +- drivers/iio/light/vl6180.c | 2 +- drivers/iio/light/zopt2201.c | 2 +- drivers/iio/magnetometer/af8133j.c | 2 +- drivers/iio/magnetometer/ak8974.c | 8 +- drivers/iio/magnetometer/ak8975.c | 14 +-- drivers/iio/magnetometer/bmc150_magn_i2c.c | 6 +- drivers/iio/magnetometer/hmc5843_i2c.c | 8 +- drivers/iio/magnetometer/mag3110.c | 2 +- drivers/iio/magnetometer/mmc35240.c | 2 +- drivers/iio/magnetometer/mmc5633.c | 4 +- drivers/iio/magnetometer/si7210.c | 2 +- drivers/iio/magnetometer/st_magn_i2c.c | 18 ++-- drivers/iio/magnetometer/tlv493d.c | 2 +- drivers/iio/magnetometer/tmag5273.c | 2 +- drivers/iio/magnetometer/yamaha-yas530.c | 8 +- drivers/iio/potentiometer/ad5272.c | 10 +- drivers/iio/potentiometer/ds1803.c | 8 +- drivers/iio/potentiometer/tpl0102.c | 8 +- drivers/iio/potentiostat/lmp91000.c | 4 +- drivers/iio/pressure/abp060mg.c | 90 +++++++++++------- drivers/iio/pressure/abp2030pa_i2c.c | 2 +- drivers/iio/pressure/adp810.c | 2 +- drivers/iio/pressure/bmp280-i2c.c | 12 +-- drivers/iio/pressure/dlhl60d.c | 4 +- drivers/iio/pressure/dps310.c | 2 +- drivers/iio/pressure/hp03.c | 2 +- drivers/iio/pressure/hp206c.c | 2 +- drivers/iio/pressure/hsc030pa_i2c.c | 2 +- drivers/iio/pressure/icp10100.c | 2 +- drivers/iio/pressure/mpl115_i2c.c | 2 +- drivers/iio/pressure/mpl3115.c | 2 +- drivers/iio/pressure/mprls0025pa_i2c.c | 2 +- drivers/iio/pressure/ms5611_i2c.c | 4 +- drivers/iio/pressure/ms5637.c | 8 +- drivers/iio/pressure/rohm-bm1390.c | 2 +- drivers/iio/pressure/sdp500.c | 2 +- drivers/iio/pressure/st_pressure_i2c.c | 16 ++-- drivers/iio/pressure/t5403.c | 2 +- drivers/iio/pressure/zpa2326_i2c.c | 2 +- drivers/iio/proximity/aw96103.c | 4 +- drivers/iio/proximity/hx9023s.c | 2 +- drivers/iio/proximity/isl29501.c | 2 +- drivers/iio/proximity/mb1232.c | 14 +-- .../iio/proximity/pulsedlight-lidar-lite-v2.c | 4 +- drivers/iio/proximity/rfd77402.c | 2 +- drivers/iio/proximity/srf08.c | 6 +- drivers/iio/proximity/sx9310.c | 4 +- drivers/iio/proximity/sx9500.c | 2 +- drivers/iio/proximity/vl53l0x-i2c.c | 2 +- drivers/iio/proximity/vl53l1x-i2c.c | 2 +- drivers/iio/temperature/max30208.c | 2 +- drivers/iio/temperature/mcp9600.c | 4 +- drivers/iio/temperature/mlx90614.c | 4 +- drivers/iio/temperature/mlx90632.c | 2 +- drivers/iio/temperature/mlx90635.c | 2 +- drivers/iio/temperature/tmp006.c | 2 +- drivers/iio/temperature/tmp007.c | 2 +- drivers/iio/temperature/tmp117.c | 4 +- drivers/iio/temperature/tsys01.c | 2 +- drivers/iio/temperature/tsys02d.c | 2 +- 208 files changed, 678 insertions(+), 656 deletions(-)
drivers/iio/accel/adxl345_i2c.c +2 -2
@@ -43,8 +43,8 @@ static const struct adxl345_chip_info adxl375_i2c_info = { };static const struct i2c_device_id adxl345_i2c_id[] = { - {"adxl345" , (kernel_ulong_t)&adxl345_i2c_info }, - {"adxl375" , (kernel_ulong_t)&adxl375_i2c_info }, + { .name ="adxl345" , .driver_data = (kernel_ulong_t)&adxl345_i2c_info }, + { .name ="adxl375" , .driver_data = (kernel_ulong_t)&adxl375_i2c_info }, { } };MODULE_DEVICE_TABLE (i2c, adxl345_i2c_id);
drivers/iio/accel/adxl355_i2c.c +2 -2
@@ -41,8 +41,8 @@ static int adxl355_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id adxl355_i2c_id[] = { - {"adxl355" , (kernel_ulong_t)&adxl35x_chip_info[ADXL355 ] }, - {"adxl359" , (kernel_ulong_t)&adxl35x_chip_info[ADXL359 ] }, + { .name ="adxl355" , .driver_data = (kernel_ulong_t)&adxl35x_chip_info[ADXL355 ] }, + { .name ="adxl359" , .driver_data = (kernel_ulong_t)&adxl35x_chip_info[ADXL359 ] }, { } };MODULE_DEVICE_TABLE (i2c, adxl355_i2c_id);
drivers/iio/accel/adxl367_i2c.c +1 -1
@@ -61,7 +61,7 @@ static int adxl367_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id adxl367_i2c_id[] = { - {"adxl367" }, + { .name ="adxl367" }, { } };MODULE_DEVICE_TABLE (i2c, adxl367_i2c_id);
drivers/iio/accel/adxl372_i2c.c +2 -2
@@ -44,8 +44,8 @@ static int adxl372_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id adxl372_i2c_id[] = { - {"adxl371" , (kernel_ulong_t)&adxl371_chip_info }, - {"adxl372" , (kernel_ulong_t)&adxl372_chip_info }, + { .name ="adxl371" , .driver_data = (kernel_ulong_t)&adxl371_chip_info }, + { .name ="adxl372" , .driver_data = (kernel_ulong_t)&adxl372_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, adxl372_i2c_id);
drivers/iio/accel/adxl380_i2c.c +4 -4
@@ -33,10 +33,10 @@ static int adxl380_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id adxl380_i2c_id[] = { - {"adxl318" , (kernel_ulong_t)&adxl318_chip_info }, - {"adxl319" , (kernel_ulong_t)&adxl319_chip_info }, - {"adxl380" , (kernel_ulong_t)&adxl380_chip_info }, - {"adxl382" , (kernel_ulong_t)&adxl382_chip_info }, + { .name ="adxl318" , .driver_data = (kernel_ulong_t)&adxl318_chip_info }, + { .name ="adxl319" , .driver_data = (kernel_ulong_t)&adxl319_chip_info }, + { .name ="adxl380" , .driver_data = (kernel_ulong_t)&adxl380_chip_info }, + { .name ="adxl382" , .driver_data = (kernel_ulong_t)&adxl382_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, adxl380_i2c_id);
drivers/iio/accel/bma180.c +5 -5
@@ -1083,11 +1083,11 @@ static int bma180_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(bma180_pm_ops, bma180_suspend, bma180_resume);static const struct i2c_device_id bma180_ids[] = { - {"bma023" , (kernel_ulong_t)&bma180_part_info[BMA023 ] }, - {"bma150" , (kernel_ulong_t)&bma180_part_info[BMA150 ] }, - {"bma180" , (kernel_ulong_t)&bma180_part_info[BMA180 ] }, - {"bma250" , (kernel_ulong_t)&bma180_part_info[BMA250 ] }, - {"smb380" , (kernel_ulong_t)&bma180_part_info[BMA150 ] }, + { .name ="bma023" , .driver_data = (kernel_ulong_t)&bma180_part_info[BMA023 ] }, + { .name ="bma150" , .driver_data = (kernel_ulong_t)&bma180_part_info[BMA150 ] }, + { .name ="bma180" , .driver_data = (kernel_ulong_t)&bma180_part_info[BMA180 ] }, + { .name ="bma250" , .driver_data = (kernel_ulong_t)&bma180_part_info[BMA250 ] }, + { .name ="smb380" , .driver_data = (kernel_ulong_t)&bma180_part_info[BMA150 ] }, { } };
drivers/iio/accel/bma220_i2c.c +1 -1
@@ -47,7 +47,7 @@ static const struct of_device_id bma220_i2c_match[] = {MODULE_DEVICE_TABLE (of, bma220_i2c_match);static const struct i2c_device_id bma220_i2c_id[] = { - {"bma220" }, + { .name ="bma220" }, { } };MODULE_DEVICE_TABLE (i2c, bma220_i2c_id);
drivers/iio/accel/bma400_i2c.c +1 -1
@@ -28,7 +28,7 @@ static int bma400_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id bma400_i2c_ids[] = { - {"bma400" }, + { .name ="bma400" }, { } };MODULE_DEVICE_TABLE (i2c, bma400_i2c_ids);
drivers/iio/accel/bmi088-accel-i2c.c +3 -3
@@ -45,9 +45,9 @@ static const struct of_device_id bmi088_of_match[] = {MODULE_DEVICE_TABLE (of, bmi088_of_match);static const struct i2c_device_id bmi088_accel_id[] = { - {"bmi085-accel" ,BOSCH_BMI085 }, - {"bmi088-accel" ,BOSCH_BMI088 }, - {"bmi090l-accel" ,BOSCH_BMI090L }, + { .name ="bmi085-accel" , .driver_data =BOSCH_BMI085 }, + { .name ="bmi088-accel" , .driver_data =BOSCH_BMI088 }, + { .name ="bmi090l-accel" , .driver_data =BOSCH_BMI090L }, { } };MODULE_DEVICE_TABLE (i2c, bmi088_accel_id);
drivers/iio/accel/da280.c +3 -3
@@ -162,9 +162,9 @@ static const struct acpi_device_id da280_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, da280_acpi_match);static const struct i2c_device_id da280_i2c_id[] = { - {"da217" , (kernel_ulong_t)&da217_match_data }, - {"da226" , (kernel_ulong_t)&da226_match_data }, - {"da280" , (kernel_ulong_t)&da280_match_data }, + { .name ="da217" , .driver_data = (kernel_ulong_t)&da217_match_data }, + { .name ="da226" , .driver_data = (kernel_ulong_t)&da226_match_data }, + { .name ="da280" , .driver_data = (kernel_ulong_t)&da280_match_data }, { } };MODULE_DEVICE_TABLE (i2c, da280_i2c_id);
drivers/iio/accel/da311.c +1 -1
@@ -268,7 +268,7 @@ static int da311_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(da311_pm_ops, da311_suspend, da311_resume);static const struct i2c_device_id da311_i2c_id[] = { - {"da311" }, + { .name ="da311" }, { } };MODULE_DEVICE_TABLE (i2c, da311_i2c_id);
drivers/iio/accel/dmard06.c +3 -3
@@ -199,9 +199,9 @@ static DEFINE_SIMPLE_DEV_PM_OPS(dmard06_pm_ops, dmard06_suspend, dmard06_resume);static const struct i2c_device_id dmard06_id[] = { - {"dmard05" }, - {"dmard06" }, - {"dmard07" }, + { .name ="dmard05" }, + { .name ="dmard06" }, + { .name ="dmard07" }, { } };MODULE_DEVICE_TABLE (i2c, dmard06_id);
drivers/iio/accel/dmard09.c +1 -1
@@ -123,7 +123,7 @@ static int dmard09_probe(struct i2c_client *client) }static const struct i2c_device_id dmard09_id[] = { - {"dmard09" }, + { .name ="dmard09" }, { } };
drivers/iio/accel/dmard10.c +1 -1
@@ -229,7 +229,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(dmard10_pm_ops, dmard10_suspend, dmard10_resume);static const struct i2c_device_id dmard10_i2c_id[] = { - {"dmard10" }, + { .name ="dmard10" }, { } };MODULE_DEVICE_TABLE (i2c, dmard10_i2c_id);
drivers/iio/accel/fxls8962af-i2c.c +4 -4
@@ -28,10 +28,10 @@ static int fxls8962af_probe(struct i2c_client *client) }static const struct i2c_device_id fxls8962af_id[] = { - {"fxls8962af" , fxls8962af }, - {"fxls8964af" , fxls8964af }, - {"fxls8967af" , fxls8967af }, - {"fxls8974cf" , fxls8974cf }, + { .name ="fxls8962af" , .driver_data = fxls8962af }, + { .name ="fxls8964af" , .driver_data = fxls8964af }, + { .name ="fxls8967af" , .driver_data = fxls8967af }, + { .name ="fxls8974cf" , .driver_data = fxls8974cf }, { } };MODULE_DEVICE_TABLE (i2c, fxls8962af_id);
drivers/iio/accel/kxcjk-1013.c +5 -5
@@ -1630,11 +1630,11 @@ static const struct dev_pm_ops kxcjk1013_pm_ops = { };static const struct i2c_device_id kxcjk1013_id[] = { - {"kxcjk1013" , (kernel_ulong_t)&kxcjk1013_info }, - {"kxcj91008" , (kernel_ulong_t)&kxcj91008_info }, - {"kxtj21009" , (kernel_ulong_t)&kxtj21009_info }, - {"kxtf9" , (kernel_ulong_t)&kxtf9_info }, - {"kx023-1025" , (kernel_ulong_t)&kx0231025_info }, + { .name ="kxcjk1013" , .driver_data = (kernel_ulong_t)&kxcjk1013_info }, + { .name ="kxcj91008" , .driver_data = (kernel_ulong_t)&kxcj91008_info }, + { .name ="kxtj21009" , .driver_data = (kernel_ulong_t)&kxtj21009_info }, + { .name ="kxtf9" , .driver_data = (kernel_ulong_t)&kxtf9_info }, + { .name ="kx023-1025" , .driver_data = (kernel_ulong_t)&kx0231025_info }, { } };MODULE_DEVICE_TABLE (i2c, kxcjk1013_id);
drivers/iio/accel/kxsd9-i2c.c +1 -1
@@ -43,7 +43,7 @@ static const struct of_device_id kxsd9_of_match[] = {MODULE_DEVICE_TABLE (of, kxsd9_of_match);static const struct i2c_device_id kxsd9_i2c_id[] = { - {"kxsd9" }, + { .name ="kxsd9" }, { } };MODULE_DEVICE_TABLE (i2c, kxsd9_i2c_id);
drivers/iio/accel/mc3230.c +2 -2
@@ -230,8 +230,8 @@ static int mc3230_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(mc3230_pm_ops, mc3230_suspend, mc3230_resume);static const struct i2c_device_id mc3230_i2c_id[] = { - {"mc3230" , (kernel_ulong_t)&mc3230_chip_info }, - {"mc3510c" , (kernel_ulong_t)&mc3510c_chip_info }, + { .name ="mc3230" , .driver_data = (kernel_ulong_t)&mc3230_chip_info }, + { .name ="mc3510c" , .driver_data = (kernel_ulong_t)&mc3510c_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, mc3230_i2c_id);
drivers/iio/accel/mma7455_i2c.c +2 -2
@@ -32,8 +32,8 @@ static void mma7455_i2c_remove(struct i2c_client *i2c) }static const struct i2c_device_id mma7455_i2c_ids[] = { - {"mma7455" }, - {"mma7456" }, + { .name ="mma7455" }, + { .name ="mma7456" }, { } };MODULE_DEVICE_TABLE (i2c, mma7455_i2c_ids);
drivers/iio/accel/mma7660.c +1 -1
@@ -259,7 +259,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(mma7660_pm_ops, mma7660_suspend, mma7660_resume);static const struct i2c_device_id mma7660_i2c_id[] = { - {"mma7660" }, + { .name ="mma7660" }, { } };MODULE_DEVICE_TABLE (i2c, mma7660_i2c_id);
drivers/iio/accel/mma8452.c +6 -6
@@ -1821,12 +1821,12 @@ static const struct dev_pm_ops mma8452_pm_ops = { };static const struct i2c_device_id mma8452_id[] = { - {"fxls8471" , (kernel_ulong_t)&mma_chip_info_table[fxls8471] }, - {"mma8451" , (kernel_ulong_t)&mma_chip_info_table[mma8451] }, - {"mma8452" , (kernel_ulong_t)&mma_chip_info_table[mma8452] }, - {"mma8453" , (kernel_ulong_t)&mma_chip_info_table[mma8453] }, - {"mma8652" , (kernel_ulong_t)&mma_chip_info_table[mma8652] }, - {"mma8653" , (kernel_ulong_t)&mma_chip_info_table[mma8653] }, + { .name ="fxls8471" , .driver_data = (kernel_ulong_t)&mma_chip_info_table[fxls8471] }, + { .name ="mma8451" , .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8451] }, + { .name ="mma8452" , .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8452] }, + { .name ="mma8453" , .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8453] }, + { .name ="mma8652" , .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8652] }, + { .name ="mma8653" , .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8653] }, { } };MODULE_DEVICE_TABLE (i2c, mma8452_id);
drivers/iio/accel/mma9551.c +1 -1
@@ -582,7 +582,7 @@ static const struct acpi_device_id mma9551_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, mma9551_acpi_match);static const struct i2c_device_id mma9551_id[] = { - {"mma9551" }, + { .name ="mma9551" }, { } };
drivers/iio/accel/mma9553.c +1 -1
@@ -1219,7 +1219,7 @@ static const struct acpi_device_id mma9553_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, mma9553_acpi_match);static const struct i2c_device_id mma9553_id[] = { - {"mma9553" }, + { .name ="mma9553" }, { } };
drivers/iio/accel/mxc4005.c +2 -2
@@ -580,8 +580,8 @@ static const struct of_device_id mxc4005_of_match[] = {MODULE_DEVICE_TABLE (of, mxc4005_of_match);static const struct i2c_device_id mxc4005_id[] = { - {"mxc4005" }, - {"mxc6655" }, + { .name ="mxc4005" }, + { .name ="mxc6655" }, { } };MODULE_DEVICE_TABLE (i2c, mxc4005_id);
drivers/iio/accel/mxc6255.c +2 -2
@@ -171,8 +171,8 @@ static const struct acpi_device_id mxc6255_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, mxc6255_acpi_match);static const struct i2c_device_id mxc6255_id[] = { - {"mxc6225" }, - {"mxc6255" }, + { .name ="mxc6225" }, + { .name ="mxc6255" }, { } };MODULE_DEVICE_TABLE (i2c, mxc6255_id);
drivers/iio/accel/st_accel_i2c.c +26 -26
58 lines not on this page · raw message
drivers/iio/accel/stk8312.c +2 -2
@@ -630,8 +630,8 @@ static DEFINE_SIMPLE_DEV_PM_OPS(stk8312_pm_ops, stk8312_suspend,static const struct i2c_device_id stk8312_i2c_id[] = {/* Deprecated in favour of lowercase form */ - {"STK8312" }, - {"stk8312" }, + { .name ="STK8312" }, + { .name ="stk8312" }, { } };MODULE_DEVICE_TABLE (i2c, stk8312_i2c_id);
drivers/iio/accel/stk8ba50.c +1 -1
@@ -519,7 +519,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(stk8ba50_pm_ops, stk8ba50_suspend, stk8ba50_resume);static const struct i2c_device_id stk8ba50_i2c_id[] = { - {"stk8ba50" }, + { .name ="stk8ba50" }, { } };MODULE_DEVICE_TABLE (i2c, stk8ba50_i2c_id);
drivers/iio/adc/ad7291.c +1 -1
@@ -536,7 +536,7 @@ static int ad7291_probe(struct i2c_client *client) }static const struct i2c_device_id ad7291_id[] = { - {"ad7291" }, + { .name ="ad7291" }, { } };
drivers/iio/adc/ad799x.c +8 -8
@@ -946,14 +946,14 @@ static int ad799x_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(ad799x_pm_ops, ad799x_suspend, ad799x_resume);static const struct i2c_device_id ad799x_id[] = { - {"ad7991" , ad7991 }, - {"ad7995" , ad7995 }, - {"ad7999" , ad7999 }, - {"ad7992" , ad7992 }, - {"ad7993" , ad7993 }, - {"ad7994" , ad7994 }, - {"ad7997" , ad7997 }, - {"ad7998" , ad7998 }, + { .name ="ad7991" , .driver_data = ad7991 }, + { .name ="ad7995" , .driver_data = ad7995 }, + { .name ="ad7999" , .driver_data = ad7999 }, + { .name ="ad7992" , .driver_data = ad7992 }, + { .name ="ad7993" , .driver_data = ad7993 }, + { .name ="ad7994" , .driver_data = ad7994 }, + { .name ="ad7997" , .driver_data = ad7997 }, + { .name ="ad7998" , .driver_data = ad7998 }, { } };
drivers/iio/adc/gehc-pmc-adc.c +1 -1
@@ -207,7 +207,7 @@ static const struct of_device_id pmc_adc_of_match[] = {MODULE_DEVICE_TABLE (of, pmc_adc_of_match);static const struct i2c_device_id pmc_adc_id_table[] = { - {"pmc-adc" }, + { .name ="pmc-adc" }, { } };MODULE_DEVICE_TABLE (i2c, pmc_adc_id_table);
drivers/iio/adc/ina2xx-adc.c +6 -6
@@ -1078,12 +1078,12 @@ static void ina2xx_remove(struct i2c_client *client) }static const struct i2c_device_id ina2xx_id[] = { - {"ina219" , ina219 }, - {"ina220" , ina219 }, - {"ina226" , ina226 }, - {"ina230" , ina226 }, - {"ina231" , ina226 }, - {"ina236" , ina236 }, + { .name ="ina219" , .driver_data = ina219 }, + { .name ="ina220" , .driver_data = ina219 }, + { .name ="ina226" , .driver_data = ina226 }, + { .name ="ina230" , .driver_data = ina226 }, + { .name ="ina231" , .driver_data = ina226 }, + { .name ="ina236" , .driver_data = ina236 }, { } };MODULE_DEVICE_TABLE (i2c, ina2xx_id);
drivers/iio/adc/ltc2309.c +2 -2
@@ -233,8 +233,8 @@ static const struct of_device_id ltc2309_of_match[] = {MODULE_DEVICE_TABLE (of, ltc2309_of_match);static const struct i2c_device_id ltc2309_id[] = { - {"ltc2305" , (kernel_ulong_t)<c2305_chip_info }, - {"ltc2309" , (kernel_ulong_t)<c2309_chip_info }, + { .name ="ltc2305" , .driver_data = (kernel_ulong_t)<c2305_chip_info }, + { .name ="ltc2309" , .driver_data = (kernel_ulong_t)<c2309_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, ltc2309_id);
drivers/iio/adc/ltc2471.c +2 -2
@@ -136,8 +136,8 @@ static int ltc2471_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id ltc2471_i2c_id[] = { - {"ltc2471" , ltc2471 }, - {"ltc2473" , ltc2473 }, + { .name ="ltc2471" , .driver_data = ltc2471 }, + { .name ="ltc2473" , .driver_data = ltc2473 }, { } };MODULE_DEVICE_TABLE (i2c, ltc2471_i2c_id);
drivers/iio/adc/ltc2485.c +1 -1
@@ -124,7 +124,7 @@ static int ltc2485_probe(struct i2c_client *client) }static const struct i2c_device_id ltc2485_id[] = { - {"ltc2485" }, + { .name ="ltc2485" }, { } };MODULE_DEVICE_TABLE (i2c, ltc2485_id);
drivers/iio/adc/ltc2497.c +2 -2
@@ -142,8 +142,8 @@ static const struct ltc2497_chip_info ltc2497_info[] = { };static const struct i2c_device_id ltc2497_id[] = { - {"ltc2497" , (kernel_ulong_t)<c2497_info[TYPE_LTC2497 ] }, - {"ltc2499" , (kernel_ulong_t)<c2497_info[TYPE_LTC2499 ] }, + { .name ="ltc2497" , .driver_data = (kernel_ulong_t)<c2497_info[TYPE_LTC2497 ] }, + { .name ="ltc2499" , .driver_data = (kernel_ulong_t)<c2497_info[TYPE_LTC2499 ] }, { } };MODULE_DEVICE_TABLE (i2c, ltc2497_id);
drivers/iio/adc/max34408.c +2 -2
@@ -256,8 +256,8 @@ static const struct of_device_id max34408_of_match[] = {MODULE_DEVICE_TABLE (of, max34408_of_match);static const struct i2c_device_id max34408_id[] = { - {"max34408" , (kernel_ulong_t)&max34408_model_data }, - {"max34409" , (kernel_ulong_t)&max34409_model_data }, + { .name ="max34408" , .driver_data = (kernel_ulong_t)&max34408_model_data }, + { .name ="max34409" , .driver_data = (kernel_ulong_t)&max34409_model_data }, { } };MODULE_DEVICE_TABLE (i2c, max34408_id);
drivers/iio/adc/mcp3422.c +8 -8
@@ -394,14 +394,14 @@ static int mcp3422_probe(struct i2c_client *client) }static const struct i2c_device_id mcp3422_id[] = { - {"mcp3421" ,1 }, - {"mcp3422" ,2 }, - {"mcp3423" ,3 }, - {"mcp3424" ,4 }, - {"mcp3425" ,5 }, - {"mcp3426" ,6 }, - {"mcp3427" ,7 }, - {"mcp3428" ,8 }, + { .name ="mcp3421" , .driver_data =1 }, + { .name ="mcp3422" , .driver_data =2 }, + { .name ="mcp3423" , .driver_data =3 }, + { .name ="mcp3424" , .driver_data =4 }, + { .name ="mcp3425" , .driver_data =5 }, + { .name ="mcp3426" , .driver_data =6 }, + { .name ="mcp3427" , .driver_data =7 }, + { .name ="mcp3428" , .driver_data =8 }, { } };MODULE_DEVICE_TABLE (i2c, mcp3422_id);
drivers/iio/adc/nau7802.c +1 -1
@@ -531,7 +531,7 @@ static int nau7802_probe(struct i2c_client *client) }static const struct i2c_device_id nau7802_i2c_id[] = { - {"nau7802" }, + { .name ="nau7802" }, { } };MODULE_DEVICE_TABLE (i2c, nau7802_i2c_id);
drivers/iio/adc/rohm-bd79124.c +1 -1
@@ -1104,7 +1104,7 @@ static const struct of_device_id bd79124_of_match[] = {MODULE_DEVICE_TABLE (of, bd79124_of_match);static const struct i2c_device_id bd79124_id[] = { - {"bd79124" }, + { .name ="bd79124" }, { } };MODULE_DEVICE_TABLE (i2c, bd79124_id);
drivers/iio/adc/ti-adc081c.c +3 -3
@@ -199,9 +199,9 @@ static int adc081c_probe(struct i2c_client *client) }static const struct i2c_device_id adc081c_id[] = { - {"adc081c" , (kernel_ulong_t)&adc081c_model }, - {"adc101c" , (kernel_ulong_t)&adc101c_model }, - {"adc121c" , (kernel_ulong_t)&adc121c_model }, + { .name ="adc081c" , .driver_data = (kernel_ulong_t)&adc081c_model }, + { .name ="adc101c" , .driver_data = (kernel_ulong_t)&adc101c_model }, + { .name ="adc121c" , .driver_data = (kernel_ulong_t)&adc121c_model }, { } };MODULE_DEVICE_TABLE (i2c, adc081c_id);
drivers/iio/adc/ti-ads1015.c +3 -3
@@ -1128,9 +1128,9 @@ static const struct ads1015_chip_data tla2024_data = { };static const struct i2c_device_id ads1015_id[] = { - {"ads1015" , (kernel_ulong_t)&ads1015_data }, - {"ads1115" , (kernel_ulong_t)&ads1115_data }, - {"tla2024" , (kernel_ulong_t)&tla2024_data }, + { .name ="ads1015" , .driver_data = (kernel_ulong_t)&ads1015_data }, + { .name ="ads1115" , .driver_data = (kernel_ulong_t)&ads1115_data }, + { .name ="tla2024" , .driver_data = (kernel_ulong_t)&tla2024_data }, { } };MODULE_DEVICE_TABLE (i2c, ads1015_id);
drivers/iio/adc/ti-ads1100.c +2 -2
@@ -400,8 +400,8 @@ static DEFINE_RUNTIME_DEV_PM_OPS(ads1100_pm_ops, NULL);static const struct i2c_device_id ads1100_id[] = { - {"ads1100" }, - {"ads1000" }, + { .name ="ads1100" }, + { .name ="ads1000" }, { } };
drivers/iio/adc/ti-ads1119.c +1 -1
@@ -804,7 +804,7 @@ static const struct of_device_id __maybe_unused ads1119_of_match[] = {MODULE_DEVICE_TABLE (of, ads1119_of_match);static const struct i2c_device_id ads1119_id[] = { - {"ads1119" }, + { .name ="ads1119" }, { } };MODULE_DEVICE_TABLE (i2c, ads1119_id);
drivers/iio/adc/ti-ads7138.c +2 -2
@@ -727,8 +727,8 @@ static const struct of_device_id ads7138_of_match[] = {MODULE_DEVICE_TABLE (of, ads7138_of_match);static const struct i2c_device_id ads7138_device_ids[] = { - {"ads7128" , (kernel_ulong_t)&ads7128_data }, - {"ads7138" , (kernel_ulong_t)&ads7138_data }, + { .name ="ads7128" , .driver_data = (kernel_ulong_t)&ads7128_data }, + { .name ="ads7138" , .driver_data = (kernel_ulong_t)&ads7138_data }, { } };MODULE_DEVICE_TABLE (i2c, ads7138_device_ids);
drivers/iio/adc/ti-ads7924.c +1 -1
@@ -441,7 +441,7 @@ static int ads7924_probe(struct i2c_client *client) }static const struct i2c_device_id ads7924_id[] = { - {"ads7924" }, + { .name ="ads7924" }, { } };MODULE_DEVICE_TABLE (i2c, ads7924_id);
drivers/iio/cdc/ad7150.c +3 -3
@@ -628,9 +628,9 @@ static int ad7150_probe(struct i2c_client *client) }static const struct i2c_device_id ad7150_id[] = { - {"ad7150" ,AD7150 }, - {"ad7151" ,AD7151 }, - {"ad7156" ,AD7150 }, + { .name ="ad7150" , .driver_data =AD7150 }, + { .name ="ad7151" , .driver_data =AD7151 }, + { .name ="ad7156" , .driver_data =AD7150 }, { } };
drivers/iio/cdc/ad7746.c +3 -3
@@ -789,9 +789,9 @@ static int ad7746_probe(struct i2c_client *client) }static const struct i2c_device_id ad7746_id[] = { - {"ad7745" ,7745 }, - {"ad7746" ,7746 }, - {"ad7747" ,7747 }, + { .name ="ad7745" , .driver_data =7745 }, + { .name ="ad7746" , .driver_data =7746 }, + { .name ="ad7747" , .driver_data =7747 }, { } };MODULE_DEVICE_TABLE (i2c, ad7746_id);
drivers/iio/chemical/ags02ma.c +1 -1
@@ -139,7 +139,7 @@ static int ags02ma_probe(struct i2c_client *client) }static const struct i2c_device_id ags02ma_id_table[] = { - {"ags02ma" }, + { .name ="ags02ma" }, { } };MODULE_DEVICE_TABLE (i2c, ags02ma_id_table);
drivers/iio/chemical/ams-iaq-core.c +1 -1
@@ -163,7 +163,7 @@ static int ams_iaqcore_probe(struct i2c_client *client) }static const struct i2c_device_id ams_iaqcore_id[] = { - {"ams-iaq-core" }, + { .name ="ams-iaq-core" }, { } };MODULE_DEVICE_TABLE (i2c, ams_iaqcore_id);
drivers/iio/chemical/atlas-ezo-sensor.c +3 -3
@@ -186,9 +186,9 @@ static const struct iio_info atlas_info = { };static const struct i2c_device_id atlas_ezo_id[] = { - {"atlas-co2-ezo" , (kernel_ulong_t)&atlas_ezo_devices[ATLAS_CO2_EZO ] }, - {"atlas-o2-ezo" , (kernel_ulong_t)&atlas_ezo_devices[ATLAS_O2_EZO ] }, - {"atlas-hum-ezo" , (kernel_ulong_t)&atlas_ezo_devices[ATLAS_HUM_EZO ] }, + { .name ="atlas-co2-ezo" , .driver_data = (kernel_ulong_t)&atlas_ezo_devices[ATLAS_CO2_EZO ] }, + { .name ="atlas-o2-ezo" , .driver_data = (kernel_ulong_t)&atlas_ezo_devices[ATLAS_O2_EZO ] }, + { .name ="atlas-hum-ezo" , .driver_data = (kernel_ulong_t)&atlas_ezo_devices[ATLAS_HUM_EZO ] }, { } };MODULE_DEVICE_TABLE (i2c, atlas_ezo_id);
drivers/iio/chemical/atlas-sensor.c +5 -5
@@ -586,11 +586,11 @@ static const struct iio_info atlas_info = { };static const struct i2c_device_id atlas_id[] = { - {"atlas-ph-sm" , (kernel_ulong_t)&atlas_devices[ATLAS_PH_SM ] }, - {"atlas-ec-sm" , (kernel_ulong_t)&atlas_devices[ATLAS_EC_SM ] }, - {"atlas-orp-sm" , (kernel_ulong_t)&atlas_devices[ATLAS_ORP_SM ] }, - {"atlas-do-sm" , (kernel_ulong_t)&atlas_devices[ATLAS_DO_SM ] }, - {"atlas-rtd-sm" , (kernel_ulong_t)&atlas_devices[ATLAS_RTD_SM ] }, + { .name ="atlas-ph-sm" , .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_PH_SM ] }, + { .name ="atlas-ec-sm" , .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_EC_SM ] }, + { .name ="atlas-orp-sm" , .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_ORP_SM ] }, + { .name ="atlas-do-sm" , .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_DO_SM ] }, + { .name ="atlas-rtd-sm" , .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_RTD_SM ] }, { } };MODULE_DEVICE_TABLE (i2c, atlas_id);
drivers/iio/chemical/bme680_i2c.c +1 -1
@@ -36,7 +36,7 @@ static int bme680_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id bme680_i2c_id[] = { - {"bme680" }, + { .name ="bme680" }, { } };MODULE_DEVICE_TABLE (i2c, bme680_i2c_id);
drivers/iio/chemical/ccs811.c +2 -2
@@ -552,8 +552,8 @@ static void ccs811_remove(struct i2c_client *client) }static const struct i2c_device_id ccs811_id[] = { - {"ccs811" }, - { } + { .name ="ccs811" }, + { } };MODULE_DEVICE_TABLE (i2c, ccs811_id);
drivers/iio/chemical/ens160_i2c.c +1 -1
@@ -34,7 +34,7 @@ static int ens160_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id ens160_i2c_id[] = { - {"ens160" }, + { .name ="ens160" }, { } };MODULE_DEVICE_TABLE (i2c, ens160_i2c_id);
drivers/iio/chemical/sgp30.c +2 -2
@@ -562,8 +562,8 @@ static void sgp_remove(struct i2c_client *client) }static const struct i2c_device_id sgp_id[] = { - {"sgp30" , (kernel_ulong_t)&sgp_devices[SGP30 ] }, - {"sgpc3" , (kernel_ulong_t)&sgp_devices[SGPC3 ] }, + { .name ="sgp30" , .driver_data = (kernel_ulong_t)&sgp_devices[SGP30 ] }, + { .name ="sgpc3" , .driver_data = (kernel_ulong_t)&sgp_devices[SGPC3 ] }, { } };
drivers/iio/chemical/sgp40.c +1 -1
@@ -355,7 +355,7 @@ static int sgp40_probe(struct i2c_client *client) }static const struct i2c_device_id sgp40_id[] = { - {"sgp40" }, + { .name ="sgp40" }, { } };
drivers/iio/chemical/sps30_i2c.c +1 -1
@@ -232,7 +232,7 @@ static int sps30_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id sps30_i2c_id[] = { - {"sps30" }, + { .name ="sps30" }, { } };MODULE_DEVICE_TABLE (i2c, sps30_i2c_id);
drivers/iio/chemical/vz89x.c +2 -2
@@ -385,8 +385,8 @@ static int vz89x_probe(struct i2c_client *client) }static const struct i2c_device_id vz89x_id[] = { - {"vz89x" , (kernel_ulong_t)&vz89x_chips[VZ89X ] }, - {"vz89te" , (kernel_ulong_t)&vz89x_chips[VZ89TE ] }, + { .name ="vz89x" , .driver_data = (kernel_ulong_t)&vz89x_chips[VZ89X ] }, + { .name ="vz89te" , .driver_data = (kernel_ulong_t)&vz89x_chips[VZ89TE ] }, { } };MODULE_DEVICE_TABLE (i2c, vz89x_id);
drivers/iio/dac/ad5064.c +47 -47
100 lines not on this page · raw message
drivers/iio/dac/ad5380.c +16 -16
@@ -513,22 +513,22 @@ static int ad5380_i2c_probe(struct i2c_client *i2c) }static const struct i2c_device_id ad5380_i2c_ids[] = { - {"ad5380-3" ,ID_AD5380_3 }, - {"ad5380-5" ,ID_AD5380_5 }, - {"ad5381-3" ,ID_AD5381_3 }, - {"ad5381-5" ,ID_AD5381_5 }, - {"ad5382-3" ,ID_AD5382_3 }, - {"ad5382-5" ,ID_AD5382_5 }, - {"ad5383-3" ,ID_AD5383_3 }, - {"ad5383-5" ,ID_AD5383_5 }, - {"ad5384-3" ,ID_AD5380_3 }, - {"ad5384-5" ,ID_AD5380_5 }, - {"ad5390-3" ,ID_AD5390_3 }, - {"ad5390-5" ,ID_AD5390_5 }, - {"ad5391-3" ,ID_AD5391_3 }, - {"ad5391-5" ,ID_AD5391_5 }, - {"ad5392-3" ,ID_AD5392_3 }, - {"ad5392-5" ,ID_AD5392_5 }, + { .name ="ad5380-3" , .driver_data =ID_AD5380_3 }, + { .name ="ad5380-5" , .driver_data =ID_AD5380_5 }, + { .name ="ad5381-3" , .driver_data =ID_AD5381_3 }, + { .name ="ad5381-5" , .driver_data =ID_AD5381_5 }, + { .name ="ad5382-3" , .driver_data =ID_AD5382_3 }, + { .name ="ad5382-5" , .driver_data =ID_AD5382_5 }, + { .name ="ad5383-3" , .driver_data =ID_AD5383_3 }, + { .name ="ad5383-5" , .driver_data =ID_AD5383_5 }, + { .name ="ad5384-3" , .driver_data =ID_AD5380_3 }, + { .name ="ad5384-5" , .driver_data =ID_AD5380_5 }, + { .name ="ad5390-3" , .driver_data =ID_AD5390_3 }, + { .name ="ad5390-5" , .driver_data =ID_AD5390_5 }, + { .name ="ad5391-3" , .driver_data =ID_AD5391_3 }, + { .name ="ad5391-5" , .driver_data =ID_AD5391_5 }, + { .name ="ad5392-3" , .driver_data =ID_AD5392_3 }, + { .name ="ad5392-5" , .driver_data =ID_AD5392_5 }, { } };MODULE_DEVICE_TABLE (i2c, ad5380_i2c_ids);
drivers/iio/dac/ad5446-i2c.c +6 -6
@@ -65,12 +65,12 @@ static const struct ad5446_chip_info ad5622_chip_info = { };static const struct i2c_device_id ad5446_i2c_ids[] = { - {"ad5301" , (kernel_ulong_t)&ad5602_chip_info}, - {"ad5311" , (kernel_ulong_t)&ad5612_chip_info}, - {"ad5321" , (kernel_ulong_t)&ad5622_chip_info}, - {"ad5602" , (kernel_ulong_t)&ad5602_chip_info}, - {"ad5612" , (kernel_ulong_t)&ad5612_chip_info}, - {"ad5622" , (kernel_ulong_t)&ad5622_chip_info}, + { .name ="ad5301" , .driver_data = (kernel_ulong_t)&ad5602_chip_info }, + { .name ="ad5311" , .driver_data = (kernel_ulong_t)&ad5612_chip_info }, + { .name ="ad5321" , .driver_data = (kernel_ulong_t)&ad5622_chip_info }, + { .name ="ad5602" , .driver_data = (kernel_ulong_t)&ad5602_chip_info }, + { .name ="ad5612" , .driver_data = (kernel_ulong_t)&ad5612_chip_info }, + { .name ="ad5622" , .driver_data = (kernel_ulong_t)&ad5622_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, ad5446_i2c_ids);
drivers/iio/dac/ad5696-i2c.c +16 -16
@@ -66,22 +66,22 @@ static int ad5686_i2c_probe(struct i2c_client *i2c) }static const struct i2c_device_id ad5686_i2c_id[] = { - {"ad5311r" ,ID_AD5311R }, - {"ad5337r" ,ID_AD5337R }, - {"ad5338r" ,ID_AD5338R }, - {"ad5671r" ,ID_AD5671R }, - {"ad5673r" ,ID_AD5673R }, - {"ad5675r" ,ID_AD5675R }, - {"ad5677r" ,ID_AD5677R }, - {"ad5691r" ,ID_AD5691R }, - {"ad5692r" ,ID_AD5692R }, - {"ad5693" ,ID_AD5693 }, - {"ad5693r" ,ID_AD5693R }, - {"ad5694" ,ID_AD5694 }, - {"ad5694r" ,ID_AD5694R }, - {"ad5695r" ,ID_AD5695R }, - {"ad5696" ,ID_AD5696 }, - {"ad5696r" ,ID_AD5696R }, + { .name ="ad5311r" , .driver_data =ID_AD5311R }, + { .name ="ad5337r" , .driver_data =ID_AD5337R }, + { .name ="ad5338r" , .driver_data =ID_AD5338R }, + { .name ="ad5671r" , .driver_data =ID_AD5671R }, + { .name ="ad5673r" , .driver_data =ID_AD5673R }, + { .name ="ad5675r" , .driver_data =ID_AD5675R }, + { .name ="ad5677r" , .driver_data =ID_AD5677R }, + { .name ="ad5691r" , .driver_data =ID_AD5691R }, + { .name ="ad5692r" , .driver_data =ID_AD5692R }, + { .name ="ad5693" , .driver_data =ID_AD5693 }, + { .name ="ad5693r" , .driver_data =ID_AD5693R }, + { .name ="ad5694" , .driver_data =ID_AD5694 }, + { .name ="ad5694r" , .driver_data =ID_AD5694R }, + { .name ="ad5695r" , .driver_data =ID_AD5695R }, + { .name ="ad5696" , .driver_data =ID_AD5696 }, + { .name ="ad5696r" , .driver_data =ID_AD5696R }, { } };MODULE_DEVICE_TABLE (i2c, ad5686_i2c_id);
drivers/iio/dac/ds4424.c +4 -4
@@ -401,10 +401,10 @@ static void ds4424_remove(struct i2c_client *client) }static const struct i2c_device_id ds4424_id[] = { - {"ds4402" , (kernel_ulong_t)&ds4402_info }, - {"ds4404" , (kernel_ulong_t)&ds4404_info }, - {"ds4422" , (kernel_ulong_t)&ds4422_info }, - {"ds4424" , (kernel_ulong_t)&ds4424_info }, + { .name ="ds4402" , .driver_data = (kernel_ulong_t)&ds4402_info }, + { .name ="ds4404" , .driver_data = (kernel_ulong_t)&ds4404_info }, + { .name ="ds4422" , .driver_data = (kernel_ulong_t)&ds4422_info }, + { .name ="ds4424" , .driver_data = (kernel_ulong_t)&ds4424_info }, { } };
drivers/iio/dac/m62332.c +1 -1
@@ -228,7 +228,7 @@ static void m62332_remove(struct i2c_client *client) }static const struct i2c_device_id m62332_id[] = { - {"m62332" , }, + { .name ="m62332" }, { } };MODULE_DEVICE_TABLE (i2c, m62332_id);
drivers/iio/dac/max517.c +5 -5
@@ -187,11 +187,11 @@ static int max517_probe(struct i2c_client *client) }static const struct i2c_device_id max517_id[] = { - {"max517" ,ID_MAX517 }, - {"max518" ,ID_MAX518 }, - {"max519" ,ID_MAX519 }, - {"max520" ,ID_MAX520 }, - {"max521" ,ID_MAX521 }, + { .name ="max517" , .driver_data =ID_MAX517 }, + { .name ="max518" , .driver_data =ID_MAX518 }, + { .name ="max519" , .driver_data =ID_MAX519 }, + { .name ="max520" , .driver_data =ID_MAX520 }, + { .name ="max521" , .driver_data =ID_MAX521 }, { } };MODULE_DEVICE_TABLE (i2c, max517_id);
drivers/iio/dac/mcp4725.c +2 -2
@@ -523,8 +523,8 @@ static const struct mcp4725_chip_info mcp4726 = { };static const struct i2c_device_id mcp4725_id[] = { - {"mcp4725" , (kernel_ulong_t)&mcp4725 }, - {"mcp4726" , (kernel_ulong_t)&mcp4726 }, + { .name ="mcp4725" , .driver_data = (kernel_ulong_t)&mcp4725 }, + { .name ="mcp4726" , .driver_data = (kernel_ulong_t)&mcp4726 }, { } };MODULE_DEVICE_TABLE (i2c, mcp4725_id);
drivers/iio/dac/mcp4728.c +1 -1
@@ -572,7 +572,7 @@ static int mcp4728_probe(struct i2c_client *client) }static const struct i2c_device_id mcp4728_id[] = { - {"mcp4728" }, + { .name ="mcp4728" }, { } };MODULE_DEVICE_TABLE (i2c, mcp4728_id);
drivers/iio/dac/mcp47feb02.c +24 -24
54 lines not on this page · raw message
drivers/iio/dac/ti-dac5571.c +11 -11
@@ -402,17 +402,17 @@ static const struct of_device_id dac5571_of_id[] = {MODULE_DEVICE_TABLE (of, dac5571_of_id);static const struct i2c_device_id dac5571_id[] = { - {"dac081c081" , (kernel_ulong_t)&dac5571_spec[single_8bit] }, - {"dac121c081" , (kernel_ulong_t)&dac5571_spec[single_12bit] }, - {"dac5571" , (kernel_ulong_t)&dac5571_spec[single_8bit] }, - {"dac6571" , (kernel_ulong_t)&dac5571_spec[single_10bit] }, - {"dac7571" , (kernel_ulong_t)&dac5571_spec[single_12bit] }, - {"dac5574" , (kernel_ulong_t)&dac5571_spec[quad_8bit] }, - {"dac6574" , (kernel_ulong_t)&dac5571_spec[quad_10bit] }, - {"dac7574" , (kernel_ulong_t)&dac5571_spec[quad_12bit] }, - {"dac5573" , (kernel_ulong_t)&dac5571_spec[quad_8bit] }, - {"dac6573" , (kernel_ulong_t)&dac5571_spec[quad_10bit] }, - {"dac7573" , (kernel_ulong_t)&dac5571_spec[quad_12bit] }, + { .name ="dac081c081" , .driver_data = (kernel_ulong_t)&dac5571_spec[single_8bit] }, + { .name ="dac121c081" , .driver_data = (kernel_ulong_t)&dac5571_spec[single_12bit] }, + { .name ="dac5571" , .driver_data = (kernel_ulong_t)&dac5571_spec[single_8bit] }, + { .name ="dac6571" , .driver_data = (kernel_ulong_t)&dac5571_spec[single_10bit] }, + { .name ="dac7571" , .driver_data = (kernel_ulong_t)&dac5571_spec[single_12bit] }, + { .name ="dac5574" , .driver_data = (kernel_ulong_t)&dac5571_spec[quad_8bit] }, + { .name ="dac6574" , .driver_data = (kernel_ulong_t)&dac5571_spec[quad_10bit] }, + { .name ="dac7574" , .driver_data = (kernel_ulong_t)&dac5571_spec[quad_12bit] }, + { .name ="dac5573" , .driver_data = (kernel_ulong_t)&dac5571_spec[quad_8bit] }, + { .name ="dac6573" , .driver_data = (kernel_ulong_t)&dac5571_spec[quad_10bit] }, + { .name ="dac7573" , .driver_data = (kernel_ulong_t)&dac5571_spec[quad_12bit] }, { } };MODULE_DEVICE_TABLE (i2c, dac5571_id);
drivers/iio/gyro/bmg160_i2c.c +3 -3
@@ -47,9 +47,9 @@ static const struct acpi_device_id bmg160_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, bmg160_acpi_match);static const struct i2c_device_id bmg160_i2c_id[] = { - {"bmg160" }, - {"bmi055_gyro" }, - {"bmi088_gyro" }, + { .name ="bmg160" }, + { .name ="bmi055_gyro" }, + { .name ="bmi088_gyro" }, { } };
drivers/iio/gyro/fxas21002c_i2c.c +1 -1
@@ -39,7 +39,7 @@ static void fxas21002c_i2c_remove(struct i2c_client *i2c) }static const struct i2c_device_id fxas21002c_i2c_id[] = { - {"fxas21002c" }, + { .name ="fxas21002c" }, { } };MODULE_DEVICE_TABLE (i2c, fxas21002c_i2c_id);
drivers/iio/gyro/itg3200_core.c +1 -1
@@ -389,7 +389,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(itg3200_pm_ops, itg3200_suspend, itg3200_resume);static const struct i2c_device_id itg3200_id[] = { - {"itg3200" }, + { .name ="itg3200" }, { } };MODULE_DEVICE_TABLE (i2c, itg3200_id);
drivers/iio/gyro/mpu3050-i2c.c +1 -1
@@ -92,7 +92,7 @@ static void mpu3050_i2c_remove(struct i2c_client *client)* supported by this driver */ static const struct i2c_device_id mpu3050_i2c_id[] = { - {"mpu3050" }, + { .name ="mpu3050" }, { } };MODULE_DEVICE_TABLE (i2c, mpu3050_i2c_id);
drivers/iio/gyro/st_gyro_i2c.c +9 -9
@@ -93,15 +93,15 @@ static int st_gyro_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id st_gyro_id_table[] = { - {L3G4200D_GYRO_DEV_NAME }, - {LSM330D_GYRO_DEV_NAME }, - {LSM330DL_GYRO_DEV_NAME }, - {LSM330DLC_GYRO_DEV_NAME }, - {L3GD20_GYRO_DEV_NAME }, - {L3GD20H_GYRO_DEV_NAME }, - {L3G4IS_GYRO_DEV_NAME }, - {LSM330_GYRO_DEV_NAME }, - {LSM9DS0_GYRO_DEV_NAME }, + { .name =L3G4200D_GYRO_DEV_NAME }, + { .name =LSM330D_GYRO_DEV_NAME }, + { .name =LSM330DL_GYRO_DEV_NAME }, + { .name =LSM330DLC_GYRO_DEV_NAME }, + { .name =L3GD20_GYRO_DEV_NAME }, + { .name =L3GD20H_GYRO_DEV_NAME }, + { .name =L3G4IS_GYRO_DEV_NAME }, + { .name =LSM330_GYRO_DEV_NAME }, + { .name =LSM9DS0_GYRO_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, st_gyro_id_table);
drivers/iio/health/afe4404.c +1 -1
@@ -575,7 +575,7 @@ static int afe4404_probe(struct i2c_client *client) }static const struct i2c_device_id afe4404_ids[] = { - {"afe4404" }, + { .name ="afe4404" }, { } };MODULE_DEVICE_TABLE (i2c, afe4404_ids);
drivers/iio/health/max30100.c +1 -1
@@ -507,7 +507,7 @@ static void max30100_remove(struct i2c_client *client) }static const struct i2c_device_id max30100_id[] = { - {"max30100" }, + { .name ="max30100" }, { } };MODULE_DEVICE_TABLE (i2c, max30100_id);
drivers/iio/health/max30102.c +3 -3
@@ -596,9 +596,9 @@ static void max30102_remove(struct i2c_client *client) }static const struct i2c_device_id max30102_id[] = { - {"max30101" , max30105 }, - {"max30102" , max30102 }, - {"max30105" , max30105 }, + { .name ="max30101" , .driver_data = max30105 }, + { .name ="max30102" , .driver_data = max30102 }, + { .name ="max30105" , .driver_data = max30105 }, { } };MODULE_DEVICE_TABLE (i2c, max30102_id);
drivers/iio/humidity/am2315.c +1 -1
@@ -250,7 +250,7 @@ static int am2315_probe(struct i2c_client *client) }static const struct i2c_device_id am2315_i2c_id[] = { - {"am2315" }, + { .name ="am2315" }, { } };MODULE_DEVICE_TABLE (i2c, am2315_i2c_id);
drivers/iio/humidity/ens210.c +6 -6
@@ -314,12 +314,12 @@ static const struct of_device_id ens210_of_match[] = {MODULE_DEVICE_TABLE (of, ens210_of_match);static const struct i2c_device_id ens210_id_table[] = { - {"ens210" , (kernel_ulong_t)&ens210_chip_info_data }, - {"ens210a" , (kernel_ulong_t)&ens210a_chip_info_data }, - {"ens211" , (kernel_ulong_t)&ens211_chip_info_data }, - {"ens212" , (kernel_ulong_t)&ens212_chip_info_data }, - {"ens213a" , (kernel_ulong_t)&ens213a_chip_info_data }, - {"ens215" , (kernel_ulong_t)&ens215_chip_info_data }, + { .name ="ens210" , .driver_data = (kernel_ulong_t)&ens210_chip_info_data }, + { .name ="ens210a" , .driver_data = (kernel_ulong_t)&ens210a_chip_info_data }, + { .name ="ens211" , .driver_data = (kernel_ulong_t)&ens211_chip_info_data }, + { .name ="ens212" , .driver_data = (kernel_ulong_t)&ens212_chip_info_data }, + { .name ="ens213a" , .driver_data = (kernel_ulong_t)&ens213a_chip_info_data }, + { .name ="ens215" , .driver_data = (kernel_ulong_t)&ens215_chip_info_data }, { } };MODULE_DEVICE_TABLE (i2c, ens210_id_table);
drivers/iio/humidity/hdc100x.c +6 -6
@@ -380,12 +380,12 @@ static int hdc100x_probe(struct i2c_client *client) }static const struct i2c_device_id hdc100x_id[] = { - {"hdc100x" }, - {"hdc1000" }, - {"hdc1008" }, - {"hdc1010" }, - {"hdc1050" }, - {"hdc1080" }, + { .name ="hdc100x" }, + { .name ="hdc1000" }, + { .name ="hdc1008" }, + { .name ="hdc1010" }, + { .name ="hdc1050" }, + { .name ="hdc1080" }, { } };MODULE_DEVICE_TABLE (i2c, hdc100x_id);
drivers/iio/humidity/hdc2010.c +2 -2
@@ -317,8 +317,8 @@ static void hdc2010_remove(struct i2c_client *client) }static const struct i2c_device_id hdc2010_id[] = { - {"hdc2010" }, - {"hdc2080" }, + { .name ="hdc2010" }, + { .name ="hdc2080" }, { } };MODULE_DEVICE_TABLE (i2c, hdc2010_id);
drivers/iio/humidity/hdc3020.c +3 -3
@@ -873,9 +873,9 @@ static int hdc3020_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(hdc3020_pm_ops, hdc3020_suspend, hdc3020_resume);static const struct i2c_device_id hdc3020_id[] = { - {"hdc3020" }, - {"hdc3021" }, - {"hdc3022" }, + { .name ="hdc3020" }, + { .name ="hdc3021" }, + { .name ="hdc3022" }, { } };MODULE_DEVICE_TABLE (i2c, hdc3020_id);
drivers/iio/humidity/hts221_i2c.c +1 -1
@@ -53,7 +53,7 @@ static const struct of_device_id hts221_i2c_of_match[] = {MODULE_DEVICE_TABLE (of, hts221_i2c_of_match);static const struct i2c_device_id hts221_i2c_id_table[] = { - {HTS221_DEV_NAME }, + { .name =HTS221_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, hts221_i2c_id_table);
drivers/iio/humidity/htu21.c +2 -2
@@ -230,8 +230,8 @@ static int htu21_probe(struct i2c_client *client) }static const struct i2c_device_id htu21_id[] = { - {"htu21" ,HTU21 }, - {"ms8607-humidity" ,MS8607 }, + { .name ="htu21" , .driver_data =HTU21 }, + { .name ="ms8607-humidity" , .driver_data =MS8607 }, { } };MODULE_DEVICE_TABLE (i2c, htu21_id);
drivers/iio/humidity/si7005.c +2 -2
@@ -163,8 +163,8 @@ static int si7005_probe(struct i2c_client *client) }static const struct i2c_device_id si7005_id[] = { - {"si7005" }, - {"th02" }, + { .name ="si7005" }, + { .name ="th02" }, { } };MODULE_DEVICE_TABLE (i2c, si7005_id);
drivers/iio/humidity/si7020.c +2 -2
@@ -267,8 +267,8 @@ static int si7020_probe(struct i2c_client *client) }static const struct i2c_device_id si7020_id[] = { - {"si7020" }, - {"th06" }, + { .name ="si7020" }, + { .name ="th06" }, { } };MODULE_DEVICE_TABLE (i2c, si7020_id);
drivers/iio/imu/bmi160/bmi160_i2c.c +2 -2
@@ -38,8 +38,8 @@ static int bmi160_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id bmi160_i2c_id[] = { - {"bmi120" }, - {"bmi160" }, + { .name ="bmi120" }, + { .name ="bmi160" }, { } };MODULE_DEVICE_TABLE (i2c, bmi160_i2c_id);
drivers/iio/imu/bmi270/bmi270_i2c.c +2 -2
@@ -33,8 +33,8 @@ static int bmi270_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id bmi270_i2c_id[] = { - {"bmi260" , (kernel_ulong_t)&bmi260_chip_info }, - {"bmi270" , (kernel_ulong_t)&bmi270_chip_info }, + { .name ="bmi260" , .driver_data = (kernel_ulong_t)&bmi260_chip_info }, + { .name ="bmi270" , .driver_data = (kernel_ulong_t)&bmi270_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, bmi270_i2c_id);
drivers/iio/imu/bmi323/bmi323_i2c.c +1 -1
@@ -114,7 +114,7 @@ static const struct acpi_device_id bmi323_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, bmi323_acpi_match);static const struct i2c_device_id bmi323_i2c_ids[] = { - {"bmi323" }, + { .name ="bmi323" }, { } };MODULE_DEVICE_TABLE (i2c, bmi323_i2c_ids);
drivers/iio/imu/bno055/bno055_i2c.c +1 -1
@@ -30,7 +30,7 @@ static int bno055_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id bno055_i2c_id[] = { - {"bno055" }, + { .name ="bno055" }, { } };MODULE_DEVICE_TABLE (i2c, bno055_i2c_id);
drivers/iio/imu/fxos8700_i2c.c +1 -1
@@ -36,7 +36,7 @@ static int fxos8700_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id fxos8700_i2c_id[] = { - {"fxos8700" }, + { .name ="fxos8700" }, { } };MODULE_DEVICE_TABLE (i2c, fxos8700_i2c_id);
drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c +7 -7
@@ -75,13 +75,13 @@ static int inv_icm42600_probe(struct i2c_client *client)* supported by this driver */ static const struct i2c_device_id inv_icm42600_id[] = { - {"icm42600" ,INV_CHIP_ICM42600 }, - {"icm42602" ,INV_CHIP_ICM42602 }, - {"icm42605" ,INV_CHIP_ICM42605 }, - {"icm42686" ,INV_CHIP_ICM42686 }, - {"icm42622" ,INV_CHIP_ICM42622 }, - {"icm42688" ,INV_CHIP_ICM42688 }, - {"icm42631" ,INV_CHIP_ICM42631 }, + { .name ="icm42600" , .driver_data =INV_CHIP_ICM42600 }, + { .name ="icm42602" , .driver_data =INV_CHIP_ICM42602 }, + { .name ="icm42605" , .driver_data =INV_CHIP_ICM42605 }, + { .name ="icm42686" , .driver_data =INV_CHIP_ICM42686 }, + { .name ="icm42622" , .driver_data =INV_CHIP_ICM42622 }, + { .name ="icm42688" , .driver_data =INV_CHIP_ICM42688 }, + { .name ="icm42631" , .driver_data =INV_CHIP_ICM42631 }, { } };MODULE_DEVICE_TABLE (i2c, inv_icm42600_id);
drivers/iio/imu/inv_icm45600/inv_icm45600_i2c.c +8 -8
@@ -39,14 +39,14 @@ static int inv_icm45600_probe(struct i2c_client *client)* supported by this driver. */ static const struct i2c_device_id inv_icm45600_id[] = { - {"icm45605" , (kernel_ulong_t)&inv_icm45605_chip_info }, - {"icm45606" , (kernel_ulong_t)&inv_icm45606_chip_info }, - {"icm45608" , (kernel_ulong_t)&inv_icm45608_chip_info }, - {"icm45634" , (kernel_ulong_t)&inv_icm45634_chip_info }, - {"icm45686" , (kernel_ulong_t)&inv_icm45686_chip_info }, - {"icm45687" , (kernel_ulong_t)&inv_icm45687_chip_info }, - {"icm45688p" , (kernel_ulong_t)&inv_icm45688p_chip_info }, - {"icm45689" , (kernel_ulong_t)&inv_icm45689_chip_info }, + { .name ="icm45605" , .driver_data = (kernel_ulong_t)&inv_icm45605_chip_info }, + { .name ="icm45606" , .driver_data = (kernel_ulong_t)&inv_icm45606_chip_info }, + { .name ="icm45608" , .driver_data = (kernel_ulong_t)&inv_icm45608_chip_info }, + { .name ="icm45634" , .driver_data = (kernel_ulong_t)&inv_icm45634_chip_info }, + { .name ="icm45686" , .driver_data = (kernel_ulong_t)&inv_icm45686_chip_info }, + { .name ="icm45687" , .driver_data = (kernel_ulong_t)&inv_icm45687_chip_info }, + { .name ="icm45688p" , .driver_data = (kernel_ulong_t)&inv_icm45688p_chip_info }, + { .name ="icm45689" , .driver_data = (kernel_ulong_t)&inv_icm45689_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, inv_icm45600_id);
drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c +18 -18
@@ -174,24 +174,24 @@ static void inv_mpu_remove(struct i2c_client *client)* supported by this driver */ static const struct i2c_device_id inv_mpu_id[] = { - {"mpu6050" ,INV_MPU6050 }, - {"mpu6500" ,INV_MPU6500 }, - {"mpu6515" ,INV_MPU6515 }, - {"mpu6880" ,INV_MPU6880 }, - {"mpu9150" ,INV_MPU9150 }, - {"mpu9250" ,INV_MPU9250 }, - {"mpu9255" ,INV_MPU9255 }, - {"icm20608" ,INV_ICM20608 }, - {"icm20608d" ,INV_ICM20608D }, - {"icm20609" ,INV_ICM20609 }, - {"icm20689" ,INV_ICM20689 }, - {"icm20600" ,INV_ICM20600 }, - {"icm20602" ,INV_ICM20602 }, - {"icm20690" ,INV_ICM20690 }, - {"iam20380" ,INV_IAM20380 }, - {"iam20680" ,INV_IAM20680 }, - {"iam20680hp" ,INV_IAM20680HP }, - {"iam20680ht" ,INV_IAM20680HT }, + { .name ="mpu6050" , .driver_data =INV_MPU6050 }, + { .name ="mpu6500" , .driver_data =INV_MPU6500 }, + { .name ="mpu6515" , .driver_data =INV_MPU6515 }, + { .name ="mpu6880" , .driver_data =INV_MPU6880 }, + { .name ="mpu9150" , .driver_data =INV_MPU9150 }, + { .name ="mpu9250" , .driver_data =INV_MPU9250 }, + { .name ="mpu9255" , .driver_data =INV_MPU9255 }, + { .name ="icm20608" , .driver_data =INV_ICM20608 }, + { .name ="icm20608d" , .driver_data =INV_ICM20608D }, + { .name ="icm20609" , .driver_data =INV_ICM20609 }, + { .name ="icm20689" , .driver_data =INV_ICM20689 }, + { .name ="icm20600" , .driver_data =INV_ICM20600 }, + { .name ="icm20602" , .driver_data =INV_ICM20602 }, + { .name ="icm20690" , .driver_data =INV_ICM20690 }, + { .name ="iam20380" , .driver_data =INV_IAM20380 }, + { .name ="iam20680" , .driver_data =INV_IAM20680 }, + { .name ="iam20680hp" , .driver_data =INV_IAM20680HP }, + { .name ="iam20680ht" , .driver_data =INV_IAM20680HT }, { } };
drivers/iio/imu/kmx61.c +1 -1
@@ -1481,7 +1481,7 @@ static const struct dev_pm_ops kmx61_pm_ops = { };static const struct i2c_device_id kmx61_id[] = { - {"kmx611021" }, + { .name ="kmx611021" }, { } };
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c +24 -24
54 lines not on this page · raw message
drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c +2 -2
@@ -33,8 +33,8 @@ static const struct of_device_id st_lsm9ds0_of_match[] = {MODULE_DEVICE_TABLE (of, st_lsm9ds0_of_match);static const struct i2c_device_id st_lsm9ds0_id_table[] = { - {LSM303D_IMU_DEV_NAME }, - {LSM9DS0_IMU_DEV_NAME }, + { .name =LSM303D_IMU_DEV_NAME }, + { .name =LSM9DS0_IMU_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, st_lsm9ds0_id_table);
drivers/iio/light/adjd_s311.c +1 -1
@@ -260,7 +260,7 @@ static int adjd_s311_probe(struct i2c_client *client) }static const struct i2c_device_id adjd_s311_id[] = { - {"adjd_s311" }, + { .name ="adjd_s311" }, { } };MODULE_DEVICE_TABLE (i2c, adjd_s311_id);
drivers/iio/light/adux1020.c +1 -1
@@ -818,7 +818,7 @@ static int adux1020_probe(struct i2c_client *client) }static const struct i2c_device_id adux1020_id[] = { - {"adux1020" }, + { .name ="adux1020" }, { } };MODULE_DEVICE_TABLE (i2c, adux1020_id);
drivers/iio/light/al3000a.c +1 -1
@@ -183,7 +183,7 @@ static int al3000a_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(al3000a_pm_ops, al3000a_suspend, al3000a_resume);static const struct i2c_device_id al3000a_id[] = { - {"al3000a" }, + { .name ="al3000a" }, { } };MODULE_DEVICE_TABLE (i2c, al3000a_id);
drivers/iio/light/al3010.c +1 -1
@@ -218,7 +218,7 @@ static int al3010_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(al3010_pm_ops, al3010_suspend, al3010_resume);static const struct i2c_device_id al3010_id[] = { - {"al3010" , }, + { .name ="al3010" }, { } };MODULE_DEVICE_TABLE (i2c, al3010_id);
drivers/iio/light/al3320a.c +1 -1
@@ -246,7 +246,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(al3320a_pm_ops, al3320a_suspend, al3320a_resume);static const struct i2c_device_id al3320a_id[] = { - {"al3320a" }, + { .name ="al3320a" }, { } };MODULE_DEVICE_TABLE (i2c, al3320a_id);
drivers/iio/light/apds9300.c +1 -1
@@ -492,7 +492,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(apds9300_pm_ops, apds9300_suspend, apds9300_resume);static const struct i2c_device_id apds9300_id[] = { - {APDS9300_DRV_NAME }, + { .name =APDS9300_DRV_NAME }, { } };
drivers/iio/light/apds9960.c +1 -1
@@ -1154,7 +1154,7 @@ static const struct dev_pm_ops apds9960_pm_ops = { };static const struct i2c_device_id apds9960_id[] = { - {"apds9960" }, + { .name ="apds9960" }, { } };MODULE_DEVICE_TABLE (i2c, apds9960_id);
drivers/iio/light/as73211.c +2 -2
@@ -875,8 +875,8 @@ static const struct of_device_id as73211_of_match[] = {MODULE_DEVICE_TABLE (of, as73211_of_match);static const struct i2c_device_id as73211_id[] = { - {"as73211" , (kernel_ulong_t)&as73211_spec }, - {"as7331" , (kernel_ulong_t)&as7331_spec }, + { .name ="as73211" , .driver_data = (kernel_ulong_t)&as73211_spec }, + { .name ="as7331" , .driver_data = (kernel_ulong_t)&as7331_spec }, { } };MODULE_DEVICE_TABLE (i2c, as73211_id);
drivers/iio/light/bh1745.c +1 -1
@@ -874,7 +874,7 @@ static int bh1745_probe(struct i2c_client *client) }static const struct i2c_device_id bh1745_idtable[] = { - {"bh1745" }, + { .name ="bh1745" }, { } };MODULE_DEVICE_TABLE (i2c, bh1745_idtable);
drivers/iio/light/bh1750.c +5 -5
@@ -319,11 +319,11 @@ static int bh1750_suspend(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(bh1750_pm_ops, bh1750_suspend, NULL);static const struct i2c_device_id bh1750_id[] = { - {"bh1710" ,BH1710 }, - {"bh1715" ,BH1750 }, - {"bh1721" ,BH1721 }, - {"bh1750" ,BH1750 }, - {"bh1751" ,BH1750 }, + { .name ="bh1710" , .driver_data =BH1710 }, + { .name ="bh1715" , .driver_data =BH1750 }, + { .name ="bh1721" , .driver_data =BH1721 }, + { .name ="bh1750" , .driver_data =BH1750 }, + { .name ="bh1751" , .driver_data =BH1750 }, { } };MODULE_DEVICE_TABLE (i2c, bh1750_id);
drivers/iio/light/bh1780.c +1 -1
@@ -255,7 +255,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(bh1780_dev_pm_ops, bh1780_runtime_suspend, bh1780_runtime_resume, NULL);static const struct i2c_device_id bh1780_id[] = { - {"bh1780" }, + { .name ="bh1780" }, { } };
drivers/iio/light/cm3232.c +1 -1
@@ -366,7 +366,7 @@ static void cm3232_remove(struct i2c_client *client) }static const struct i2c_device_id cm3232_id[] = { - {"cm3232" }, + { .name ="cm3232" }, { } };
drivers/iio/light/cm3323.c +1 -1
@@ -250,7 +250,7 @@ static int cm3323_probe(struct i2c_client *client) }static const struct i2c_device_id cm3323_id[] = { - {"cm3323" }, + { .name ="cm3323" }, { } };MODULE_DEVICE_TABLE (i2c, cm3323_id);
drivers/iio/light/cm36651.c +1 -1
@@ -713,7 +713,7 @@ static void cm36651_remove(struct i2c_client *client) }static const struct i2c_device_id cm36651_id[] = { - {"cm36651" }, + { .name ="cm36651" }, { } };
drivers/iio/light/gp2ap002.c +1 -1
@@ -690,7 +690,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(gp2ap002_dev_pm_ops, gp2ap002_runtime_suspend, gp2ap002_runtime_resume, NULL);static const struct i2c_device_id gp2ap002_id_table[] = { - {"gp2ap002" }, + { .name ="gp2ap002" }, { } };MODULE_DEVICE_TABLE (i2c, gp2ap002_id_table);
drivers/iio/light/gp2ap020a00f.c +1 -1
@@ -1525,7 +1525,7 @@ static void gp2ap020a00f_remove(struct i2c_client *client) }static const struct i2c_device_id gp2ap020a00f_id[] = { - {"gp2ap020a00f" }, + { .name ="gp2ap020a00f" }, { } };MODULE_DEVICE_TABLE (i2c, gp2ap020a00f_id);
drivers/iio/light/isl29018.c +3 -3
@@ -829,9 +829,9 @@ static const struct acpi_device_id isl29018_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, isl29018_acpi_match);static const struct i2c_device_id isl29018_id[] = { - {"isl29018" , isl29018}, - {"isl29023" , isl29023}, - {"isl29035" , isl29035}, + { .name ="isl29018" , .driver_data = isl29018 }, + { .name ="isl29023" , .driver_data = isl29023 }, + { .name ="isl29035" , .driver_data = isl29035 }, { } };MODULE_DEVICE_TABLE (i2c, isl29018_id);
drivers/iio/light/isl29028.c +2 -2
@@ -673,8 +673,8 @@ static DEFINE_RUNTIME_DEV_PM_OPS(isl29028_pm_ops, isl29028_suspend, isl29028_resume, NULL);static const struct i2c_device_id isl29028_id[] = { - {"isl29028" }, - {"isl29030" }, + { .name ="isl29028" }, + { .name ="isl29030" }, { } };MODULE_DEVICE_TABLE (i2c, isl29028_id);
drivers/iio/light/isl29125.c +1 -1
@@ -325,7 +325,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(isl29125_pm_ops, isl29125_suspend, isl29125_resume);static const struct i2c_device_id isl29125_id[] = { - {"isl29125" }, + { .name ="isl29125" }, { } };MODULE_DEVICE_TABLE (i2c, isl29125_id);
drivers/iio/light/isl76682.c +1 -1
@@ -319,7 +319,7 @@ static int isl76682_probe(struct i2c_client *client) }static const struct i2c_device_id isl76682_id[] = { - {"isl76682" }, + { .name ="isl76682" }, { } };MODULE_DEVICE_TABLE (i2c, isl76682_id);
drivers/iio/light/jsa1212.c +1 -1
@@ -428,7 +428,7 @@ static const struct acpi_device_id jsa1212_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, jsa1212_acpi_match);static const struct i2c_device_id jsa1212_id[] = { - {JSA1212_DRIVER_NAME }, + { .name =JSA1212_DRIVER_NAME }, { } };MODULE_DEVICE_TABLE (i2c, jsa1212_id);
drivers/iio/light/ltr390.c +1 -1
@@ -889,7 +889,7 @@ static const struct dev_pm_ops ltr390_pm_ops = { };static const struct i2c_device_id ltr390_id[] = { - {"ltr390" }, + { .name ="ltr390" }, { } };MODULE_DEVICE_TABLE (i2c, ltr390_id);
drivers/iio/light/ltr501.c +4 -4
@@ -1601,10 +1601,10 @@ static const struct acpi_device_id ltr_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, ltr_acpi_match);static const struct i2c_device_id ltr501_id[] = { - {"ltr501" , ltr501 }, - {"ltr559" , ltr559 }, - {"ltr301" , ltr301 }, - {"ltr303" , ltr303 }, + { .name ="ltr501" , .driver_data = ltr501 }, + { .name ="ltr559" , .driver_data = ltr559 }, + { .name ="ltr301" , .driver_data = ltr301 }, + { .name ="ltr303" , .driver_data = ltr303 }, { } };MODULE_DEVICE_TABLE (i2c, ltr501_id);
drivers/iio/light/ltrf216a.c +2 -2
@@ -551,8 +551,8 @@ static const struct ltr_chip_info ltrf216a_chip_info = { };static const struct i2c_device_id ltrf216a_id[] = { - {"ltr308" , .driver_data = (kernel_ulong_t)<r308_chip_info }, - {"ltrf216a" , .driver_data = (kernel_ulong_t)<rf216a_chip_info }, + { .name ="ltr308" , .driver_data = (kernel_ulong_t)<r308_chip_info }, + { .name ="ltrf216a" , .driver_data = (kernel_ulong_t)<rf216a_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, ltrf216a_id);
drivers/iio/light/lv0104cs.c +1 -1
@@ -510,7 +510,7 @@ static int lv0104cs_probe(struct i2c_client *client) }static const struct i2c_device_id lv0104cs_id[] = { - {"lv0104cs" }, + { .name ="lv0104cs" }, { } };MODULE_DEVICE_TABLE (i2c, lv0104cs_id);
drivers/iio/light/max44000.c +1 -1
@@ -598,7 +598,7 @@ static int max44000_probe(struct i2c_client *client) }static const struct i2c_device_id max44000_id[] = { - {"max44000" }, + { .name ="max44000" }, { } };MODULE_DEVICE_TABLE (i2c, max44000_id);
drivers/iio/light/max44009.c +1 -1
@@ -534,7 +534,7 @@ static const struct of_device_id max44009_of_match[] = {MODULE_DEVICE_TABLE (of, max44009_of_match);static const struct i2c_device_id max44009_id[] = { - {"max44009" }, + { .name ="max44009" }, { } };MODULE_DEVICE_TABLE (i2c, max44009_id);
drivers/iio/light/noa1305.c +1 -1
@@ -315,7 +315,7 @@ static const struct of_device_id noa1305_of_match[] = {MODULE_DEVICE_TABLE (of, noa1305_of_match);static const struct i2c_device_id noa1305_ids[] = { - {"noa1305" }, + { .name ="noa1305" }, { } };MODULE_DEVICE_TABLE (i2c, noa1305_ids);
drivers/iio/light/opt3001.c +2 -2
@@ -948,8 +948,8 @@ static const struct opt3001_chip_info opt3002_chip_information = { };static const struct i2c_device_id opt3001_id[] = { - {"opt3001" , (kernel_ulong_t)&opt3001_chip_information }, - {"opt3002" , (kernel_ulong_t)&opt3002_chip_information }, + { .name ="opt3001" , .driver_data = (kernel_ulong_t)&opt3001_chip_information }, + { .name ="opt3002" , .driver_data = (kernel_ulong_t)&opt3002_chip_information }, { }/* Terminating Entry */ };MODULE_DEVICE_TABLE (i2c, opt3001_id);
drivers/iio/light/opt4001.c +2 -2
@@ -438,8 +438,8 @@ static int opt4001_probe(struct i2c_client *client)* opt4001 packaging */ static const struct i2c_device_id opt4001_id[] = { - {"opt4001-sot-5x3" , (kernel_ulong_t)&opt4001_sot_5x3_info }, - {"opt4001-picostar" , (kernel_ulong_t)&opt4001_picostar_info }, + { .name ="opt4001-sot-5x3" , .driver_data = (kernel_ulong_t)&opt4001_sot_5x3_info }, + { .name ="opt4001-picostar" , .driver_data = (kernel_ulong_t)&opt4001_picostar_info }, { } };MODULE_DEVICE_TABLE (i2c, opt4001_id);
drivers/iio/light/opt4060.c +1 -1
@@ -1297,7 +1297,7 @@ static int opt4060_probe(struct i2c_client *client) }static const struct i2c_device_id opt4060_id[] = { - {"opt4060" , }, + { .name ="opt4060" }, { } };MODULE_DEVICE_TABLE (i2c, opt4060_id);
drivers/iio/light/pa12203001.c +1 -1
@@ -457,7 +457,7 @@ static const struct acpi_device_id pa12203001_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, pa12203001_acpi_match);static const struct i2c_device_id pa12203001_id[] = { - {"txcpa122" }, + { .name ="txcpa122" }, { } };
drivers/iio/light/rpr0521.c +1 -1
@@ -1102,7 +1102,7 @@ static const struct acpi_device_id rpr0521_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, rpr0521_acpi_match);static const struct i2c_device_id rpr0521_id[] = { - {"rpr0521" }, + { .name ="rpr0521" }, { } };
drivers/iio/light/si1133.c +1 -1
@@ -1055,7 +1055,7 @@ static int si1133_probe(struct i2c_client *client) }static const struct i2c_device_id si1133_ids[] = { - {"si1133" }, + { .name ="si1133" }, { } };MODULE_DEVICE_TABLE (i2c, si1133_ids);
drivers/iio/light/si1145.c +7 -7
@@ -1334,13 +1334,13 @@ static int si1145_probe(struct i2c_client *client) }static const struct i2c_device_id si1145_ids[] = { - {"si1132" ,SI1132 }, - {"si1141" ,SI1141 }, - {"si1142" ,SI1142 }, - {"si1143" ,SI1143 }, - {"si1145" ,SI1145 }, - {"si1146" ,SI1146 }, - {"si1147" ,SI1147 }, + { .name ="si1132" , .driver_data =SI1132 }, + { .name ="si1141" , .driver_data =SI1141 }, + { .name ="si1142" , .driver_data =SI1142 }, + { .name ="si1143" , .driver_data =SI1143 }, + { .name ="si1145" , .driver_data =SI1145 }, + { .name ="si1146" , .driver_data =SI1146 }, + { .name ="si1147" , .driver_data =SI1147 }, { } };MODULE_DEVICE_TABLE (i2c, si1145_ids);
drivers/iio/light/st_uvis25_i2c.c +1 -1
@@ -46,7 +46,7 @@ static const struct of_device_id st_uvis25_i2c_of_match[] = {MODULE_DEVICE_TABLE (of, st_uvis25_i2c_of_match);static const struct i2c_device_id st_uvis25_i2c_id_table[] = { - {ST_UVIS25_DEV_NAME }, + { .name =ST_UVIS25_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, st_uvis25_i2c_id_table);
drivers/iio/light/stk3310.c +4 -4
@@ -695,10 +695,10 @@ static DEFINE_SIMPLE_DEV_PM_OPS(stk3310_pm_ops, stk3310_suspend, stk3310_resume);static const struct i2c_device_id stk3310_i2c_id[] = { - {"STK3013" }, - {"STK3310" }, - {"STK3311" }, - {"STK3335" }, + { .name ="STK3013" }, + { .name ="STK3310" }, + { .name ="STK3311" }, + { .name ="STK3335" }, { } };MODULE_DEVICE_TABLE (i2c, stk3310_i2c_id);
drivers/iio/light/tcs3414.c +1 -1
@@ -362,7 +362,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(tcs3414_pm_ops, tcs3414_suspend, tcs3414_resume);static const struct i2c_device_id tcs3414_id[] = { - {"tcs3414" }, + { .name ="tcs3414" }, { } };MODULE_DEVICE_TABLE (i2c, tcs3414_id);
drivers/iio/light/tcs3472.c +1 -1
@@ -597,7 +597,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(tcs3472_pm_ops, tcs3472_suspend, tcs3472_resume);static const struct i2c_device_id tcs3472_id[] = { - {"tcs3472" }, + { .name ="tcs3472" }, { } };MODULE_DEVICE_TABLE (i2c, tcs3472_id);
drivers/iio/light/tsl2772.c +11 -11
@@ -1888,17 +1888,17 @@ static int tsl2772_resume(struct device *dev) }static const struct i2c_device_id tsl2772_idtable[] = { - {"tsl2571" , tsl2571 }, - {"tsl2671" , tsl2671 }, - {"tmd2671" , tmd2671 }, - {"tsl2771" , tsl2771 }, - {"tmd2771" , tmd2771 }, - {"tsl2572" , tsl2572 }, - {"tsl2672" , tsl2672 }, - {"tmd2672" , tmd2672 }, - {"tsl2772" , tsl2772 }, - {"tmd2772" , tmd2772 }, - {"apds9930" , apds9930 }, + { .name ="tsl2571" , .driver_data = tsl2571 }, + { .name ="tsl2671" , .driver_data = tsl2671 }, + { .name ="tmd2671" , .driver_data = tmd2671 }, + { .name ="tsl2771" , .driver_data = tsl2771 }, + { .name ="tmd2771" , .driver_data = tmd2771 }, + { .name ="tsl2572" , .driver_data = tsl2572 }, + { .name ="tsl2672" , .driver_data = tsl2672 }, + { .name ="tmd2672" , .driver_data = tmd2672 }, + { .name ="tsl2772" , .driver_data = tsl2772 }, + { .name ="tmd2772" , .driver_data = tmd2772 }, + { .name ="apds9930" , .driver_data = apds9930 }, { } };
drivers/iio/light/tsl4531.c +1 -1
@@ -227,7 +227,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(tsl4531_pm_ops, tsl4531_suspend, tsl4531_resume);static const struct i2c_device_id tsl4531_id[] = { - {"tsl4531" }, + { .name ="tsl4531" }, { } };MODULE_DEVICE_TABLE (i2c, tsl4531_id);
drivers/iio/light/us5182d.c +1 -1
@@ -949,7 +949,7 @@ static const struct acpi_device_id us5182d_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, us5182d_acpi_match);static const struct i2c_device_id us5182d_id[] = { - {"usd5182" }, + { .name ="usd5182" }, { } };
drivers/iio/light/vcnl4000.c +7 -7
@@ -237,13 +237,13 @@ struct vcnl4000_chip_spec { };static const struct i2c_device_id vcnl4000_id[] = { - {"cm36672p" ,CM36672P }, - {"cm36686" ,VCNL4040 }, - {"vcnl4000" ,VCNL4000 }, - {"vcnl4010" ,VCNL4010 }, - {"vcnl4020" ,VCNL4010 }, - {"vcnl4040" ,VCNL4040 }, - {"vcnl4200" ,VCNL4200 }, + { .name ="cm36672p" , .driver_data =CM36672P }, + { .name ="cm36686" , .driver_data =VCNL4040 }, + { .name ="vcnl4000" , .driver_data =VCNL4000 }, + { .name ="vcnl4010" , .driver_data =VCNL4010 }, + { .name ="vcnl4020" , .driver_data =VCNL4010 }, + { .name ="vcnl4040" , .driver_data =VCNL4040 }, + { .name ="vcnl4200" , .driver_data =VCNL4200 }, { } };MODULE_DEVICE_TABLE (i2c, vcnl4000_id);
drivers/iio/light/vcnl4035.c +1 -1
@@ -662,7 +662,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(vcnl4035_pm_ops, vcnl4035_runtime_suspend, vcnl4035_runtime_resume, NULL);static const struct i2c_device_id vcnl4035_id[] = { - {"vcnl4035" }, + { .name ="vcnl4035" }, { } };MODULE_DEVICE_TABLE (i2c, vcnl4035_id);
drivers/iio/light/veml3235.c +1 -1
@@ -525,7 +525,7 @@ static const struct of_device_id veml3235_of_match[] = {MODULE_DEVICE_TABLE (of, veml3235_of_match);static const struct i2c_device_id veml3235_id[] = { - {"veml3235" }, + { .name ="veml3235" }, { } };MODULE_DEVICE_TABLE (i2c, veml3235_id);
drivers/iio/light/veml6030.c +3 -3
@@ -1218,9 +1218,9 @@ static const struct of_device_id veml6030_of_match[] = {MODULE_DEVICE_TABLE (of, veml6030_of_match);static const struct i2c_device_id veml6030_id[] = { - {"veml6030" , (kernel_ulong_t)&veml6030_chip}, - {"veml6035" , (kernel_ulong_t)&veml6035_chip}, - {"veml7700" , (kernel_ulong_t)&veml7700_chip}, + { .name ="veml6030" , .driver_data = (kernel_ulong_t)&veml6030_chip }, + { .name ="veml6035" , .driver_data = (kernel_ulong_t)&veml6035_chip }, + { .name ="veml7700" , .driver_data = (kernel_ulong_t)&veml7700_chip }, { } };MODULE_DEVICE_TABLE (i2c, veml6030_id);
drivers/iio/light/veml6040.c +1 -1
@@ -254,7 +254,7 @@ static int veml6040_probe(struct i2c_client *client) }static const struct i2c_device_id veml6040_id_table[] = { - {"veml6040" }, + { .name ="veml6040" }, { } };MODULE_DEVICE_TABLE (i2c, veml6040_id_table);
drivers/iio/light/veml6046x00.c +1 -1
@@ -1009,7 +1009,7 @@ static const struct of_device_id veml6046x00_of_match[] = {MODULE_DEVICE_TABLE (of, veml6046x00_of_match);static const struct i2c_device_id veml6046x00_id[] = { - {"veml6046x00" }, + { .name ="veml6046x00" }, { } };MODULE_DEVICE_TABLE (i2c, veml6046x00_id);
drivers/iio/light/veml6070.c +1 -1
@@ -300,7 +300,7 @@ static int veml6070_probe(struct i2c_client *client) }static const struct i2c_device_id veml6070_id[] = { - {"veml6070" }, + { .name ="veml6070" }, { } };MODULE_DEVICE_TABLE (i2c, veml6070_id);
drivers/iio/light/veml6075.c +1 -1
@@ -451,7 +451,7 @@ static int veml6075_probe(struct i2c_client *client) }static const struct i2c_device_id veml6075_id[] = { - {"veml6075" }, + { .name ="veml6075" }, { } };MODULE_DEVICE_TABLE (i2c, veml6075_id);
drivers/iio/light/vl6180.c +1 -1
@@ -750,7 +750,7 @@ static const struct of_device_id vl6180_of_match[] = {MODULE_DEVICE_TABLE (of, vl6180_of_match);static const struct i2c_device_id vl6180_id[] = { - {"vl6180" }, + { .name ="vl6180" }, { } };MODULE_DEVICE_TABLE (i2c, vl6180_id);
drivers/iio/light/zopt2201.c +1 -1
@@ -516,7 +516,7 @@ static int zopt2201_probe(struct i2c_client *client) }static const struct i2c_device_id zopt2201_id[] = { - {"zopt2201" }, + { .name ="zopt2201" }, { } };MODULE_DEVICE_TABLE (i2c, zopt2201_id);
drivers/iio/magnetometer/af8133j.c +1 -1
@@ -504,7 +504,7 @@ static const struct of_device_id af8133j_of_match[] = {MODULE_DEVICE_TABLE (of, af8133j_of_match);static const struct i2c_device_id af8133j_id[] = { - {"af8133j" }, + { .name ="af8133j" }, { } };MODULE_DEVICE_TABLE (i2c, af8133j_id);
drivers/iio/magnetometer/ak8974.c +4 -4
@@ -1017,10 +1017,10 @@ static DEFINE_RUNTIME_DEV_PM_OPS(ak8974_dev_pm_ops, ak8974_runtime_suspend, ak8974_runtime_resume, NULL);static const struct i2c_device_id ak8974_id[] = { - {"ami305" }, - {"ami306" }, - {"ak8974" }, - {"hscdtd008a" }, + { .name ="ami305" }, + { .name ="ami306" }, + { .name ="ak8974" }, + { .name ="hscdtd008a" }, { } };MODULE_DEVICE_TABLE (i2c, ak8974_id);
drivers/iio/magnetometer/ak8975.c +7 -7
@@ -1099,13 +1099,13 @@ static const struct acpi_device_id ak_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, ak_acpi_match);static const struct i2c_device_id ak8975_id[] = { - {"AK8963" , (kernel_ulong_t)&ak_def_array[AK8963 ] }, - {"ak8963" , (kernel_ulong_t)&ak_def_array[AK8963 ] }, - {"ak8975" , (kernel_ulong_t)&ak_def_array[AK8975 ] }, - {"ak09911" , (kernel_ulong_t)&ak_def_array[AK09911 ] }, - {"ak09912" , (kernel_ulong_t)&ak_def_array[AK09912 ] }, - {"ak09916" , (kernel_ulong_t)&ak_def_array[AK09916 ] }, - {"ak09918" , (kernel_ulong_t)&ak_def_array[AK09918 ] }, + { .name ="AK8963" , .driver_data = (kernel_ulong_t)&ak_def_array[AK8963 ] }, + { .name ="ak8963" , .driver_data = (kernel_ulong_t)&ak_def_array[AK8963 ] }, + { .name ="ak8975" , .driver_data = (kernel_ulong_t)&ak_def_array[AK8975 ] }, + { .name ="ak09911" , .driver_data = (kernel_ulong_t)&ak_def_array[AK09911 ] }, + { .name ="ak09912" , .driver_data = (kernel_ulong_t)&ak_def_array[AK09912 ] }, + { .name ="ak09916" , .driver_data = (kernel_ulong_t)&ak_def_array[AK09916 ] }, + { .name ="ak09918" , .driver_data = (kernel_ulong_t)&ak_def_array[AK09918 ] }, { } };MODULE_DEVICE_TABLE (i2c, ak8975_id);
drivers/iio/magnetometer/bmc150_magn_i2c.c +3 -3
@@ -39,9 +39,9 @@ static void bmc150_magn_i2c_remove(struct i2c_client *client) }static const struct i2c_device_id bmc150_magn_i2c_id[] = { - {"bmc150_magn" }, - {"bmc156_magn" }, - {"bmm150_magn" }, + { .name ="bmc150_magn" }, + { .name ="bmc156_magn" }, + { .name ="bmm150_magn" }, { } };MODULE_DEVICE_TABLE (i2c, bmc150_magn_i2c_id);
drivers/iio/magnetometer/hmc5843_i2c.c +4 -4
@@ -71,10 +71,10 @@ static void hmc5843_i2c_remove(struct i2c_client *client) }static const struct i2c_device_id hmc5843_id[] = { - {"hmc5843" ,HMC5843_ID }, - {"hmc5883" ,HMC5883_ID }, - {"hmc5883l" ,HMC5883L_ID }, - {"hmc5983" ,HMC5983_ID }, + { .name ="hmc5843" , .driver_data =HMC5843_ID }, + { .name ="hmc5883" , .driver_data =HMC5883_ID }, + { .name ="hmc5883l" , .driver_data =HMC5883L_ID }, + { .name ="hmc5983" , .driver_data =HMC5983_ID }, { } };MODULE_DEVICE_TABLE (i2c, hmc5843_id);
drivers/iio/magnetometer/mag3110.c +1 -1
@@ -619,7 +619,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(mag3110_pm_ops, mag3110_suspend, mag3110_resume);static const struct i2c_device_id mag3110_id[] = { - {"mag3110" }, + { .name ="mag3110" }, { } };MODULE_DEVICE_TABLE (i2c, mag3110_id);
drivers/iio/magnetometer/mmc35240.c +1 -1
@@ -560,7 +560,7 @@ static const struct acpi_device_id mmc35240_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, mmc35240_acpi_match);static const struct i2c_device_id mmc35240_id[] = { - {"mmc35240" }, + { .name ="mmc35240" }, { } };MODULE_DEVICE_TABLE (i2c, mmc35240_id);
drivers/iio/magnetometer/mmc5633.c +2 -2
@@ -532,8 +532,8 @@ static const struct of_device_id mmc5633_of_match[] = {MODULE_DEVICE_TABLE (of, mmc5633_of_match);static const struct i2c_device_id mmc5633_i2c_id[] = { - {"mmc5603" }, - {"mmc5633" }, + { .name ="mmc5603" }, + { .name ="mmc5633" }, { } };MODULE_DEVICE_TABLE (i2c, mmc5633_i2c_id);
drivers/iio/magnetometer/si7210.c +1 -1
@@ -413,7 +413,7 @@ static int si7210_probe(struct i2c_client *client) }static const struct i2c_device_id si7210_id[] = { - {"si7210" }, + { .name ="si7210" }, { } };MODULE_DEVICE_TABLE (i2c, si7210_id);
drivers/iio/magnetometer/st_magn_i2c.c +9 -9
@@ -93,15 +93,15 @@ static int st_magn_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id st_magn_id_table[] = { - {LSM303DLH_MAGN_DEV_NAME }, - {LSM303DLHC_MAGN_DEV_NAME }, - {LSM303DLM_MAGN_DEV_NAME }, - {LIS3MDL_MAGN_DEV_NAME }, - {LSM303AGR_MAGN_DEV_NAME }, - {LIS2MDL_MAGN_DEV_NAME }, - {LSM9DS1_MAGN_DEV_NAME }, - {IIS2MDC_MAGN_DEV_NAME }, - {LSM303C_MAGN_DEV_NAME }, + { .name =LSM303DLH_MAGN_DEV_NAME }, + { .name =LSM303DLHC_MAGN_DEV_NAME }, + { .name =LSM303DLM_MAGN_DEV_NAME }, + { .name =LIS3MDL_MAGN_DEV_NAME }, + { .name =LSM303AGR_MAGN_DEV_NAME }, + { .name =LIS2MDL_MAGN_DEV_NAME }, + { .name =LSM9DS1_MAGN_DEV_NAME }, + { .name =IIS2MDC_MAGN_DEV_NAME }, + { .name =LSM303C_MAGN_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, st_magn_id_table);
drivers/iio/magnetometer/tlv493d.c +1 -1
@@ -499,7 +499,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(tlv493d_pm_ops, tlv493d_runtime_suspend, tlv493d_runtime_resume, NULL);static const struct i2c_device_id tlv493d_id[] = { - {"tlv493d" }, + { .name ="tlv493d" }, { } };MODULE_DEVICE_TABLE (i2c, tlv493d_id);
drivers/iio/magnetometer/tmag5273.c +1 -1
@@ -708,7 +708,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(tmag5273_pm_ops, NULL);static const struct i2c_device_id tmag5273_id[] = { - {"tmag5273" }, + { .name ="tmag5273" }, { } };MODULE_DEVICE_TABLE (i2c, tmag5273_id);
drivers/iio/magnetometer/yamaha-yas530.c +4 -4
@@ -1579,10 +1579,10 @@ static DEFINE_RUNTIME_DEV_PM_OPS(yas5xx_dev_pm_ops, yas5xx_runtime_suspend, yas5xx_runtime_resume, NULL);static const struct i2c_device_id yas5xx_id[] = { - {"yas530" , (kernel_ulong_t)&yas5xx_chip_info_tbl[yas530] }, - {"yas532" , (kernel_ulong_t)&yas5xx_chip_info_tbl[yas532] }, - {"yas533" , (kernel_ulong_t)&yas5xx_chip_info_tbl[yas533] }, - {"yas537" , (kernel_ulong_t)&yas5xx_chip_info_tbl[yas537] }, + { .name ="yas530" , .driver_data = (kernel_ulong_t)&yas5xx_chip_info_tbl[yas530] }, + { .name ="yas532" , .driver_data = (kernel_ulong_t)&yas5xx_chip_info_tbl[yas532] }, + { .name ="yas533" , .driver_data = (kernel_ulong_t)&yas5xx_chip_info_tbl[yas533] }, + { .name ="yas537" , .driver_data = (kernel_ulong_t)&yas5xx_chip_info_tbl[yas537] }, { } };MODULE_DEVICE_TABLE (i2c, yas5xx_id);
drivers/iio/potentiometer/ad5272.c +5 -5
@@ -204,11 +204,11 @@ static const struct of_device_id ad5272_dt_ids[] = {MODULE_DEVICE_TABLE (of, ad5272_dt_ids);static const struct i2c_device_id ad5272_id[] = { - {"ad5272-020" ,AD5272_020 }, - {"ad5272-050" ,AD5272_050 }, - {"ad5272-100" ,AD5272_100 }, - {"ad5274-020" ,AD5274_020 }, - {"ad5274-100" ,AD5274_100 }, + { .name ="ad5272-020" , .driver_data =AD5272_020 }, + { .name ="ad5272-050" , .driver_data =AD5272_050 }, + { .name ="ad5272-100" , .driver_data =AD5272_100 }, + { .name ="ad5274-020" , .driver_data =AD5274_020 }, + { .name ="ad5274-100" , .driver_data =AD5274_100 }, { } };MODULE_DEVICE_TABLE (i2c, ad5272_id);
drivers/iio/potentiometer/ds1803.c +4 -4
@@ -235,10 +235,10 @@ static const struct of_device_id ds1803_dt_ids[] = {MODULE_DEVICE_TABLE (of, ds1803_dt_ids);static const struct i2c_device_id ds1803_id[] = { - {"ds1803-010" , (kernel_ulong_t)&ds1803_cfg[DS1803_010 ] }, - {"ds1803-050" , (kernel_ulong_t)&ds1803_cfg[DS1803_050 ] }, - {"ds1803-100" , (kernel_ulong_t)&ds1803_cfg[DS1803_100 ] }, - {"ds3502" , (kernel_ulong_t)&ds1803_cfg[DS3502 ] }, + { .name ="ds1803-010" , .driver_data = (kernel_ulong_t)&ds1803_cfg[DS1803_010 ] }, + { .name ="ds1803-050" , .driver_data = (kernel_ulong_t)&ds1803_cfg[DS1803_050 ] }, + { .name ="ds1803-100" , .driver_data = (kernel_ulong_t)&ds1803_cfg[DS1803_100 ] }, + { .name ="ds3502" , .driver_data = (kernel_ulong_t)&ds1803_cfg[DS3502 ] }, { } };MODULE_DEVICE_TABLE (i2c, ds1803_id);
drivers/iio/potentiometer/tpl0102.c +4 -4
@@ -149,10 +149,10 @@ static int tpl0102_probe(struct i2c_client *client) }static const struct i2c_device_id tpl0102_id[] = { - {"cat5140-503" ,CAT5140_503 }, - {"cat5140-104" ,CAT5140_104 }, - {"tpl0102-104" ,TPL0102_104 }, - {"tpl0401-103" ,TPL0401_103 }, + { .name ="cat5140-503" , .driver_data =CAT5140_503 }, + { .name ="cat5140-104" , .driver_data =CAT5140_104 }, + { .name ="tpl0102-104" , .driver_data =TPL0102_104 }, + { .name ="tpl0401-103" , .driver_data =TPL0401_103 }, { } };MODULE_DEVICE_TABLE (i2c, tpl0102_id);
drivers/iio/potentiostat/lmp91000.c +2 -2
@@ -403,8 +403,8 @@ static const struct of_device_id lmp91000_of_match[] = {MODULE_DEVICE_TABLE (of, lmp91000_of_match);static const struct i2c_device_id lmp91000_id[] = { - {"lmp91000" }, - {"lmp91002" }, + { .name ="lmp91000" }, + { .name ="lmp91002" }, { } };MODULE_DEVICE_TABLE (i2c, lmp91000_id);
drivers/iio/pressure/abp060mg.c +56 -34
100 lines not on this page · raw message
drivers/iio/pressure/abp2030pa_i2c.c +1 -1
@@ -69,7 +69,7 @@ static const struct of_device_id abp2_i2c_match[] = {MODULE_DEVICE_TABLE (of, abp2_i2c_match);static const struct i2c_device_id abp2_i2c_id[] = { - {"abp2030pa" }, + { .name ="abp2030pa" }, { } };MODULE_DEVICE_TABLE (i2c, abp2_i2c_id);
drivers/iio/pressure/adp810.c +1 -1
@@ -199,7 +199,7 @@ static int adp810_probe(struct i2c_client *client) }static const struct i2c_device_id adp810_id_table[] = { - {"adp810" }, + { .name ="adp810" }, { } };MODULE_DEVICE_TABLE (i2c, adp810_id_table);
drivers/iio/pressure/bmp280-i2c.c +6 -6
@@ -38,12 +38,12 @@ static const struct of_device_id bmp280_of_i2c_match[] = {MODULE_DEVICE_TABLE (of, bmp280_of_i2c_match);static const struct i2c_device_id bmp280_i2c_id[] = { - {"bmp085" , (kernel_ulong_t)&bmp085_chip_info }, - {"bmp180" , (kernel_ulong_t)&bmp180_chip_info }, - {"bmp280" , (kernel_ulong_t)&bmp280_chip_info }, - {"bme280" , (kernel_ulong_t)&bme280_chip_info }, - {"bmp380" , (kernel_ulong_t)&bmp380_chip_info }, - {"bmp580" , (kernel_ulong_t)&bmp580_chip_info }, + { .name ="bmp085" , .driver_data = (kernel_ulong_t)&bmp085_chip_info }, + { .name ="bmp180" , .driver_data = (kernel_ulong_t)&bmp180_chip_info }, + { .name ="bmp280" , .driver_data = (kernel_ulong_t)&bmp280_chip_info }, + { .name ="bme280" , .driver_data = (kernel_ulong_t)&bme280_chip_info }, + { .name ="bmp380" , .driver_data = (kernel_ulong_t)&bmp380_chip_info }, + { .name ="bmp580" , .driver_data = (kernel_ulong_t)&bmp580_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, bmp280_i2c_id);
drivers/iio/pressure/dlhl60d.c +2 -2
@@ -340,8 +340,8 @@ static const struct of_device_id dlh_of_match[] = {MODULE_DEVICE_TABLE (of, dlh_of_match);static const struct i2c_device_id dlh_id[] = { - {"dlhl60d" , (kernel_ulong_t)&dlhl60d_info }, - {"dlhl60g" , (kernel_ulong_t)&dlhl60g_info }, + { .name ="dlhl60d" , .driver_data = (kernel_ulong_t)&dlhl60d_info }, + { .name ="dlhl60g" , .driver_data = (kernel_ulong_t)&dlhl60g_info }, { } };MODULE_DEVICE_TABLE (i2c, dlh_id);
drivers/iio/pressure/dps310.c +1 -1
@@ -887,7 +887,7 @@ static int dps310_probe(struct i2c_client *client) }static const struct i2c_device_id dps310_id[] = { - {DPS310_DEV_NAME }, + { .name =DPS310_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, dps310_id);
drivers/iio/pressure/hp03.c +1 -1
@@ -266,7 +266,7 @@ static int hp03_probe(struct i2c_client *client) }static const struct i2c_device_id hp03_id[] = { - {"hp03" }, + { .name ="hp03" }, { } };MODULE_DEVICE_TABLE (i2c, hp03_id);
drivers/iio/pressure/hp206c.c +1 -1
@@ -395,7 +395,7 @@ static int hp206c_probe(struct i2c_client *client) }static const struct i2c_device_id hp206c_id[] = { - {"hp206c" }, + { .name ="hp206c" }, { } };MODULE_DEVICE_TABLE (i2c, hp206c_id);
drivers/iio/pressure/hsc030pa_i2c.c +1 -1
@@ -58,7 +58,7 @@ static const struct of_device_id hsc_i2c_match[] = {MODULE_DEVICE_TABLE (of, hsc_i2c_match);static const struct i2c_device_id hsc_i2c_id[] = { - {"hsc030pa" }, + { .name ="hsc030pa" }, { } };MODULE_DEVICE_TABLE (i2c, hsc_i2c_id);
drivers/iio/pressure/icp10100.c +1 -1
@@ -633,7 +633,7 @@ static const struct of_device_id icp10100_of_match[] = {MODULE_DEVICE_TABLE (of, icp10100_of_match);static const struct i2c_device_id icp10100_id[] = { - {"icp10100" }, + { .name ="icp10100" }, { } };MODULE_DEVICE_TABLE (i2c, icp10100_id);
drivers/iio/pressure/mpl115_i2c.c +1 -1
@@ -45,7 +45,7 @@ static int mpl115_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id mpl115_i2c_id[] = { - {"mpl115" }, + { .name ="mpl115" }, { } };MODULE_DEVICE_TABLE (i2c, mpl115_i2c_id);
drivers/iio/pressure/mpl3115.c +1 -1
@@ -783,7 +783,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(mpl3115_pm_ops, mpl3115_suspend, mpl3115_resume);static const struct i2c_device_id mpl3115_id[] = { - {"mpl3115" }, + { .name ="mpl3115" }, { } };MODULE_DEVICE_TABLE (i2c, mpl3115_id);
drivers/iio/pressure/mprls0025pa_i2c.c +1 -1
@@ -69,7 +69,7 @@ static const struct of_device_id mpr_i2c_match[] = {MODULE_DEVICE_TABLE (of, mpr_i2c_match);static const struct i2c_device_id mpr_i2c_id[] = { - {"mprls0025pa" }, + { .name ="mprls0025pa" }, { } };MODULE_DEVICE_TABLE (i2c, mpr_i2c_id);
drivers/iio/pressure/ms5611_i2c.c +2 -2
@@ -113,8 +113,8 @@ static const struct of_device_id ms5611_i2c_matches[] = {MODULE_DEVICE_TABLE (of, ms5611_i2c_matches);static const struct i2c_device_id ms5611_id[] = { - {"ms5611" ,MS5611 }, - {"ms5607" ,MS5607 }, + { .name ="ms5611" , .driver_data =MS5611 }, + { .name ="ms5607" , .driver_data =MS5607 }, { } };MODULE_DEVICE_TABLE (i2c, ms5611_id);
drivers/iio/pressure/ms5637.c +4 -4
@@ -215,10 +215,10 @@ static const struct ms_tp_data ms8607_data = { };static const struct i2c_device_id ms5637_id[] = { - {"ms5637" , (kernel_ulong_t)&ms5637_data }, - {"ms5805" , (kernel_ulong_t)&ms5805_data }, - {"ms5837" , (kernel_ulong_t)&ms5837_data }, - {"ms8607-temppressure" , (kernel_ulong_t)&ms8607_data }, + { .name ="ms5637" , .driver_data = (kernel_ulong_t)&ms5637_data }, + { .name ="ms5805" , .driver_data = (kernel_ulong_t)&ms5805_data }, + { .name ="ms5837" , .driver_data = (kernel_ulong_t)&ms5837_data }, + { .name ="ms8607-temppressure" , .driver_data = (kernel_ulong_t)&ms8607_data }, { } };MODULE_DEVICE_TABLE (i2c, ms5637_id);
drivers/iio/pressure/rohm-bm1390.c +1 -1
@@ -888,7 +888,7 @@ static const struct of_device_id bm1390_of_match[] = {MODULE_DEVICE_TABLE (of, bm1390_of_match);static const struct i2c_device_id bm1390_id[] = { - {"bm1390glv-z" , }, + { .name ="bm1390glv-z" }, { } };MODULE_DEVICE_TABLE (i2c, bm1390_id);
drivers/iio/pressure/sdp500.c +1 -1
@@ -130,7 +130,7 @@ static int sdp500_probe(struct i2c_client *client) }static const struct i2c_device_id sdp500_id[] = { - {"sdp500" }, + { .name ="sdp500" }, { } };MODULE_DEVICE_TABLE (i2c, sdp500_id);
drivers/iio/pressure/st_pressure_i2c.c +8 -8
@@ -61,14 +61,14 @@ static const struct acpi_device_id st_press_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, st_press_acpi_match);static const struct i2c_device_id st_press_id_table[] = { - {LPS001WP_PRESS_DEV_NAME ,LPS001WP }, - {LPS25H_PRESS_DEV_NAME ,LPS25H }, - {LPS331AP_PRESS_DEV_NAME ,LPS331AP }, - {LPS22HB_PRESS_DEV_NAME ,LPS22HB }, - {LPS33HW_PRESS_DEV_NAME ,LPS33HW }, - {LPS35HW_PRESS_DEV_NAME ,LPS35HW }, - {LPS22HH_PRESS_DEV_NAME ,LPS22HH }, - {LPS22DF_PRESS_DEV_NAME ,LPS22DF }, + { .name =LPS001WP_PRESS_DEV_NAME , .driver_data =LPS001WP }, + { .name =LPS25H_PRESS_DEV_NAME , .driver_data =LPS25H }, + { .name =LPS331AP_PRESS_DEV_NAME , .driver_data =LPS331AP }, + { .name =LPS22HB_PRESS_DEV_NAME , .driver_data =LPS22HB }, + { .name =LPS33HW_PRESS_DEV_NAME , .driver_data =LPS33HW }, + { .name =LPS35HW_PRESS_DEV_NAME , .driver_data =LPS35HW }, + { .name =LPS22HH_PRESS_DEV_NAME , .driver_data =LPS22HH }, + { .name =LPS22DF_PRESS_DEV_NAME , .driver_data =LPS22DF }, { } };MODULE_DEVICE_TABLE (i2c, st_press_id_table);
drivers/iio/pressure/t5403.c +1 -1
@@ -251,7 +251,7 @@ static int t5403_probe(struct i2c_client *client) }static const struct i2c_device_id t5403_id[] = { - {"t5403" }, + { .name ="t5403" }, { } };MODULE_DEVICE_TABLE (i2c, t5403_id);
drivers/iio/pressure/zpa2326_i2c.c +1 -1
@@ -58,7 +58,7 @@ static void zpa2326_remove_i2c(struct i2c_client *client) }static const struct i2c_device_id zpa2326_i2c_ids[] = { - {"zpa2326" }, + { .name ="zpa2326" }, { } };MODULE_DEVICE_TABLE (i2c, zpa2326_i2c_ids);
drivers/iio/proximity/aw96103.c +2 -2
@@ -825,8 +825,8 @@ static const struct of_device_id aw96103_dt_match[] = {MODULE_DEVICE_TABLE (of, aw96103_dt_match);static const struct i2c_device_id aw96103_i2c_id[] = { - {"aw96103" , (kernel_ulong_t)&aw_chip_info_tbl[AW96103_VAL ] }, - {"aw96105" , (kernel_ulong_t)&aw_chip_info_tbl[AW96105_VAL ] }, + { .name ="aw96103" , .driver_data = (kernel_ulong_t)&aw_chip_info_tbl[AW96103_VAL ] }, + { .name ="aw96105" , .driver_data = (kernel_ulong_t)&aw_chip_info_tbl[AW96105_VAL ] }, { } };MODULE_DEVICE_TABLE (i2c, aw96103_i2c_id);
drivers/iio/proximity/hx9023s.c +1 -1
@@ -1199,7 +1199,7 @@ static const struct of_device_id hx9023s_of_match[] = {MODULE_DEVICE_TABLE (of, hx9023s_of_match);static const struct i2c_device_id hx9023s_id[] = { - {"hx9023s" }, + { .name ="hx9023s" }, { } };MODULE_DEVICE_TABLE (i2c, hx9023s_id);
drivers/iio/proximity/isl29501.c +1 -1
@@ -995,7 +995,7 @@ static int isl29501_probe(struct i2c_client *client) }static const struct i2c_device_id isl29501_id[] = { - {"isl29501" }, + { .name ="isl29501" }, { } };
drivers/iio/proximity/mb1232.c +7 -7
@@ -244,13 +244,13 @@ static const struct of_device_id of_mb1232_match[] = {MODULE_DEVICE_TABLE (of, of_mb1232_match);static const struct i2c_device_id mb1232_id[] = { - {"maxbotix-mb1202" , }, - {"maxbotix-mb1212" , }, - {"maxbotix-mb1222" , }, - {"maxbotix-mb1232" , }, - {"maxbotix-mb1242" , }, - {"maxbotix-mb7040" , }, - {"maxbotix-mb7137" , }, + { .name ="maxbotix-mb1202" }, + { .name ="maxbotix-mb1212" }, + { .name ="maxbotix-mb1222" }, + { .name ="maxbotix-mb1232" }, + { .name ="maxbotix-mb1242" }, + { .name ="maxbotix-mb7040" }, + { .name ="maxbotix-mb7137" }, { } };MODULE_DEVICE_TABLE (i2c, mb1232_id);
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c +2 -2
@@ -319,8 +319,8 @@ static void lidar_remove(struct i2c_client *client) }static const struct i2c_device_id lidar_id[] = { - {"lidar-lite-v2" }, - {"lidar-lite-v3" }, + { .name ="lidar-lite-v2" }, + { .name ="lidar-lite-v3" }, { } };MODULE_DEVICE_TABLE (i2c, lidar_id);
drivers/iio/proximity/rfd77402.c +1 -1
@@ -433,7 +433,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(rfd77402_pm_ops, rfd77402_suspend, rfd77402_resume);static const struct i2c_device_id rfd77402_id[] = { - {"rfd77402" }, + { .name ="rfd77402" }, { } };MODULE_DEVICE_TABLE (i2c, rfd77402_id);
drivers/iio/proximity/srf08.c +3 -3
@@ -533,9 +533,9 @@ static const struct of_device_id of_srf08_match[] = {MODULE_DEVICE_TABLE (of, of_srf08_match);static const struct i2c_device_id srf08_id[] = { - {"srf02" ,SRF02 }, - {"srf08" ,SRF08 }, - {"srf10" ,SRF10 }, + { .name ="srf02" , .driver_data =SRF02 }, + { .name ="srf08" , .driver_data =SRF08 }, + { .name ="srf10" , .driver_data =SRF10 }, { } };MODULE_DEVICE_TABLE (i2c, srf08_id);
drivers/iio/proximity/sx9310.c +2 -2
@@ -1007,8 +1007,8 @@ static const struct of_device_id sx9310_of_match[] = {MODULE_DEVICE_TABLE (of, sx9310_of_match);static const struct i2c_device_id sx9310_id[] = { - {"sx9310" , (kernel_ulong_t)&sx9310_info }, - {"sx9311" , (kernel_ulong_t)&sx9311_info }, + { .name ="sx9310" , .driver_data = (kernel_ulong_t)&sx9310_info }, + { .name ="sx9311" , .driver_data = (kernel_ulong_t)&sx9311_info }, { } };MODULE_DEVICE_TABLE (i2c, sx9310_id);
drivers/iio/proximity/sx9500.c +1 -1
@@ -1025,7 +1025,7 @@ static const struct of_device_id sx9500_of_match[] = {MODULE_DEVICE_TABLE (of, sx9500_of_match);static const struct i2c_device_id sx9500_id[] = { - {"sx9500" }, + { .name ="sx9500" }, { } };MODULE_DEVICE_TABLE (i2c, sx9500_id);
drivers/iio/proximity/vl53l0x-i2c.c +1 -1
@@ -393,7 +393,7 @@ static int vl53l0x_probe(struct i2c_client *client) }static const struct i2c_device_id vl53l0x_id[] = { - {"vl53l0x" }, + { .name ="vl53l0x" }, { } };MODULE_DEVICE_TABLE (i2c, vl53l0x_id);
drivers/iio/proximity/vl53l1x-i2c.c +1 -1
@@ -730,7 +730,7 @@ static int vl53l1x_probe(struct i2c_client *client) }static const struct i2c_device_id vl53l1x_id[] = { - {"vl53l1x" }, + { .name ="vl53l1x" }, { } };MODULE_DEVICE_TABLE (i2c, vl53l1x_id);
drivers/iio/temperature/max30208.c +1 -1
@@ -218,7 +218,7 @@ static int max30208_probe(struct i2c_client *i2c) }static const struct i2c_device_id max30208_id_table[] = { - {"max30208" }, + { .name ="max30208" }, { } };MODULE_DEVICE_TABLE (i2c, max30208_id_table);
drivers/iio/temperature/mcp9600.c +2 -2
@@ -551,8 +551,8 @@ static const struct mcp_chip_info mcp9601_chip_info = { };static const struct i2c_device_id mcp9600_id[] = { - {"mcp9600" , .driver_data = (kernel_ulong_t)&mcp9600_chip_info }, - {"mcp9601" , .driver_data = (kernel_ulong_t)&mcp9601_chip_info }, + { .name ="mcp9600" , .driver_data = (kernel_ulong_t)&mcp9600_chip_info }, + { .name ="mcp9601" , .driver_data = (kernel_ulong_t)&mcp9601_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, mcp9600_id);
drivers/iio/temperature/mlx90614.c +2 -2
@@ -699,8 +699,8 @@ static const struct mlx_chip_info mlx90615_chip_info = { };static const struct i2c_device_id mlx90614_id[] = { - {"mlx90614" , .driver_data = (kernel_ulong_t)&mlx90614_chip_info }, - {"mlx90615" , .driver_data = (kernel_ulong_t)&mlx90615_chip_info }, + { .name ="mlx90614" , .driver_data = (kernel_ulong_t)&mlx90614_chip_info }, + { .name ="mlx90615" , .driver_data = (kernel_ulong_t)&mlx90615_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, mlx90614_id);
drivers/iio/temperature/mlx90632.c +1 -1
@@ -1276,7 +1276,7 @@ static int mlx90632_probe(struct i2c_client *client) }static const struct i2c_device_id mlx90632_id[] = { - {"mlx90632" }, + { .name ="mlx90632" }, { } };MODULE_DEVICE_TABLE (i2c, mlx90632_id);
drivers/iio/temperature/mlx90635.c +1 -1
@@ -1026,7 +1026,7 @@ static int mlx90635_probe(struct i2c_client *client) }static const struct i2c_device_id mlx90635_id[] = { - {"mlx90635" }, + { .name ="mlx90635" }, { } };MODULE_DEVICE_TABLE (i2c, mlx90635_id);
drivers/iio/temperature/tmp006.c +1 -1
@@ -391,7 +391,7 @@ static const struct of_device_id tmp006_of_match[] = {MODULE_DEVICE_TABLE (of, tmp006_of_match);static const struct i2c_device_id tmp006_id[] = { - {"tmp006" }, + { .name ="tmp006" }, { } };MODULE_DEVICE_TABLE (i2c, tmp006_id);
drivers/iio/temperature/tmp007.c +1 -1
@@ -563,7 +563,7 @@ static const struct of_device_id tmp007_of_match[] = {MODULE_DEVICE_TABLE (of, tmp007_of_match);static const struct i2c_device_id tmp007_id[] = { - {"tmp007" }, + { .name ="tmp007" }, { } };MODULE_DEVICE_TABLE (i2c, tmp007_id);
drivers/iio/temperature/tmp117.c +2 -2
@@ -209,8 +209,8 @@ static const struct of_device_id tmp117_of_match[] = {MODULE_DEVICE_TABLE (of, tmp117_of_match);static const struct i2c_device_id tmp117_id[] = { - {"tmp116" , (kernel_ulong_t)&tmp116_channels_info }, - {"tmp117" , (kernel_ulong_t)&tmp117_channels_info }, + { .name ="tmp116" , .driver_data = (kernel_ulong_t)&tmp116_channels_info }, + { .name ="tmp117" , .driver_data = (kernel_ulong_t)&tmp117_channels_info }, { } };MODULE_DEVICE_TABLE (i2c, tmp117_id);
drivers/iio/temperature/tsys01.c +1 -1
@@ -206,7 +206,7 @@ static int tsys01_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id tsys01_id[] = { - {"tsys01" }, + { .name ="tsys01" }, { } };MODULE_DEVICE_TABLE (i2c, tsys01_id);
drivers/iio/temperature/tsys02d.c +1 -1
@@ -168,7 +168,7 @@ static int tsys02d_probe(struct i2c_client *client) }static const struct i2c_device_id tsys02d_id[] = { - {"tsys02d" }, + { .name ="tsys02d" }, { } };MODULE_DEVICE_TABLE (i2c, tsys02d_id);
Signature · 1 line
2.47.3
Re: [PATCH v2 7/7] iio: Initialize i2c_device_id arrays using member names
Quoted 5 lines · Uwe Kleine-König (The Capable Hub)
While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition.
Quoted 8 lines
The mentioned robustness is relevant for a planned change to struct
i2c_device_idthat replaces .driver_data by an anonymous union.This patch doesn't modify the compiled arrays, only their representation in source form benefits. The former was confirmed with x86 and arm64 builds.
Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>
I took a look at the ROHM/Kionix stuff. All of it looked good to me, thanks!
So, for rohm-XXXX, bhXXXX, kxXXXX:
Yours,
-- Matti
Signature · 6 lines
--- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~
Re: [PATCH v2 7/7] iio: Initialize i2c_device_id arrays using member names
In reply to Uwe Kleine-König (The Capable Hub)Quoted 26 lines
drivers/iio/proximity/vl53l0x-i2c.c +1
-1@@ -393,7 +393,7 @@ static int vl53l0x_probe(struct i2c_client *client) }static const struct i2c_device_id vl53l0x_id[] = { - {"vl53l0x" }, + { .name ="vl53l0x" }, { } };MODULE_DEVICE_TABLE (i2c, vl53l0x_id);drivers/iio/proximity/vl53l1x-i2c.c +1
-1@@ -730,7 +730,7 @@ static int vl53l1x_probe(struct i2c_client *client) }static const struct i2c_device_id vl53l1x_id[] = { - {"vl53l1x" }, + { .name ="vl53l1x" }, { } };MODULE_DEVICE_TABLE (i2c, vl53l1x_id);
...
Quoted 3 lines
--
2.47.3
Only reviewed VL53L0X/VL53L1X changes. Looks good to me.
Jonathan Cameron
maintainerRe: [PATCH v2 7/7] iio: Initialize i2c_device_id arrays using member names
In reply to Uwe Kleine-König (The Capable Hub)Quoted 5 lines · On Tue, 19 May 2026 10:13:09 +0200 Uwe Kleine-König (The Capable Hub)…
While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition.
Quoted 8 lines
The mentioned robustness is relevant for a planned change to struct
i2c_device_idthat replaces .driver_data by an anonymous union.This patch doesn't modify the compiled arrays, only their representation in source form benefits. The former was confirmed with x86 and arm64 builds.
Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>
Hi Uwe,
I'd prefer it split into cases you care about (not just name) and the name only ones. That is unless I'm missing some potential change that breaks initializing just the first element and hence not the union you plan to add.
It's a lot of churn and the name one isn't enabling anything new unless I'm missing something.
We also get fixes in these annoyingly often so chances are this will mess up backports. Might even be worth splitting it up into directories just to reduce that backport mess.
Also, have you done a checkpatch check for this? Nice to not being fighting it for ever.
Jonathan
Quoted 3,837 lines
--- drivers/iio/accel/adxl345_i2c.c | 4 +- drivers/iio/accel/adxl355_i2c.c | 4 +- drivers/iio/accel/adxl367_i2c.c | 2 +- drivers/iio/accel/adxl372_i2c.c | 4 +- drivers/iio/accel/adxl380_i2c.c | 8 +- drivers/iio/accel/bma180.c | 10 +- drivers/iio/accel/bma220_i2c.c | 2 +- drivers/iio/accel/bma400_i2c.c | 2 +- drivers/iio/accel/bmi088-accel-i2c.c | 6 +- drivers/iio/accel/da280.c | 6 +- drivers/iio/accel/da311.c | 2 +- drivers/iio/accel/dmard06.c | 6 +- drivers/iio/accel/dmard09.c | 2 +- drivers/iio/accel/dmard10.c | 2 +- drivers/iio/accel/fxls8962af-i2c.c | 8 +- drivers/iio/accel/kxcjk-1013.c | 10 +- drivers/iio/accel/kxsd9-i2c.c | 2 +- drivers/iio/accel/mc3230.c | 4 +- drivers/iio/accel/mma7455_i2c.c | 4 +- drivers/iio/accel/mma7660.c | 2 +- drivers/iio/accel/mma8452.c | 12 +-- drivers/iio/accel/mma9551.c | 2 +- drivers/iio/accel/mma9553.c | 2 +- drivers/iio/accel/mxc4005.c | 4 +- drivers/iio/accel/mxc6255.c | 4 +- drivers/iio/accel/st_accel_i2c.c | 52 +++++----- drivers/iio/accel/stk8312.c | 4 +- drivers/iio/accel/stk8ba50.c | 2 +- drivers/iio/adc/ad7291.c | 2 +- drivers/iio/adc/ad799x.c | 16 ++-- drivers/iio/adc/gehc-pmc-adc.c | 2 +- drivers/iio/adc/ina2xx-adc.c | 12 +-- drivers/iio/adc/ltc2309.c | 4 +- drivers/iio/adc/ltc2471.c | 4 +- drivers/iio/adc/ltc2485.c | 2 +- drivers/iio/adc/ltc2497.c | 4 +- drivers/iio/adc/max34408.c | 4 +- drivers/iio/adc/mcp3422.c | 16 ++-- drivers/iio/adc/nau7802.c | 2 +- drivers/iio/adc/rohm-bd79124.c | 2 +- drivers/iio/adc/ti-adc081c.c | 6 +- drivers/iio/adc/ti-ads1015.c | 6 +- drivers/iio/adc/ti-ads1100.c | 4 +- drivers/iio/adc/ti-ads1119.c | 2 +- drivers/iio/adc/ti-ads7138.c | 4 +- drivers/iio/adc/ti-ads7924.c | 2 +- drivers/iio/cdc/ad7150.c | 6 +- drivers/iio/cdc/ad7746.c | 6 +- drivers/iio/chemical/ags02ma.c | 2 +- drivers/iio/chemical/ams-iaq-core.c | 2 +- drivers/iio/chemical/atlas-ezo-sensor.c | 6 +- drivers/iio/chemical/atlas-sensor.c | 10 +- drivers/iio/chemical/bme680_i2c.c | 2 +- drivers/iio/chemical/ccs811.c | 4 +- drivers/iio/chemical/ens160_i2c.c | 2 +- drivers/iio/chemical/sgp30.c | 4 +- drivers/iio/chemical/sgp40.c | 2 +- drivers/iio/chemical/sps30_i2c.c | 2 +- drivers/iio/chemical/vz89x.c | 4 +- drivers/iio/dac/ad5064.c | 94 +++++++++---------- drivers/iio/dac/ad5380.c | 32 +++---- drivers/iio/dac/ad5446-i2c.c | 12 +-- drivers/iio/dac/ad5696-i2c.c | 32 +++---- drivers/iio/dac/ds4424.c | 8 +- drivers/iio/dac/m62332.c | 2 +- drivers/iio/dac/max517.c | 10 +- drivers/iio/dac/mcp4725.c | 4 +- drivers/iio/dac/mcp4728.c | 2 +- drivers/iio/dac/mcp47feb02.c | 48 +++++----- drivers/iio/dac/ti-dac5571.c | 22 ++--- drivers/iio/gyro/bmg160_i2c.c | 6 +- drivers/iio/gyro/fxas21002c_i2c.c | 2 +- drivers/iio/gyro/itg3200_core.c | 2 +- drivers/iio/gyro/mpu3050-i2c.c | 2 +- drivers/iio/gyro/st_gyro_i2c.c | 18 ++-- drivers/iio/health/afe4404.c | 2 +- drivers/iio/health/max30100.c | 2 +- drivers/iio/health/max30102.c | 6 +- drivers/iio/humidity/am2315.c | 2 +- drivers/iio/humidity/ens210.c | 12 +-- drivers/iio/humidity/hdc100x.c | 12 +-- drivers/iio/humidity/hdc2010.c | 4 +- drivers/iio/humidity/hdc3020.c | 6 +- drivers/iio/humidity/hts221_i2c.c | 2 +- drivers/iio/humidity/htu21.c | 4 +- drivers/iio/humidity/si7005.c | 4 +- drivers/iio/humidity/si7020.c | 4 +- drivers/iio/imu/bmi160/bmi160_i2c.c | 4 +- drivers/iio/imu/bmi270/bmi270_i2c.c | 4 +- drivers/iio/imu/bmi323/bmi323_i2c.c | 2 +- drivers/iio/imu/bno055/bno055_i2c.c | 2 +- drivers/iio/imu/fxos8700_i2c.c | 2 +- .../iio/imu/inv_icm42600/inv_icm42600_i2c.c | 14 +-- .../iio/imu/inv_icm45600/inv_icm45600_i2c.c | 16 ++-- drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c | 36 +++---- drivers/iio/imu/kmx61.c | 2 +- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c | 48 +++++----- drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c | 4 +- drivers/iio/light/adjd_s311.c | 2 +- drivers/iio/light/adux1020.c | 2 +- drivers/iio/light/al3000a.c | 2 +- drivers/iio/light/al3010.c | 2 +- drivers/iio/light/al3320a.c | 2 +- drivers/iio/light/apds9300.c | 2 +- drivers/iio/light/apds9960.c | 2 +- drivers/iio/light/as73211.c | 4 +- drivers/iio/light/bh1745.c | 2 +- drivers/iio/light/bh1750.c | 10 +- drivers/iio/light/bh1780.c | 2 +- drivers/iio/light/cm3232.c | 2 +- drivers/iio/light/cm3323.c | 2 +- drivers/iio/light/cm36651.c | 2 +- drivers/iio/light/gp2ap002.c | 2 +- drivers/iio/light/gp2ap020a00f.c | 2 +- drivers/iio/light/isl29018.c | 6 +- drivers/iio/light/isl29028.c | 4 +- drivers/iio/light/isl29125.c | 2 +- drivers/iio/light/isl76682.c | 2 +- drivers/iio/light/jsa1212.c | 2 +- drivers/iio/light/ltr390.c | 2 +- drivers/iio/light/ltr501.c | 8 +- drivers/iio/light/ltrf216a.c | 4 +- drivers/iio/light/lv0104cs.c | 2 +- drivers/iio/light/max44000.c | 2 +- drivers/iio/light/max44009.c | 2 +- drivers/iio/light/noa1305.c | 2 +- drivers/iio/light/opt3001.c | 4 +- drivers/iio/light/opt4001.c | 4 +- drivers/iio/light/opt4060.c | 2 +- drivers/iio/light/pa12203001.c | 2 +- drivers/iio/light/rpr0521.c | 2 +- drivers/iio/light/si1133.c | 2 +- drivers/iio/light/si1145.c | 14 +-- drivers/iio/light/st_uvis25_i2c.c | 2 +- drivers/iio/light/stk3310.c | 8 +- drivers/iio/light/tcs3414.c | 2 +- drivers/iio/light/tcs3472.c | 2 +- drivers/iio/light/tsl2772.c | 22 ++--- drivers/iio/light/tsl4531.c | 2 +- drivers/iio/light/us5182d.c | 2 +- drivers/iio/light/vcnl4000.c | 14 +-- drivers/iio/light/vcnl4035.c | 2 +- drivers/iio/light/veml3235.c | 2 +- drivers/iio/light/veml6030.c | 6 +- drivers/iio/light/veml6040.c | 2 +- drivers/iio/light/veml6046x00.c | 2 +- drivers/iio/light/veml6070.c | 2 +- drivers/iio/light/veml6075.c | 2 +- drivers/iio/light/vl6180.c | 2 +- drivers/iio/light/zopt2201.c | 2 +- drivers/iio/magnetometer/af8133j.c | 2 +- drivers/iio/magnetometer/ak8974.c | 8 +- drivers/iio/magnetometer/ak8975.c | 14 +-- drivers/iio/magnetometer/bmc150_magn_i2c.c | 6 +- drivers/iio/magnetometer/hmc5843_i2c.c | 8 +- drivers/iio/magnetometer/mag3110.c | 2 +- drivers/iio/magnetometer/mmc35240.c | 2 +- drivers/iio/magnetometer/mmc5633.c | 4 +- drivers/iio/magnetometer/si7210.c | 2 +- drivers/iio/magnetometer/st_magn_i2c.c | 18 ++-- drivers/iio/magnetometer/tlv493d.c | 2 +- drivers/iio/magnetometer/tmag5273.c | 2 +- drivers/iio/magnetometer/yamaha-yas530.c | 8 +- drivers/iio/potentiometer/ad5272.c | 10 +- drivers/iio/potentiometer/ds1803.c | 8 +- drivers/iio/potentiometer/tpl0102.c | 8 +- drivers/iio/potentiostat/lmp91000.c | 4 +- drivers/iio/pressure/abp060mg.c | 90 +++++++++++------- drivers/iio/pressure/abp2030pa_i2c.c | 2 +- drivers/iio/pressure/adp810.c | 2 +- drivers/iio/pressure/bmp280-i2c.c | 12 +-- drivers/iio/pressure/dlhl60d.c | 4 +- drivers/iio/pressure/dps310.c | 2 +- drivers/iio/pressure/hp03.c | 2 +- drivers/iio/pressure/hp206c.c | 2 +- drivers/iio/pressure/hsc030pa_i2c.c | 2 +- drivers/iio/pressure/icp10100.c | 2 +- drivers/iio/pressure/mpl115_i2c.c | 2 +- drivers/iio/pressure/mpl3115.c | 2 +- drivers/iio/pressure/mprls0025pa_i2c.c | 2 +- drivers/iio/pressure/ms5611_i2c.c | 4 +- drivers/iio/pressure/ms5637.c | 8 +- drivers/iio/pressure/rohm-bm1390.c | 2 +- drivers/iio/pressure/sdp500.c | 2 +- drivers/iio/pressure/st_pressure_i2c.c | 16 ++-- drivers/iio/pressure/t5403.c | 2 +- drivers/iio/pressure/zpa2326_i2c.c | 2 +- drivers/iio/proximity/aw96103.c | 4 +- drivers/iio/proximity/hx9023s.c | 2 +- drivers/iio/proximity/isl29501.c | 2 +- drivers/iio/proximity/mb1232.c | 14 +-- .../iio/proximity/pulsedlight-lidar-lite-v2.c | 4 +- drivers/iio/proximity/rfd77402.c | 2 +- drivers/iio/proximity/srf08.c | 6 +- drivers/iio/proximity/sx9310.c | 4 +- drivers/iio/proximity/sx9500.c | 2 +- drivers/iio/proximity/vl53l0x-i2c.c | 2 +- drivers/iio/proximity/vl53l1x-i2c.c | 2 +- drivers/iio/temperature/max30208.c | 2 +- drivers/iio/temperature/mcp9600.c | 4 +- drivers/iio/temperature/mlx90614.c | 4 +- drivers/iio/temperature/mlx90632.c | 2 +- drivers/iio/temperature/mlx90635.c | 2 +- drivers/iio/temperature/tmp006.c | 2 +- drivers/iio/temperature/tmp007.c | 2 +- drivers/iio/temperature/tmp117.c | 4 +- drivers/iio/temperature/tsys01.c | 2 +- drivers/iio/temperature/tsys02d.c | 2 +- 208 files changed, 678 insertions(+), 656 deletions(-)drivers/iio/accel/adxl345_i2c.c +2
-2@@ -43,8 +43,8 @@ static const struct adxl345_chip_info adxl375_i2c_info = { };static const struct i2c_device_id adxl345_i2c_id[] = { - {"adxl345" , (kernel_ulong_t)&adxl345_i2c_info }, - {"adxl375" , (kernel_ulong_t)&adxl375_i2c_info }, + { .name ="adxl345" , .driver_data = (kernel_ulong_t)&adxl345_i2c_info }, + { .name ="adxl375" , .driver_data = (kernel_ulong_t)&adxl375_i2c_info }, { } };MODULE_DEVICE_TABLE (i2c, adxl345_i2c_id);drivers/iio/accel/adxl355_i2c.c +2
-2@@ -41,8 +41,8 @@ static int adxl355_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id adxl355_i2c_id[] = { - {"adxl355" , (kernel_ulong_t)&adxl35x_chip_info[ADXL355 ] }, - {"adxl359" , (kernel_ulong_t)&adxl35x_chip_info[ADXL359 ] }, + { .name ="adxl355" , .driver_data = (kernel_ulong_t)&adxl35x_chip_info[ADXL355 ] }, + { .name ="adxl359" , .driver_data = (kernel_ulong_t)&adxl35x_chip_info[ADXL359 ] }, { } };MODULE_DEVICE_TABLE (i2c, adxl355_i2c_id);drivers/iio/accel/adxl367_i2c.c +1
-1@@ -61,7 +61,7 @@ static int adxl367_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id adxl367_i2c_id[] = { - {"adxl367" }, + { .name ="adxl367" }, { } };MODULE_DEVICE_TABLE (i2c, adxl367_i2c_id);drivers/iio/accel/adxl372_i2c.c +2
-2@@ -44,8 +44,8 @@ static int adxl372_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id adxl372_i2c_id[] = { - {"adxl371" , (kernel_ulong_t)&adxl371_chip_info }, - {"adxl372" , (kernel_ulong_t)&adxl372_chip_info }, + { .name ="adxl371" , .driver_data = (kernel_ulong_t)&adxl371_chip_info }, + { .name ="adxl372" , .driver_data = (kernel_ulong_t)&adxl372_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, adxl372_i2c_id);drivers/iio/accel/adxl380_i2c.c +4
-4@@ -33,10 +33,10 @@ static int adxl380_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id adxl380_i2c_id[] = { - {"adxl318" , (kernel_ulong_t)&adxl318_chip_info }, - {"adxl319" , (kernel_ulong_t)&adxl319_chip_info }, - {"adxl380" , (kernel_ulong_t)&adxl380_chip_info }, - {"adxl382" , (kernel_ulong_t)&adxl382_chip_info }, + { .name ="adxl318" , .driver_data = (kernel_ulong_t)&adxl318_chip_info }, + { .name ="adxl319" , .driver_data = (kernel_ulong_t)&adxl319_chip_info }, + { .name ="adxl380" , .driver_data = (kernel_ulong_t)&adxl380_chip_info }, + { .name ="adxl382" , .driver_data = (kernel_ulong_t)&adxl382_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, adxl380_i2c_id);drivers/iio/accel/bma180.c +5
-5@@ -1083,11 +1083,11 @@ static int bma180_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(bma180_pm_ops, bma180_suspend, bma180_resume);static const struct i2c_device_id bma180_ids[] = { - {"bma023" , (kernel_ulong_t)&bma180_part_info[BMA023 ] }, - {"bma150" , (kernel_ulong_t)&bma180_part_info[BMA150 ] }, - {"bma180" , (kernel_ulong_t)&bma180_part_info[BMA180 ] }, - {"bma250" , (kernel_ulong_t)&bma180_part_info[BMA250 ] }, - {"smb380" , (kernel_ulong_t)&bma180_part_info[BMA150 ] }, + { .name ="bma023" , .driver_data = (kernel_ulong_t)&bma180_part_info[BMA023 ] }, + { .name ="bma150" , .driver_data = (kernel_ulong_t)&bma180_part_info[BMA150 ] }, + { .name ="bma180" , .driver_data = (kernel_ulong_t)&bma180_part_info[BMA180 ] }, + { .name ="bma250" , .driver_data = (kernel_ulong_t)&bma180_part_info[BMA250 ] }, + { .name ="smb380" , .driver_data = (kernel_ulong_t)&bma180_part_info[BMA150 ] }, { } };drivers/iio/accel/bma220_i2c.c +1
-1@@ -47,7 +47,7 @@ static const struct of_device_id bma220_i2c_match[] = {MODULE_DEVICE_TABLE (of, bma220_i2c_match);static const struct i2c_device_id bma220_i2c_id[] = { - {"bma220" }, + { .name ="bma220" }, { } };MODULE_DEVICE_TABLE (i2c, bma220_i2c_id);drivers/iio/accel/bma400_i2c.c +1
-1@@ -28,7 +28,7 @@ static int bma400_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id bma400_i2c_ids[] = { - {"bma400" }, + { .name ="bma400" }, { } };MODULE_DEVICE_TABLE (i2c, bma400_i2c_ids);drivers/iio/accel/bmi088-accel-i2c.c +3
-3@@ -45,9 +45,9 @@ static const struct of_device_id bmi088_of_match[] = {MODULE_DEVICE_TABLE (of, bmi088_of_match);static const struct i2c_device_id bmi088_accel_id[] = { - {"bmi085-accel" ,BOSCH_BMI085 }, - {"bmi088-accel" ,BOSCH_BMI088 }, - {"bmi090l-accel" ,BOSCH_BMI090L }, + { .name ="bmi085-accel" , .driver_data =BOSCH_BMI085 }, + { .name ="bmi088-accel" , .driver_data =BOSCH_BMI088 }, + { .name ="bmi090l-accel" , .driver_data =BOSCH_BMI090L }, { } };MODULE_DEVICE_TABLE (i2c, bmi088_accel_id);drivers/iio/accel/da280.c +3
-3@@ -162,9 +162,9 @@ static const struct acpi_device_id da280_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, da280_acpi_match);static const struct i2c_device_id da280_i2c_id[] = { - {"da217" , (kernel_ulong_t)&da217_match_data }, - {"da226" , (kernel_ulong_t)&da226_match_data }, - {"da280" , (kernel_ulong_t)&da280_match_data }, + { .name ="da217" , .driver_data = (kernel_ulong_t)&da217_match_data }, + { .name ="da226" , .driver_data = (kernel_ulong_t)&da226_match_data }, + { .name ="da280" , .driver_data = (kernel_ulong_t)&da280_match_data }, { } };MODULE_DEVICE_TABLE (i2c, da280_i2c_id);drivers/iio/accel/da311.c +1
-1@@ -268,7 +268,7 @@ static int da311_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(da311_pm_ops, da311_suspend, da311_resume);static const struct i2c_device_id da311_i2c_id[] = { - {"da311" }, + { .name ="da311" }, { } };MODULE_DEVICE_TABLE (i2c, da311_i2c_id);drivers/iio/accel/dmard06.c +3
-3@@ -199,9 +199,9 @@ static DEFINE_SIMPLE_DEV_PM_OPS(dmard06_pm_ops, dmard06_suspend, dmard06_resume);static const struct i2c_device_id dmard06_id[] = { - {"dmard05" }, - {"dmard06" }, - {"dmard07" }, + { .name ="dmard05" }, + { .name ="dmard06" }, + { .name ="dmard07" }, { } };MODULE_DEVICE_TABLE (i2c, dmard06_id);drivers/iio/accel/dmard09.c +1
-1@@ -123,7 +123,7 @@ static int dmard09_probe(struct i2c_client *client) }static const struct i2c_device_id dmard09_id[] = { - {"dmard09" }, + { .name ="dmard09" }, { } };drivers/iio/accel/dmard10.c +1
-1@@ -229,7 +229,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(dmard10_pm_ops, dmard10_suspend, dmard10_resume);static const struct i2c_device_id dmard10_i2c_id[] = { - {"dmard10" }, + { .name ="dmard10" }, { } };MODULE_DEVICE_TABLE (i2c, dmard10_i2c_id);drivers/iio/accel/fxls8962af-i2c.c +4
-4@@ -28,10 +28,10 @@ static int fxls8962af_probe(struct i2c_client *client) }static const struct i2c_device_id fxls8962af_id[] = { - {"fxls8962af" , fxls8962af }, - {"fxls8964af" , fxls8964af }, - {"fxls8967af" , fxls8967af }, - {"fxls8974cf" , fxls8974cf }, + { .name ="fxls8962af" , .driver_data = fxls8962af }, + { .name ="fxls8964af" , .driver_data = fxls8964af }, + { .name ="fxls8967af" , .driver_data = fxls8967af }, + { .name ="fxls8974cf" , .driver_data = fxls8974cf }, { } };MODULE_DEVICE_TABLE (i2c, fxls8962af_id);drivers/iio/accel/kxcjk-1013.c +5
-5@@ -1630,11 +1630,11 @@ static const struct dev_pm_ops kxcjk1013_pm_ops = { };static const struct i2c_device_id kxcjk1013_id[] = { - {"kxcjk1013" , (kernel_ulong_t)&kxcjk1013_info }, - {"kxcj91008" , (kernel_ulong_t)&kxcj91008_info }, - {"kxtj21009" , (kernel_ulong_t)&kxtj21009_info }, - {"kxtf9" , (kernel_ulong_t)&kxtf9_info }, - {"kx023-1025" , (kernel_ulong_t)&kx0231025_info }, + { .name ="kxcjk1013" , .driver_data = (kernel_ulong_t)&kxcjk1013_info }, + { .name ="kxcj91008" , .driver_data = (kernel_ulong_t)&kxcj91008_info }, + { .name ="kxtj21009" , .driver_data = (kernel_ulong_t)&kxtj21009_info }, + { .name ="kxtf9" , .driver_data = (kernel_ulong_t)&kxtf9_info }, + { .name ="kx023-1025" , .driver_data = (kernel_ulong_t)&kx0231025_info }, { } };MODULE_DEVICE_TABLE (i2c, kxcjk1013_id);drivers/iio/accel/kxsd9-i2c.c +1
-1@@ -43,7 +43,7 @@ static const struct of_device_id kxsd9_of_match[] = {MODULE_DEVICE_TABLE (of, kxsd9_of_match);static const struct i2c_device_id kxsd9_i2c_id[] = { - {"kxsd9" }, + { .name ="kxsd9" }, { } };MODULE_DEVICE_TABLE (i2c, kxsd9_i2c_id);drivers/iio/accel/mc3230.c +2
-2@@ -230,8 +230,8 @@ static int mc3230_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(mc3230_pm_ops, mc3230_suspend, mc3230_resume);static const struct i2c_device_id mc3230_i2c_id[] = { - {"mc3230" , (kernel_ulong_t)&mc3230_chip_info }, - {"mc3510c" , (kernel_ulong_t)&mc3510c_chip_info }, + { .name ="mc3230" , .driver_data = (kernel_ulong_t)&mc3230_chip_info }, + { .name ="mc3510c" , .driver_data = (kernel_ulong_t)&mc3510c_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, mc3230_i2c_id);drivers/iio/accel/mma7455_i2c.c +2
-2@@ -32,8 +32,8 @@ static void mma7455_i2c_remove(struct i2c_client *i2c) }static const struct i2c_device_id mma7455_i2c_ids[] = { - {"mma7455" }, - {"mma7456" }, + { .name ="mma7455" }, + { .name ="mma7456" }, { } };MODULE_DEVICE_TABLE (i2c, mma7455_i2c_ids);drivers/iio/accel/mma7660.c +1
-1@@ -259,7 +259,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(mma7660_pm_ops, mma7660_suspend, mma7660_resume);static const struct i2c_device_id mma7660_i2c_id[] = { - {"mma7660" }, + { .name ="mma7660" }, { } };MODULE_DEVICE_TABLE (i2c, mma7660_i2c_id);drivers/iio/accel/mma8452.c +6
-6@@ -1821,12 +1821,12 @@ static const struct dev_pm_ops mma8452_pm_ops = { };static const struct i2c_device_id mma8452_id[] = { - {"fxls8471" , (kernel_ulong_t)&mma_chip_info_table[fxls8471] }, - {"mma8451" , (kernel_ulong_t)&mma_chip_info_table[mma8451] }, - {"mma8452" , (kernel_ulong_t)&mma_chip_info_table[mma8452] }, - {"mma8453" , (kernel_ulong_t)&mma_chip_info_table[mma8453] }, - {"mma8652" , (kernel_ulong_t)&mma_chip_info_table[mma8652] }, - {"mma8653" , (kernel_ulong_t)&mma_chip_info_table[mma8653] }, + { .name ="fxls8471" , .driver_data = (kernel_ulong_t)&mma_chip_info_table[fxls8471] }, + { .name ="mma8451" , .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8451] }, + { .name ="mma8452" , .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8452] }, + { .name ="mma8453" , .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8453] }, + { .name ="mma8652" , .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8652] }, + { .name ="mma8653" , .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8653] }, { } };MODULE_DEVICE_TABLE (i2c, mma8452_id);drivers/iio/accel/mma9551.c +1
-1@@ -582,7 +582,7 @@ static const struct acpi_device_id mma9551_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, mma9551_acpi_match);static const struct i2c_device_id mma9551_id[] = { - {"mma9551" }, + { .name ="mma9551" }, { } };drivers/iio/accel/mma9553.c +1
-1@@ -1219,7 +1219,7 @@ static const struct acpi_device_id mma9553_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, mma9553_acpi_match);static const struct i2c_device_id mma9553_id[] = { - {"mma9553" }, + { .name ="mma9553" }, { } };drivers/iio/accel/mxc4005.c +2
-2@@ -580,8 +580,8 @@ static const struct of_device_id mxc4005_of_match[] = {MODULE_DEVICE_TABLE (of, mxc4005_of_match);static const struct i2c_device_id mxc4005_id[] = { - {"mxc4005" }, - {"mxc6655" }, + { .name ="mxc4005" }, + { .name ="mxc6655" }, { } };MODULE_DEVICE_TABLE (i2c, mxc4005_id);drivers/iio/accel/mxc6255.c +2
-2@@ -171,8 +171,8 @@ static const struct acpi_device_id mxc6255_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, mxc6255_acpi_match);static const struct i2c_device_id mxc6255_id[] = { - {"mxc6225" }, - {"mxc6255" }, + { .name ="mxc6225" }, + { .name ="mxc6255" }, { } };MODULE_DEVICE_TABLE (i2c, mxc6255_id);drivers/iio/accel/st_accel_i2c.c +26
-26@@ -138,32 +138,32 @@ static const struct acpi_device_id st_accel_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, st_accel_acpi_match);static const struct i2c_device_id st_accel_id_table[] = { - {LSM303DLH_ACCEL_DEV_NAME }, - {LSM303DLHC_ACCEL_DEV_NAME }, - {LIS3DH_ACCEL_DEV_NAME }, - {LSM330D_ACCEL_DEV_NAME }, - {LSM330DL_ACCEL_DEV_NAME }, - {LSM330DLC_ACCEL_DEV_NAME }, - {LIS331DLH_ACCEL_DEV_NAME }, - {LSM303DL_ACCEL_DEV_NAME }, - {LSM303DLM_ACCEL_DEV_NAME }, - {LSM330_ACCEL_DEV_NAME }, - {LSM303AGR_ACCEL_DEV_NAME }, - {LIS2DH12_ACCEL_DEV_NAME }, - {LIS3L02DQ_ACCEL_DEV_NAME }, - {LNG2DM_ACCEL_DEV_NAME }, - {H3LIS331DL_ACCEL_DEV_NAME }, - {LIS331DL_ACCEL_DEV_NAME }, - {LIS3LV02DL_ACCEL_DEV_NAME }, - {LIS2DW12_ACCEL_DEV_NAME }, - {LIS3DE_ACCEL_DEV_NAME }, - {LIS2DE12_ACCEL_DEV_NAME }, - {LIS2DS12_ACCEL_DEV_NAME }, - {LIS2HH12_ACCEL_DEV_NAME }, - {LIS302DL_ACCEL_DEV_NAME }, - {LSM303C_ACCEL_DEV_NAME }, - {SC7A20_ACCEL_DEV_NAME }, - {IIS328DQ_ACCEL_DEV_NAME }, + { .name =LSM303DLH_ACCEL_DEV_NAME }, + { .name =LSM303DLHC_ACCEL_DEV_NAME }, + { .name =LIS3DH_ACCEL_DEV_NAME }, + { .name =LSM330D_ACCEL_DEV_NAME }, + { .name =LSM330DL_ACCEL_DEV_NAME }, + { .name =LSM330DLC_ACCEL_DEV_NAME }, + { .name =LIS331DLH_ACCEL_DEV_NAME }, + { .name =LSM303DL_ACCEL_DEV_NAME }, + { .name =LSM303DLM_ACCEL_DEV_NAME }, + { .name =LSM330_ACCEL_DEV_NAME }, + { .name =LSM303AGR_ACCEL_DEV_NAME }, + { .name =LIS2DH12_ACCEL_DEV_NAME }, + { .name =LIS3L02DQ_ACCEL_DEV_NAME }, + { .name =LNG2DM_ACCEL_DEV_NAME }, + { .name =H3LIS331DL_ACCEL_DEV_NAME }, + { .name =LIS331DL_ACCEL_DEV_NAME }, + { .name =LIS3LV02DL_ACCEL_DEV_NAME }, + { .name =LIS2DW12_ACCEL_DEV_NAME }, + { .name =LIS3DE_ACCEL_DEV_NAME }, + { .name =LIS2DE12_ACCEL_DEV_NAME }, + { .name =LIS2DS12_ACCEL_DEV_NAME }, + { .name =LIS2HH12_ACCEL_DEV_NAME }, + { .name =LIS302DL_ACCEL_DEV_NAME }, + { .name =LSM303C_ACCEL_DEV_NAME }, + { .name =SC7A20_ACCEL_DEV_NAME }, + { .name =IIS328DQ_ACCEL_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, st_accel_id_table);drivers/iio/accel/stk8312.c +2
-2@@ -630,8 +630,8 @@ static DEFINE_SIMPLE_DEV_PM_OPS(stk8312_pm_ops, stk8312_suspend,static const struct i2c_device_id stk8312_i2c_id[] = {/* Deprecated in favour of lowercase form */ - {"STK8312" }, - {"stk8312" }, + { .name ="STK8312" }, + { .name ="stk8312" }, { } };MODULE_DEVICE_TABLE (i2c, stk8312_i2c_id);drivers/iio/accel/stk8ba50.c +1
-1@@ -519,7 +519,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(stk8ba50_pm_ops, stk8ba50_suspend, stk8ba50_resume);static const struct i2c_device_id stk8ba50_i2c_id[] = { - {"stk8ba50" }, + { .name ="stk8ba50" }, { } };MODULE_DEVICE_TABLE (i2c, stk8ba50_i2c_id);drivers/iio/adc/ad7291.c +1
-1@@ -536,7 +536,7 @@ static int ad7291_probe(struct i2c_client *client) }static const struct i2c_device_id ad7291_id[] = { - {"ad7291" }, + { .name ="ad7291" }, { } };drivers/iio/adc/ad799x.c +8
-8@@ -946,14 +946,14 @@ static int ad799x_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(ad799x_pm_ops, ad799x_suspend, ad799x_resume);static const struct i2c_device_id ad799x_id[] = { - {"ad7991" , ad7991 }, - {"ad7995" , ad7995 }, - {"ad7999" , ad7999 }, - {"ad7992" , ad7992 }, - {"ad7993" , ad7993 }, - {"ad7994" , ad7994 }, - {"ad7997" , ad7997 }, - {"ad7998" , ad7998 }, + { .name ="ad7991" , .driver_data = ad7991 }, + { .name ="ad7995" , .driver_data = ad7995 }, + { .name ="ad7999" , .driver_data = ad7999 }, + { .name ="ad7992" , .driver_data = ad7992 }, + { .name ="ad7993" , .driver_data = ad7993 }, + { .name ="ad7994" , .driver_data = ad7994 }, + { .name ="ad7997" , .driver_data = ad7997 }, + { .name ="ad7998" , .driver_data = ad7998 }, { } };drivers/iio/adc/gehc-pmc-adc.c +1
-1@@ -207,7 +207,7 @@ static const struct of_device_id pmc_adc_of_match[] = {MODULE_DEVICE_TABLE (of, pmc_adc_of_match);static const struct i2c_device_id pmc_adc_id_table[] = { - {"pmc-adc" }, + { .name ="pmc-adc" }, { } };MODULE_DEVICE_TABLE (i2c, pmc_adc_id_table);drivers/iio/adc/ina2xx-adc.c +6
-6@@ -1078,12 +1078,12 @@ static void ina2xx_remove(struct i2c_client *client) }static const struct i2c_device_id ina2xx_id[] = { - {"ina219" , ina219 }, - {"ina220" , ina219 }, - {"ina226" , ina226 }, - {"ina230" , ina226 }, - {"ina231" , ina226 }, - {"ina236" , ina236 }, + { .name ="ina219" , .driver_data = ina219 }, + { .name ="ina220" , .driver_data = ina219 }, + { .name ="ina226" , .driver_data = ina226 }, + { .name ="ina230" , .driver_data = ina226 }, + { .name ="ina231" , .driver_data = ina226 }, + { .name ="ina236" , .driver_data = ina236 }, { } };MODULE_DEVICE_TABLE (i2c, ina2xx_id);drivers/iio/adc/ltc2309.c +2
-2@@ -233,8 +233,8 @@ static const struct of_device_id ltc2309_of_match[] = {MODULE_DEVICE_TABLE (of, ltc2309_of_match);static const struct i2c_device_id ltc2309_id[] = { - {"ltc2305" , (kernel_ulong_t)<c2305_chip_info }, - {"ltc2309" , (kernel_ulong_t)<c2309_chip_info }, + { .name ="ltc2305" , .driver_data = (kernel_ulong_t)<c2305_chip_info }, + { .name ="ltc2309" , .driver_data = (kernel_ulong_t)<c2309_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, ltc2309_id);drivers/iio/adc/ltc2471.c +2
-2@@ -136,8 +136,8 @@ static int ltc2471_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id ltc2471_i2c_id[] = { - {"ltc2471" , ltc2471 }, - {"ltc2473" , ltc2473 }, + { .name ="ltc2471" , .driver_data = ltc2471 }, + { .name ="ltc2473" , .driver_data = ltc2473 }, { } };MODULE_DEVICE_TABLE (i2c, ltc2471_i2c_id);drivers/iio/adc/ltc2485.c +1
-1@@ -124,7 +124,7 @@ static int ltc2485_probe(struct i2c_client *client) }static const struct i2c_device_id ltc2485_id[] = { - {"ltc2485" }, + { .name ="ltc2485" }, { } };MODULE_DEVICE_TABLE (i2c, ltc2485_id);drivers/iio/adc/ltc2497.c +2
-2@@ -142,8 +142,8 @@ static const struct ltc2497_chip_info ltc2497_info[] = { };static const struct i2c_device_id ltc2497_id[] = { - {"ltc2497" , (kernel_ulong_t)<c2497_info[TYPE_LTC2497 ] }, - {"ltc2499" , (kernel_ulong_t)<c2497_info[TYPE_LTC2499 ] }, + { .name ="ltc2497" , .driver_data = (kernel_ulong_t)<c2497_info[TYPE_LTC2497 ] }, + { .name ="ltc2499" , .driver_data = (kernel_ulong_t)<c2497_info[TYPE_LTC2499 ] }, { } };MODULE_DEVICE_TABLE (i2c, ltc2497_id);drivers/iio/adc/max34408.c +2
-2@@ -256,8 +256,8 @@ static const struct of_device_id max34408_of_match[] = {MODULE_DEVICE_TABLE (of, max34408_of_match);static const struct i2c_device_id max34408_id[] = { - {"max34408" , (kernel_ulong_t)&max34408_model_data }, - {"max34409" , (kernel_ulong_t)&max34409_model_data }, + { .name ="max34408" , .driver_data = (kernel_ulong_t)&max34408_model_data }, + { .name ="max34409" , .driver_data = (kernel_ulong_t)&max34409_model_data }, { } };MODULE_DEVICE_TABLE (i2c, max34408_id);drivers/iio/adc/mcp3422.c +8
-8@@ -394,14 +394,14 @@ static int mcp3422_probe(struct i2c_client *client) }static const struct i2c_device_id mcp3422_id[] = { - {"mcp3421" ,1 }, - {"mcp3422" ,2 }, - {"mcp3423" ,3 }, - {"mcp3424" ,4 }, - {"mcp3425" ,5 }, - {"mcp3426" ,6 }, - {"mcp3427" ,7 }, - {"mcp3428" ,8 }, + { .name ="mcp3421" , .driver_data =1 }, + { .name ="mcp3422" , .driver_data =2 }, + { .name ="mcp3423" , .driver_data =3 }, + { .name ="mcp3424" , .driver_data =4 }, + { .name ="mcp3425" , .driver_data =5 }, + { .name ="mcp3426" , .driver_data =6 }, + { .name ="mcp3427" , .driver_data =7 }, + { .name ="mcp3428" , .driver_data =8 }, { } };MODULE_DEVICE_TABLE (i2c, mcp3422_id);drivers/iio/adc/nau7802.c +1
-1@@ -531,7 +531,7 @@ static int nau7802_probe(struct i2c_client *client) }static const struct i2c_device_id nau7802_i2c_id[] = { - {"nau7802" }, + { .name ="nau7802" }, { } };MODULE_DEVICE_TABLE (i2c, nau7802_i2c_id);drivers/iio/adc/rohm-bd79124.c +1
-1@@ -1104,7 +1104,7 @@ static const struct of_device_id bd79124_of_match[] = {MODULE_DEVICE_TABLE (of, bd79124_of_match);static const struct i2c_device_id bd79124_id[] = { - {"bd79124" }, + { .name ="bd79124" }, { } };MODULE_DEVICE_TABLE (i2c, bd79124_id);drivers/iio/adc/ti-adc081c.c +3
-3@@ -199,9 +199,9 @@ static int adc081c_probe(struct i2c_client *client) }static const struct i2c_device_id adc081c_id[] = { - {"adc081c" , (kernel_ulong_t)&adc081c_model }, - {"adc101c" , (kernel_ulong_t)&adc101c_model }, - {"adc121c" , (kernel_ulong_t)&adc121c_model }, + { .name ="adc081c" , .driver_data = (kernel_ulong_t)&adc081c_model }, + { .name ="adc101c" , .driver_data = (kernel_ulong_t)&adc101c_model }, + { .name ="adc121c" , .driver_data = (kernel_ulong_t)&adc121c_model }, { } };MODULE_DEVICE_TABLE (i2c, adc081c_id);drivers/iio/adc/ti-ads1015.c +3
-3@@ -1128,9 +1128,9 @@ static const struct ads1015_chip_data tla2024_data = { };static const struct i2c_device_id ads1015_id[] = { - {"ads1015" , (kernel_ulong_t)&ads1015_data }, - {"ads1115" , (kernel_ulong_t)&ads1115_data }, - {"tla2024" , (kernel_ulong_t)&tla2024_data }, + { .name ="ads1015" , .driver_data = (kernel_ulong_t)&ads1015_data }, + { .name ="ads1115" , .driver_data = (kernel_ulong_t)&ads1115_data }, + { .name ="tla2024" , .driver_data = (kernel_ulong_t)&tla2024_data }, { } };MODULE_DEVICE_TABLE (i2c, ads1015_id);drivers/iio/adc/ti-ads1100.c +2
-2@@ -400,8 +400,8 @@ static DEFINE_RUNTIME_DEV_PM_OPS(ads1100_pm_ops, NULL);static const struct i2c_device_id ads1100_id[] = { - {"ads1100" }, - {"ads1000" }, + { .name ="ads1100" }, + { .name ="ads1000" }, { } };drivers/iio/adc/ti-ads1119.c +1
-1@@ -804,7 +804,7 @@ static const struct of_device_id __maybe_unused ads1119_of_match[] = {MODULE_DEVICE_TABLE (of, ads1119_of_match);static const struct i2c_device_id ads1119_id[] = { - {"ads1119" }, + { .name ="ads1119" }, { } };MODULE_DEVICE_TABLE (i2c, ads1119_id);drivers/iio/adc/ti-ads7138.c +2
-2@@ -727,8 +727,8 @@ static const struct of_device_id ads7138_of_match[] = {MODULE_DEVICE_TABLE (of, ads7138_of_match);static const struct i2c_device_id ads7138_device_ids[] = { - {"ads7128" , (kernel_ulong_t)&ads7128_data }, - {"ads7138" , (kernel_ulong_t)&ads7138_data }, + { .name ="ads7128" , .driver_data = (kernel_ulong_t)&ads7128_data }, + { .name ="ads7138" , .driver_data = (kernel_ulong_t)&ads7138_data }, { } };MODULE_DEVICE_TABLE (i2c, ads7138_device_ids);drivers/iio/adc/ti-ads7924.c +1
-1@@ -441,7 +441,7 @@ static int ads7924_probe(struct i2c_client *client) }static const struct i2c_device_id ads7924_id[] = { - {"ads7924" }, + { .name ="ads7924" }, { } };MODULE_DEVICE_TABLE (i2c, ads7924_id);drivers/iio/cdc/ad7150.c +3
-3@@ -628,9 +628,9 @@ static int ad7150_probe(struct i2c_client *client) }static const struct i2c_device_id ad7150_id[] = { - {"ad7150" ,AD7150 }, - {"ad7151" ,AD7151 }, - {"ad7156" ,AD7150 }, + { .name ="ad7150" , .driver_data =AD7150 }, + { .name ="ad7151" , .driver_data =AD7151 }, + { .name ="ad7156" , .driver_data =AD7150 }, { } };drivers/iio/cdc/ad7746.c +3
-3@@ -789,9 +789,9 @@ static int ad7746_probe(struct i2c_client *client) }static const struct i2c_device_id ad7746_id[] = { - {"ad7745" ,7745 }, - {"ad7746" ,7746 }, - {"ad7747" ,7747 }, + { .name ="ad7745" , .driver_data =7745 }, + { .name ="ad7746" , .driver_data =7746 }, + { .name ="ad7747" , .driver_data =7747 }, { } };MODULE_DEVICE_TABLE (i2c, ad7746_id);drivers/iio/chemical/ags02ma.c +1
-1@@ -139,7 +139,7 @@ static int ags02ma_probe(struct i2c_client *client) }static const struct i2c_device_id ags02ma_id_table[] = { - {"ags02ma" }, + { .name ="ags02ma" }, { } };MODULE_DEVICE_TABLE (i2c, ags02ma_id_table);drivers/iio/chemical/ams-iaq-core.c +1
-1@@ -163,7 +163,7 @@ static int ams_iaqcore_probe(struct i2c_client *client) }static const struct i2c_device_id ams_iaqcore_id[] = { - {"ams-iaq-core" }, + { .name ="ams-iaq-core" }, { } };MODULE_DEVICE_TABLE (i2c, ams_iaqcore_id);drivers/iio/chemical/atlas-ezo-sensor.c +3
-3@@ -186,9 +186,9 @@ static const struct iio_info atlas_info = { };static const struct i2c_device_id atlas_ezo_id[] = { - {"atlas-co2-ezo" , (kernel_ulong_t)&atlas_ezo_devices[ATLAS_CO2_EZO ] }, - {"atlas-o2-ezo" , (kernel_ulong_t)&atlas_ezo_devices[ATLAS_O2_EZO ] }, - {"atlas-hum-ezo" , (kernel_ulong_t)&atlas_ezo_devices[ATLAS_HUM_EZO ] }, + { .name ="atlas-co2-ezo" , .driver_data = (kernel_ulong_t)&atlas_ezo_devices[ATLAS_CO2_EZO ] }, + { .name ="atlas-o2-ezo" , .driver_data = (kernel_ulong_t)&atlas_ezo_devices[ATLAS_O2_EZO ] }, + { .name ="atlas-hum-ezo" , .driver_data = (kernel_ulong_t)&atlas_ezo_devices[ATLAS_HUM_EZO ] }, { } };MODULE_DEVICE_TABLE (i2c, atlas_ezo_id);drivers/iio/chemical/atlas-sensor.c +5
-5@@ -586,11 +586,11 @@ static const struct iio_info atlas_info = { };static const struct i2c_device_id atlas_id[] = { - {"atlas-ph-sm" , (kernel_ulong_t)&atlas_devices[ATLAS_PH_SM ] }, - {"atlas-ec-sm" , (kernel_ulong_t)&atlas_devices[ATLAS_EC_SM ] }, - {"atlas-orp-sm" , (kernel_ulong_t)&atlas_devices[ATLAS_ORP_SM ] }, - {"atlas-do-sm" , (kernel_ulong_t)&atlas_devices[ATLAS_DO_SM ] }, - {"atlas-rtd-sm" , (kernel_ulong_t)&atlas_devices[ATLAS_RTD_SM ] }, + { .name ="atlas-ph-sm" , .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_PH_SM ] }, + { .name ="atlas-ec-sm" , .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_EC_SM ] }, + { .name ="atlas-orp-sm" , .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_ORP_SM ] }, + { .name ="atlas-do-sm" , .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_DO_SM ] }, + { .name ="atlas-rtd-sm" , .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_RTD_SM ] }, { } };MODULE_DEVICE_TABLE (i2c, atlas_id);drivers/iio/chemical/bme680_i2c.c +1
-1@@ -36,7 +36,7 @@ static int bme680_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id bme680_i2c_id[] = { - {"bme680" }, + { .name ="bme680" }, { } };MODULE_DEVICE_TABLE (i2c, bme680_i2c_id);drivers/iio/chemical/ccs811.c +2
-2@@ -552,8 +552,8 @@ static void ccs811_remove(struct i2c_client *client) }static const struct i2c_device_id ccs811_id[] = { - {"ccs811" }, - { } + { .name ="ccs811" }, + { } };MODULE_DEVICE_TABLE (i2c, ccs811_id);drivers/iio/chemical/ens160_i2c.c +1
-1@@ -34,7 +34,7 @@ static int ens160_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id ens160_i2c_id[] = { - {"ens160" }, + { .name ="ens160" }, { } };MODULE_DEVICE_TABLE (i2c, ens160_i2c_id);drivers/iio/chemical/sgp30.c +2
-2@@ -562,8 +562,8 @@ static void sgp_remove(struct i2c_client *client) }static const struct i2c_device_id sgp_id[] = { - {"sgp30" , (kernel_ulong_t)&sgp_devices[SGP30 ] }, - {"sgpc3" , (kernel_ulong_t)&sgp_devices[SGPC3 ] }, + { .name ="sgp30" , .driver_data = (kernel_ulong_t)&sgp_devices[SGP30 ] }, + { .name ="sgpc3" , .driver_data = (kernel_ulong_t)&sgp_devices[SGPC3 ] }, { } };drivers/iio/chemical/sgp40.c +1
-1@@ -355,7 +355,7 @@ static int sgp40_probe(struct i2c_client *client) }static const struct i2c_device_id sgp40_id[] = { - {"sgp40" }, + { .name ="sgp40" }, { } };drivers/iio/chemical/sps30_i2c.c +1
-1@@ -232,7 +232,7 @@ static int sps30_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id sps30_i2c_id[] = { - {"sps30" }, + { .name ="sps30" }, { } };MODULE_DEVICE_TABLE (i2c, sps30_i2c_id);drivers/iio/chemical/vz89x.c +2
-2@@ -385,8 +385,8 @@ static int vz89x_probe(struct i2c_client *client) }static const struct i2c_device_id vz89x_id[] = { - {"vz89x" , (kernel_ulong_t)&vz89x_chips[VZ89X ] }, - {"vz89te" , (kernel_ulong_t)&vz89x_chips[VZ89TE ] }, + { .name ="vz89x" , .driver_data = (kernel_ulong_t)&vz89x_chips[VZ89X ] }, + { .name ="vz89te" , .driver_data = (kernel_ulong_t)&vz89x_chips[VZ89TE ] }, { } };MODULE_DEVICE_TABLE (i2c, vz89x_id);drivers/iio/dac/ad5064.c +47
-47@@ -1001,53 +1001,53 @@ static int ad5064_i2c_probe(struct i2c_client *i2c) }static const struct i2c_device_id ad5064_i2c_ids[] = { - {"ad5625" ,ID_AD5625 }, - {"ad5625r-1v25" ,ID_AD5625R_1V25 }, - {"ad5625r-2v5" ,ID_AD5625R_2V5 }, - {"ad5627" ,ID_AD5627 }, - {"ad5627r-1v25" ,ID_AD5627R_1V25 }, - {"ad5627r-2v5" ,ID_AD5627R_2V5 }, - {"ad5629-1" ,ID_AD5629_1 }, - {"ad5629-2" ,ID_AD5629_2 }, - {"ad5629-3" ,ID_AD5629_2 },/* similar enough to ad5629-2 */ - {"ad5645r-1v25" ,ID_AD5645R_1V25 }, - {"ad5645r-2v5" ,ID_AD5645R_2V5 }, - {"ad5665" ,ID_AD5665 }, - {"ad5665r-1v25" ,ID_AD5665R_1V25 }, - {"ad5665r-2v5" ,ID_AD5665R_2V5 }, - {"ad5667" ,ID_AD5667 }, - {"ad5667r-1v25" ,ID_AD5667R_1V25 }, - {"ad5667r-2v5" ,ID_AD5667R_2V5 }, - {"ad5669-1" ,ID_AD5669_1 }, - {"ad5669-2" ,ID_AD5669_2 }, - {"ad5669-3" ,ID_AD5669_2 },/* similar enough to ad5669-2 */ - {"ltc2606" ,ID_LTC2606 }, - {"ltc2607" ,ID_LTC2607 }, - {"ltc2609" ,ID_LTC2609 }, - {"ltc2616" ,ID_LTC2616 }, - {"ltc2617" ,ID_LTC2617 }, - {"ltc2619" ,ID_LTC2619 }, - {"ltc2626" ,ID_LTC2626 }, - {"ltc2627" ,ID_LTC2627 }, - {"ltc2629" ,ID_LTC2629 }, - {"ltc2631-l12" ,ID_LTC2631_L12 }, - {"ltc2631-h12" ,ID_LTC2631_H12 }, - {"ltc2631-l10" ,ID_LTC2631_L10 }, - {"ltc2631-h10" ,ID_LTC2631_H10 }, - {"ltc2631-l8" ,ID_LTC2631_L8 }, - {"ltc2631-h8" ,ID_LTC2631_H8 }, - {"ltc2633-l12" ,ID_LTC2633_L12 }, - {"ltc2633-h12" ,ID_LTC2633_H12 }, - {"ltc2633-l10" ,ID_LTC2633_L10 }, - {"ltc2633-h10" ,ID_LTC2633_H10 }, - {"ltc2633-l8" ,ID_LTC2633_L8 }, - {"ltc2633-h8" ,ID_LTC2633_H8 }, - {"ltc2635-l12" ,ID_LTC2635_L12 }, - {"ltc2635-h12" ,ID_LTC2635_H12 }, - {"ltc2635-l10" ,ID_LTC2635_L10 }, - {"ltc2635-h10" ,ID_LTC2635_H10 }, - {"ltc2635-l8" ,ID_LTC2635_L8 }, - {"ltc2635-h8" ,ID_LTC2635_H8 }, + { .name ="ad5625" , .driver_data =ID_AD5625 }, + { .name ="ad5625r-1v25" , .driver_data =ID_AD5625R_1V25 }, + { .name ="ad5625r-2v5" , .driver_data =ID_AD5625R_2V5 }, + { .name ="ad5627" , .driver_data =ID_AD5627 }, + { .name ="ad5627r-1v25" , .driver_data =ID_AD5627R_1V25 }, + { .name ="ad5627r-2v5" , .driver_data =ID_AD5627R_2V5 }, + { .name ="ad5629-1" , .driver_data =ID_AD5629_1 }, + { .name ="ad5629-2" , .driver_data =ID_AD5629_2 }, + { .name ="ad5629-3" , .driver_data =ID_AD5629_2 },/* similar enough to ad5629-2 */ + { .name ="ad5645r-1v25" , .driver_data =ID_AD5645R_1V25 }, + { .name ="ad5645r-2v5" , .driver_data =ID_AD5645R_2V5 }, + { .name ="ad5665" , .driver_data =ID_AD5665 }, + { .name ="ad5665r-1v25" , .driver_data =ID_AD5665R_1V25 }, + { .name ="ad5665r-2v5" , .driver_data =ID_AD5665R_2V5 }, + { .name ="ad5667" , .driver_data =ID_AD5667 }, + { .name ="ad5667r-1v25" , .driver_data =ID_AD5667R_1V25 }, + { .name ="ad5667r-2v5" , .driver_data =ID_AD5667R_2V5 }, + { .name ="ad5669-1" , .driver_data =ID_AD5669_1 }, + { .name ="ad5669-2" , .driver_data =ID_AD5669_2 }, + { .name ="ad5669-3" , .driver_data =ID_AD5669_2 },/* similar enough to ad5669-2 */ + { .name ="ltc2606" , .driver_data =ID_LTC2606 }, + { .name ="ltc2607" , .driver_data =ID_LTC2607 }, + { .name ="ltc2609" , .driver_data =ID_LTC2609 }, + { .name ="ltc2616" , .driver_data =ID_LTC2616 }, + { .name ="ltc2617" , .driver_data =ID_LTC2617 }, + { .name ="ltc2619" , .driver_data =ID_LTC2619 }, + { .name ="ltc2626" , .driver_data =ID_LTC2626 }, + { .name ="ltc2627" , .driver_data =ID_LTC2627 }, + { .name ="ltc2629" , .driver_data =ID_LTC2629 }, + { .name ="ltc2631-l12" , .driver_data =ID_LTC2631_L12 }, + { .name ="ltc2631-h12" , .driver_data =ID_LTC2631_H12 }, + { .name ="ltc2631-l10" , .driver_data =ID_LTC2631_L10 }, + { .name ="ltc2631-h10" , .driver_data =ID_LTC2631_H10 }, + { .name ="ltc2631-l8" , .driver_data =ID_LTC2631_L8 }, + { .name ="ltc2631-h8" , .driver_data =ID_LTC2631_H8 }, + { .name ="ltc2633-l12" , .driver_data =ID_LTC2633_L12 }, + { .name ="ltc2633-h12" , .driver_data =ID_LTC2633_H12 }, + { .name ="ltc2633-l10" , .driver_data =ID_LTC2633_L10 }, + { .name ="ltc2633-h10" , .driver_data =ID_LTC2633_H10 }, + { .name ="ltc2633-l8" , .driver_data =ID_LTC2633_L8 }, + { .name ="ltc2633-h8" , .driver_data =ID_LTC2633_H8 }, + { .name ="ltc2635-l12" , .driver_data =ID_LTC2635_L12 }, + { .name ="ltc2635-h12" , .driver_data =ID_LTC2635_H12 }, + { .name ="ltc2635-l10" , .driver_data =ID_LTC2635_L10 }, + { .name ="ltc2635-h10" , .driver_data =ID_LTC2635_H10 }, + { .name ="ltc2635-l8" , .driver_data =ID_LTC2635_L8 }, + { .name ="ltc2635-h8" , .driver_data =ID_LTC2635_H8 }, { } };MODULE_DEVICE_TABLE (i2c, ad5064_i2c_ids);drivers/iio/dac/ad5380.c +16
-16@@ -513,22 +513,22 @@ static int ad5380_i2c_probe(struct i2c_client *i2c) }static const struct i2c_device_id ad5380_i2c_ids[] = { - {"ad5380-3" ,ID_AD5380_3 }, - {"ad5380-5" ,ID_AD5380_5 }, - {"ad5381-3" ,ID_AD5381_3 }, - {"ad5381-5" ,ID_AD5381_5 }, - {"ad5382-3" ,ID_AD5382_3 }, - {"ad5382-5" ,ID_AD5382_5 }, - {"ad5383-3" ,ID_AD5383_3 }, - {"ad5383-5" ,ID_AD5383_5 }, - {"ad5384-3" ,ID_AD5380_3 }, - {"ad5384-5" ,ID_AD5380_5 }, - {"ad5390-3" ,ID_AD5390_3 }, - {"ad5390-5" ,ID_AD5390_5 }, - {"ad5391-3" ,ID_AD5391_3 }, - {"ad5391-5" ,ID_AD5391_5 }, - {"ad5392-3" ,ID_AD5392_3 }, - {"ad5392-5" ,ID_AD5392_5 }, + { .name ="ad5380-3" , .driver_data =ID_AD5380_3 }, + { .name ="ad5380-5" , .driver_data =ID_AD5380_5 }, + { .name ="ad5381-3" , .driver_data =ID_AD5381_3 }, + { .name ="ad5381-5" , .driver_data =ID_AD5381_5 }, + { .name ="ad5382-3" , .driver_data =ID_AD5382_3 }, + { .name ="ad5382-5" , .driver_data =ID_AD5382_5 }, + { .name ="ad5383-3" , .driver_data =ID_AD5383_3 }, + { .name ="ad5383-5" , .driver_data =ID_AD5383_5 }, + { .name ="ad5384-3" , .driver_data =ID_AD5380_3 }, + { .name ="ad5384-5" , .driver_data =ID_AD5380_5 }, + { .name ="ad5390-3" , .driver_data =ID_AD5390_3 }, + { .name ="ad5390-5" , .driver_data =ID_AD5390_5 }, + { .name ="ad5391-3" , .driver_data =ID_AD5391_3 }, + { .name ="ad5391-5" , .driver_data =ID_AD5391_5 }, + { .name ="ad5392-3" , .driver_data =ID_AD5392_3 }, + { .name ="ad5392-5" , .driver_data =ID_AD5392_5 }, { } };MODULE_DEVICE_TABLE (i2c, ad5380_i2c_ids);drivers/iio/dac/ad5446-i2c.c +6
-6@@ -65,12 +65,12 @@ static const struct ad5446_chip_info ad5622_chip_info = { };static const struct i2c_device_id ad5446_i2c_ids[] = { - {"ad5301" , (kernel_ulong_t)&ad5602_chip_info}, - {"ad5311" , (kernel_ulong_t)&ad5612_chip_info}, - {"ad5321" , (kernel_ulong_t)&ad5622_chip_info}, - {"ad5602" , (kernel_ulong_t)&ad5602_chip_info}, - {"ad5612" , (kernel_ulong_t)&ad5612_chip_info}, - {"ad5622" , (kernel_ulong_t)&ad5622_chip_info}, + { .name ="ad5301" , .driver_data = (kernel_ulong_t)&ad5602_chip_info }, + { .name ="ad5311" , .driver_data = (kernel_ulong_t)&ad5612_chip_info }, + { .name ="ad5321" , .driver_data = (kernel_ulong_t)&ad5622_chip_info }, + { .name ="ad5602" , .driver_data = (kernel_ulong_t)&ad5602_chip_info }, + { .name ="ad5612" , .driver_data = (kernel_ulong_t)&ad5612_chip_info }, + { .name ="ad5622" , .driver_data = (kernel_ulong_t)&ad5622_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, ad5446_i2c_ids);drivers/iio/dac/ad5696-i2c.c +16
-16@@ -66,22 +66,22 @@ static int ad5686_i2c_probe(struct i2c_client *i2c) }static const struct i2c_device_id ad5686_i2c_id[] = { - {"ad5311r" ,ID_AD5311R }, - {"ad5337r" ,ID_AD5337R }, - {"ad5338r" ,ID_AD5338R }, - {"ad5671r" ,ID_AD5671R }, - {"ad5673r" ,ID_AD5673R }, - {"ad5675r" ,ID_AD5675R }, - {"ad5677r" ,ID_AD5677R }, - {"ad5691r" ,ID_AD5691R }, - {"ad5692r" ,ID_AD5692R }, - {"ad5693" ,ID_AD5693 }, - {"ad5693r" ,ID_AD5693R }, - {"ad5694" ,ID_AD5694 }, - {"ad5694r" ,ID_AD5694R }, - {"ad5695r" ,ID_AD5695R }, - {"ad5696" ,ID_AD5696 }, - {"ad5696r" ,ID_AD5696R }, + { .name ="ad5311r" , .driver_data =ID_AD5311R }, + { .name ="ad5337r" , .driver_data =ID_AD5337R }, + { .name ="ad5338r" , .driver_data =ID_AD5338R }, + { .name ="ad5671r" , .driver_data =ID_AD5671R }, + { .name ="ad5673r" , .driver_data =ID_AD5673R }, + { .name ="ad5675r" , .driver_data =ID_AD5675R }, + { .name ="ad5677r" , .driver_data =ID_AD5677R }, + { .name ="ad5691r" , .driver_data =ID_AD5691R }, + { .name ="ad5692r" , .driver_data =ID_AD5692R }, + { .name ="ad5693" , .driver_data =ID_AD5693 }, + { .name ="ad5693r" , .driver_data =ID_AD5693R }, + { .name ="ad5694" , .driver_data =ID_AD5694 }, + { .name ="ad5694r" , .driver_data =ID_AD5694R }, + { .name ="ad5695r" , .driver_data =ID_AD5695R }, + { .name ="ad5696" , .driver_data =ID_AD5696 }, + { .name ="ad5696r" , .driver_data =ID_AD5696R }, { } };MODULE_DEVICE_TABLE (i2c, ad5686_i2c_id);drivers/iio/dac/ds4424.c +4
-4@@ -401,10 +401,10 @@ static void ds4424_remove(struct i2c_client *client) }static const struct i2c_device_id ds4424_id[] = { - {"ds4402" , (kernel_ulong_t)&ds4402_info }, - {"ds4404" , (kernel_ulong_t)&ds4404_info }, - {"ds4422" , (kernel_ulong_t)&ds4422_info }, - {"ds4424" , (kernel_ulong_t)&ds4424_info }, + { .name ="ds4402" , .driver_data = (kernel_ulong_t)&ds4402_info }, + { .name ="ds4404" , .driver_data = (kernel_ulong_t)&ds4404_info }, + { .name ="ds4422" , .driver_data = (kernel_ulong_t)&ds4422_info }, + { .name ="ds4424" , .driver_data = (kernel_ulong_t)&ds4424_info }, { } };drivers/iio/dac/m62332.c +1
-1@@ -228,7 +228,7 @@ static void m62332_remove(struct i2c_client *client) }static const struct i2c_device_id m62332_id[] = { - {"m62332" , }, + { .name ="m62332" }, { } };MODULE_DEVICE_TABLE (i2c, m62332_id);drivers/iio/dac/max517.c +5
-5@@ -187,11 +187,11 @@ static int max517_probe(struct i2c_client *client) }static const struct i2c_device_id max517_id[] = { - {"max517" ,ID_MAX517 }, - {"max518" ,ID_MAX518 }, - {"max519" ,ID_MAX519 }, - {"max520" ,ID_MAX520 }, - {"max521" ,ID_MAX521 }, + { .name ="max517" , .driver_data =ID_MAX517 }, + { .name ="max518" , .driver_data =ID_MAX518 }, + { .name ="max519" , .driver_data =ID_MAX519 }, + { .name ="max520" , .driver_data =ID_MAX520 }, + { .name ="max521" , .driver_data =ID_MAX521 }, { } };MODULE_DEVICE_TABLE (i2c, max517_id);drivers/iio/dac/mcp4725.c +2
-2@@ -523,8 +523,8 @@ static const struct mcp4725_chip_info mcp4726 = { };static const struct i2c_device_id mcp4725_id[] = { - {"mcp4725" , (kernel_ulong_t)&mcp4725 }, - {"mcp4726" , (kernel_ulong_t)&mcp4726 }, + { .name ="mcp4725" , .driver_data = (kernel_ulong_t)&mcp4725 }, + { .name ="mcp4726" , .driver_data = (kernel_ulong_t)&mcp4726 }, { } };MODULE_DEVICE_TABLE (i2c, mcp4725_id);drivers/iio/dac/mcp4728.c +1
-1@@ -572,7 +572,7 @@ static int mcp4728_probe(struct i2c_client *client) }static const struct i2c_device_id mcp4728_id[] = { - {"mcp4728" }, + { .name ="mcp4728" }, { } };MODULE_DEVICE_TABLE (i2c, mcp4728_id);drivers/iio/dac/mcp47feb02.c +24
-24@@ -1170,30 +1170,30 @@ static int mcp47feb02_probe(struct i2c_client *client) }static const struct i2c_device_id mcp47feb02_id[] = { - {"mcp47feb01" , (kernel_ulong_t)&mcp47feb01_chip_features }, - {"mcp47feb02" , (kernel_ulong_t)&mcp47feb02_chip_features }, - {"mcp47feb04" , (kernel_ulong_t)&mcp47feb04_chip_features }, - {"mcp47feb08" , (kernel_ulong_t)&mcp47feb08_chip_features }, - {"mcp47feb11" , (kernel_ulong_t)&mcp47feb11_chip_features }, - {"mcp47feb12" , (kernel_ulong_t)&mcp47feb12_chip_features }, - {"mcp47feb14" , (kernel_ulong_t)&mcp47feb14_chip_features }, - {"mcp47feb18" , (kernel_ulong_t)&mcp47feb18_chip_features }, - {"mcp47feb21" , (kernel_ulong_t)&mcp47feb21_chip_features }, - {"mcp47feb22" , (kernel_ulong_t)&mcp47feb22_chip_features }, - {"mcp47feb24" , (kernel_ulong_t)&mcp47feb24_chip_features }, - {"mcp47feb28" , (kernel_ulong_t)&mcp47feb28_chip_features }, - {"mcp47fvb01" , (kernel_ulong_t)&mcp47fvb01_chip_features }, - {"mcp47fvb02" , (kernel_ulong_t)&mcp47fvb02_chip_features }, - {"mcp47fvb04" , (kernel_ulong_t)&mcp47fvb04_chip_features }, - {"mcp47fvb08" , (kernel_ulong_t)&mcp47fvb08_chip_features }, - {"mcp47fvb11" , (kernel_ulong_t)&mcp47fvb11_chip_features }, - {"mcp47fvb12" , (kernel_ulong_t)&mcp47fvb12_chip_features }, - {"mcp47fvb14" , (kernel_ulong_t)&mcp47fvb14_chip_features }, - {"mcp47fvb18" , (kernel_ulong_t)&mcp47fvb18_chip_features }, - {"mcp47fvb21" , (kernel_ulong_t)&mcp47fvb21_chip_features }, - {"mcp47fvb22" , (kernel_ulong_t)&mcp47fvb22_chip_features }, - {"mcp47fvb24" , (kernel_ulong_t)&mcp47fvb24_chip_features }, - {"mcp47fvb28" , (kernel_ulong_t)&mcp47fvb28_chip_features }, + { .name ="mcp47feb01" , .driver_data = (kernel_ulong_t)&mcp47feb01_chip_features }, + { .name ="mcp47feb02" , .driver_data = (kernel_ulong_t)&mcp47feb02_chip_features }, + { .name ="mcp47feb04" , .driver_data = (kernel_ulong_t)&mcp47feb04_chip_features }, + { .name ="mcp47feb08" , .driver_data = (kernel_ulong_t)&mcp47feb08_chip_features }, + { .name ="mcp47feb11" , .driver_data = (kernel_ulong_t)&mcp47feb11_chip_features }, + { .name ="mcp47feb12" , .driver_data = (kernel_ulong_t)&mcp47feb12_chip_features }, + { .name ="mcp47feb14" , .driver_data = (kernel_ulong_t)&mcp47feb14_chip_features }, + { .name ="mcp47feb18" , .driver_data = (kernel_ulong_t)&mcp47feb18_chip_features }, + { .name ="mcp47feb21" , .driver_data = (kernel_ulong_t)&mcp47feb21_chip_features }, + { .name ="mcp47feb22" , .driver_data = (kernel_ulong_t)&mcp47feb22_chip_features }, + { .name ="mcp47feb24" , .driver_data = (kernel_ulong_t)&mcp47feb24_chip_features }, + { .name ="mcp47feb28" , .driver_data = (kernel_ulong_t)&mcp47feb28_chip_features }, + { .name ="mcp47fvb01" , .driver_data = (kernel_ulong_t)&mcp47fvb01_chip_features }, + { .name ="mcp47fvb02" , .driver_data = (kernel_ulong_t)&mcp47fvb02_chip_features }, + { .name ="mcp47fvb04" , .driver_data = (kernel_ulong_t)&mcp47fvb04_chip_features }, + { .name ="mcp47fvb08" , .driver_data = (kernel_ulong_t)&mcp47fvb08_chip_features }, + { .name ="mcp47fvb11" , .driver_data = (kernel_ulong_t)&mcp47fvb11_chip_features }, + { .name ="mcp47fvb12" , .driver_data = (kernel_ulong_t)&mcp47fvb12_chip_features }, + { .name ="mcp47fvb14" , .driver_data = (kernel_ulong_t)&mcp47fvb14_chip_features }, + { .name ="mcp47fvb18" , .driver_data = (kernel_ulong_t)&mcp47fvb18_chip_features }, + { .name ="mcp47fvb21" , .driver_data = (kernel_ulong_t)&mcp47fvb21_chip_features }, + { .name ="mcp47fvb22" , .driver_data = (kernel_ulong_t)&mcp47fvb22_chip_features }, + { .name ="mcp47fvb24" , .driver_data = (kernel_ulong_t)&mcp47fvb24_chip_features }, + { .name ="mcp47fvb28" , .driver_data = (kernel_ulong_t)&mcp47fvb28_chip_features }, { } };MODULE_DEVICE_TABLE (i2c, mcp47feb02_id);drivers/iio/dac/ti-dac5571.c +11
-11@@ -402,17 +402,17 @@ static const struct of_device_id dac5571_of_id[] = {MODULE_DEVICE_TABLE (of, dac5571_of_id);static const struct i2c_device_id dac5571_id[] = { - {"dac081c081" , (kernel_ulong_t)&dac5571_spec[single_8bit] }, - {"dac121c081" , (kernel_ulong_t)&dac5571_spec[single_12bit] }, - {"dac5571" , (kernel_ulong_t)&dac5571_spec[single_8bit] }, - {"dac6571" , (kernel_ulong_t)&dac5571_spec[single_10bit] }, - {"dac7571" , (kernel_ulong_t)&dac5571_spec[single_12bit] }, - {"dac5574" , (kernel_ulong_t)&dac5571_spec[quad_8bit] }, - {"dac6574" , (kernel_ulong_t)&dac5571_spec[quad_10bit] }, - {"dac7574" , (kernel_ulong_t)&dac5571_spec[quad_12bit] }, - {"dac5573" , (kernel_ulong_t)&dac5571_spec[quad_8bit] }, - {"dac6573" , (kernel_ulong_t)&dac5571_spec[quad_10bit] }, - {"dac7573" , (kernel_ulong_t)&dac5571_spec[quad_12bit] }, + { .name ="dac081c081" , .driver_data = (kernel_ulong_t)&dac5571_spec[single_8bit] }, + { .name ="dac121c081" , .driver_data = (kernel_ulong_t)&dac5571_spec[single_12bit] }, + { .name ="dac5571" , .driver_data = (kernel_ulong_t)&dac5571_spec[single_8bit] }, + { .name ="dac6571" , .driver_data = (kernel_ulong_t)&dac5571_spec[single_10bit] }, + { .name ="dac7571" , .driver_data = (kernel_ulong_t)&dac5571_spec[single_12bit] }, + { .name ="dac5574" , .driver_data = (kernel_ulong_t)&dac5571_spec[quad_8bit] }, + { .name ="dac6574" , .driver_data = (kernel_ulong_t)&dac5571_spec[quad_10bit] }, + { .name ="dac7574" , .driver_data = (kernel_ulong_t)&dac5571_spec[quad_12bit] }, + { .name ="dac5573" , .driver_data = (kernel_ulong_t)&dac5571_spec[quad_8bit] }, + { .name ="dac6573" , .driver_data = (kernel_ulong_t)&dac5571_spec[quad_10bit] }, + { .name ="dac7573" , .driver_data = (kernel_ulong_t)&dac5571_spec[quad_12bit] }, { } };MODULE_DEVICE_TABLE (i2c, dac5571_id);drivers/iio/gyro/bmg160_i2c.c +3
-3@@ -47,9 +47,9 @@ static const struct acpi_device_id bmg160_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, bmg160_acpi_match);static const struct i2c_device_id bmg160_i2c_id[] = { - {"bmg160" }, - {"bmi055_gyro" }, - {"bmi088_gyro" }, + { .name ="bmg160" }, + { .name ="bmi055_gyro" }, + { .name ="bmi088_gyro" }, { } };drivers/iio/gyro/fxas21002c_i2c.c +1
-1@@ -39,7 +39,7 @@ static void fxas21002c_i2c_remove(struct i2c_client *i2c) }static const struct i2c_device_id fxas21002c_i2c_id[] = { - {"fxas21002c" }, + { .name ="fxas21002c" }, { } };MODULE_DEVICE_TABLE (i2c, fxas21002c_i2c_id);drivers/iio/gyro/itg3200_core.c +1
-1@@ -389,7 +389,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(itg3200_pm_ops, itg3200_suspend, itg3200_resume);static const struct i2c_device_id itg3200_id[] = { - {"itg3200" }, + { .name ="itg3200" }, { } };MODULE_DEVICE_TABLE (i2c, itg3200_id);drivers/iio/gyro/mpu3050-i2c.c +1
-1@@ -92,7 +92,7 @@ static void mpu3050_i2c_remove(struct i2c_client *client)* supported by this driver */ static const struct i2c_device_id mpu3050_i2c_id[] = { - {"mpu3050" }, + { .name ="mpu3050" }, { } };MODULE_DEVICE_TABLE (i2c, mpu3050_i2c_id);drivers/iio/gyro/st_gyro_i2c.c +9
-9@@ -93,15 +93,15 @@ static int st_gyro_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id st_gyro_id_table[] = { - {L3G4200D_GYRO_DEV_NAME }, - {LSM330D_GYRO_DEV_NAME }, - {LSM330DL_GYRO_DEV_NAME }, - {LSM330DLC_GYRO_DEV_NAME }, - {L3GD20_GYRO_DEV_NAME }, - {L3GD20H_GYRO_DEV_NAME }, - {L3G4IS_GYRO_DEV_NAME }, - {LSM330_GYRO_DEV_NAME }, - {LSM9DS0_GYRO_DEV_NAME }, + { .name =L3G4200D_GYRO_DEV_NAME }, + { .name =LSM330D_GYRO_DEV_NAME }, + { .name =LSM330DL_GYRO_DEV_NAME }, + { .name =LSM330DLC_GYRO_DEV_NAME }, + { .name =L3GD20_GYRO_DEV_NAME }, + { .name =L3GD20H_GYRO_DEV_NAME }, + { .name =L3G4IS_GYRO_DEV_NAME }, + { .name =LSM330_GYRO_DEV_NAME }, + { .name =LSM9DS0_GYRO_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, st_gyro_id_table);drivers/iio/health/afe4404.c +1
-1@@ -575,7 +575,7 @@ static int afe4404_probe(struct i2c_client *client) }static const struct i2c_device_id afe4404_ids[] = { - {"afe4404" }, + { .name ="afe4404" }, { } };MODULE_DEVICE_TABLE (i2c, afe4404_ids);drivers/iio/health/max30100.c +1
-1@@ -507,7 +507,7 @@ static void max30100_remove(struct i2c_client *client) }static const struct i2c_device_id max30100_id[] = { - {"max30100" }, + { .name ="max30100" }, { } };MODULE_DEVICE_TABLE (i2c, max30100_id);drivers/iio/health/max30102.c +3
-3@@ -596,9 +596,9 @@ static void max30102_remove(struct i2c_client *client) }static const struct i2c_device_id max30102_id[] = { - {"max30101" , max30105 }, - {"max30102" , max30102 }, - {"max30105" , max30105 }, + { .name ="max30101" , .driver_data = max30105 }, + { .name ="max30102" , .driver_data = max30102 }, + { .name ="max30105" , .driver_data = max30105 }, { } };MODULE_DEVICE_TABLE (i2c, max30102_id);drivers/iio/humidity/am2315.c +1
-1@@ -250,7 +250,7 @@ static int am2315_probe(struct i2c_client *client) }static const struct i2c_device_id am2315_i2c_id[] = { - {"am2315" }, + { .name ="am2315" }, { } };MODULE_DEVICE_TABLE (i2c, am2315_i2c_id);drivers/iio/humidity/ens210.c +6
-6@@ -314,12 +314,12 @@ static const struct of_device_id ens210_of_match[] = {MODULE_DEVICE_TABLE (of, ens210_of_match);static const struct i2c_device_id ens210_id_table[] = { - {"ens210" , (kernel_ulong_t)&ens210_chip_info_data }, - {"ens210a" , (kernel_ulong_t)&ens210a_chip_info_data }, - {"ens211" , (kernel_ulong_t)&ens211_chip_info_data }, - {"ens212" , (kernel_ulong_t)&ens212_chip_info_data }, - {"ens213a" , (kernel_ulong_t)&ens213a_chip_info_data }, - {"ens215" , (kernel_ulong_t)&ens215_chip_info_data }, + { .name ="ens210" , .driver_data = (kernel_ulong_t)&ens210_chip_info_data }, + { .name ="ens210a" , .driver_data = (kernel_ulong_t)&ens210a_chip_info_data }, + { .name ="ens211" , .driver_data = (kernel_ulong_t)&ens211_chip_info_data }, + { .name ="ens212" , .driver_data = (kernel_ulong_t)&ens212_chip_info_data }, + { .name ="ens213a" , .driver_data = (kernel_ulong_t)&ens213a_chip_info_data }, + { .name ="ens215" , .driver_data = (kernel_ulong_t)&ens215_chip_info_data }, { } };MODULE_DEVICE_TABLE (i2c, ens210_id_table);drivers/iio/humidity/hdc100x.c +6
-6@@ -380,12 +380,12 @@ static int hdc100x_probe(struct i2c_client *client) }static const struct i2c_device_id hdc100x_id[] = { - {"hdc100x" }, - {"hdc1000" }, - {"hdc1008" }, - {"hdc1010" }, - {"hdc1050" }, - {"hdc1080" }, + { .name ="hdc100x" }, + { .name ="hdc1000" }, + { .name ="hdc1008" }, + { .name ="hdc1010" }, + { .name ="hdc1050" }, + { .name ="hdc1080" }, { } };MODULE_DEVICE_TABLE (i2c, hdc100x_id);drivers/iio/humidity/hdc2010.c +2
-2@@ -317,8 +317,8 @@ static void hdc2010_remove(struct i2c_client *client) }static const struct i2c_device_id hdc2010_id[] = { - {"hdc2010" }, - {"hdc2080" }, + { .name ="hdc2010" }, + { .name ="hdc2080" }, { } };MODULE_DEVICE_TABLE (i2c, hdc2010_id);drivers/iio/humidity/hdc3020.c +3
-3@@ -873,9 +873,9 @@ static int hdc3020_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(hdc3020_pm_ops, hdc3020_suspend, hdc3020_resume);static const struct i2c_device_id hdc3020_id[] = { - {"hdc3020" }, - {"hdc3021" }, - {"hdc3022" }, + { .name ="hdc3020" }, + { .name ="hdc3021" }, + { .name ="hdc3022" }, { } };MODULE_DEVICE_TABLE (i2c, hdc3020_id);drivers/iio/humidity/hts221_i2c.c +1
-1@@ -53,7 +53,7 @@ static const struct of_device_id hts221_i2c_of_match[] = {MODULE_DEVICE_TABLE (of, hts221_i2c_of_match);static const struct i2c_device_id hts221_i2c_id_table[] = { - {HTS221_DEV_NAME }, + { .name =HTS221_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, hts221_i2c_id_table);drivers/iio/humidity/htu21.c +2
-2@@ -230,8 +230,8 @@ static int htu21_probe(struct i2c_client *client) }static const struct i2c_device_id htu21_id[] = { - {"htu21" ,HTU21 }, - {"ms8607-humidity" ,MS8607 }, + { .name ="htu21" , .driver_data =HTU21 }, + { .name ="ms8607-humidity" , .driver_data =MS8607 }, { } };MODULE_DEVICE_TABLE (i2c, htu21_id);drivers/iio/humidity/si7005.c +2
-2@@ -163,8 +163,8 @@ static int si7005_probe(struct i2c_client *client) }static const struct i2c_device_id si7005_id[] = { - {"si7005" }, - {"th02" }, + { .name ="si7005" }, + { .name ="th02" }, { } };MODULE_DEVICE_TABLE (i2c, si7005_id);drivers/iio/humidity/si7020.c +2
-2@@ -267,8 +267,8 @@ static int si7020_probe(struct i2c_client *client) }static const struct i2c_device_id si7020_id[] = { - {"si7020" }, - {"th06" }, + { .name ="si7020" }, + { .name ="th06" }, { } };MODULE_DEVICE_TABLE (i2c, si7020_id);drivers/iio/imu/bmi160/bmi160_i2c.c +2
-2@@ -38,8 +38,8 @@ static int bmi160_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id bmi160_i2c_id[] = { - {"bmi120" }, - {"bmi160" }, + { .name ="bmi120" }, + { .name ="bmi160" }, { } };MODULE_DEVICE_TABLE (i2c, bmi160_i2c_id);drivers/iio/imu/bmi270/bmi270_i2c.c +2
-2@@ -33,8 +33,8 @@ static int bmi270_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id bmi270_i2c_id[] = { - {"bmi260" , (kernel_ulong_t)&bmi260_chip_info }, - {"bmi270" , (kernel_ulong_t)&bmi270_chip_info }, + { .name ="bmi260" , .driver_data = (kernel_ulong_t)&bmi260_chip_info }, + { .name ="bmi270" , .driver_data = (kernel_ulong_t)&bmi270_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, bmi270_i2c_id);drivers/iio/imu/bmi323/bmi323_i2c.c +1
-1@@ -114,7 +114,7 @@ static const struct acpi_device_id bmi323_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, bmi323_acpi_match);static const struct i2c_device_id bmi323_i2c_ids[] = { - {"bmi323" }, + { .name ="bmi323" }, { } };MODULE_DEVICE_TABLE (i2c, bmi323_i2c_ids);drivers/iio/imu/bno055/bno055_i2c.c +1
-1@@ -30,7 +30,7 @@ static int bno055_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id bno055_i2c_id[] = { - {"bno055" }, + { .name ="bno055" }, { } };MODULE_DEVICE_TABLE (i2c, bno055_i2c_id);drivers/iio/imu/fxos8700_i2c.c +1
-1@@ -36,7 +36,7 @@ static int fxos8700_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id fxos8700_i2c_id[] = { - {"fxos8700" }, + { .name ="fxos8700" }, { } };MODULE_DEVICE_TABLE (i2c, fxos8700_i2c_id);drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c +7
-7@@ -75,13 +75,13 @@ static int inv_icm42600_probe(struct i2c_client *client)* supported by this driver */ static const struct i2c_device_id inv_icm42600_id[] = { - {"icm42600" ,INV_CHIP_ICM42600 }, - {"icm42602" ,INV_CHIP_ICM42602 }, - {"icm42605" ,INV_CHIP_ICM42605 }, - {"icm42686" ,INV_CHIP_ICM42686 }, - {"icm42622" ,INV_CHIP_ICM42622 }, - {"icm42688" ,INV_CHIP_ICM42688 }, - {"icm42631" ,INV_CHIP_ICM42631 }, + { .name ="icm42600" , .driver_data =INV_CHIP_ICM42600 }, + { .name ="icm42602" , .driver_data =INV_CHIP_ICM42602 }, + { .name ="icm42605" , .driver_data =INV_CHIP_ICM42605 }, + { .name ="icm42686" , .driver_data =INV_CHIP_ICM42686 }, + { .name ="icm42622" , .driver_data =INV_CHIP_ICM42622 }, + { .name ="icm42688" , .driver_data =INV_CHIP_ICM42688 }, + { .name ="icm42631" , .driver_data =INV_CHIP_ICM42631 }, { } };MODULE_DEVICE_TABLE (i2c, inv_icm42600_id);drivers/iio/imu/inv_icm45600/inv_icm45600_i2c.c +8
-8@@ -39,14 +39,14 @@ static int inv_icm45600_probe(struct i2c_client *client)* supported by this driver. */ static const struct i2c_device_id inv_icm45600_id[] = { - {"icm45605" , (kernel_ulong_t)&inv_icm45605_chip_info }, - {"icm45606" , (kernel_ulong_t)&inv_icm45606_chip_info }, - {"icm45608" , (kernel_ulong_t)&inv_icm45608_chip_info }, - {"icm45634" , (kernel_ulong_t)&inv_icm45634_chip_info }, - {"icm45686" , (kernel_ulong_t)&inv_icm45686_chip_info }, - {"icm45687" , (kernel_ulong_t)&inv_icm45687_chip_info }, - {"icm45688p" , (kernel_ulong_t)&inv_icm45688p_chip_info }, - {"icm45689" , (kernel_ulong_t)&inv_icm45689_chip_info }, + { .name ="icm45605" , .driver_data = (kernel_ulong_t)&inv_icm45605_chip_info }, + { .name ="icm45606" , .driver_data = (kernel_ulong_t)&inv_icm45606_chip_info }, + { .name ="icm45608" , .driver_data = (kernel_ulong_t)&inv_icm45608_chip_info }, + { .name ="icm45634" , .driver_data = (kernel_ulong_t)&inv_icm45634_chip_info }, + { .name ="icm45686" , .driver_data = (kernel_ulong_t)&inv_icm45686_chip_info }, + { .name ="icm45687" , .driver_data = (kernel_ulong_t)&inv_icm45687_chip_info }, + { .name ="icm45688p" , .driver_data = (kernel_ulong_t)&inv_icm45688p_chip_info }, + { .name ="icm45689" , .driver_data = (kernel_ulong_t)&inv_icm45689_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, inv_icm45600_id);drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c +18
-18@@ -174,24 +174,24 @@ static void inv_mpu_remove(struct i2c_client *client)* supported by this driver */ static const struct i2c_device_id inv_mpu_id[] = { - {"mpu6050" ,INV_MPU6050 }, - {"mpu6500" ,INV_MPU6500 }, - {"mpu6515" ,INV_MPU6515 }, - {"mpu6880" ,INV_MPU6880 }, - {"mpu9150" ,INV_MPU9150 }, - {"mpu9250" ,INV_MPU9250 }, - {"mpu9255" ,INV_MPU9255 }, - {"icm20608" ,INV_ICM20608 }, - {"icm20608d" ,INV_ICM20608D }, - {"icm20609" ,INV_ICM20609 }, - {"icm20689" ,INV_ICM20689 }, - {"icm20600" ,INV_ICM20600 }, - {"icm20602" ,INV_ICM20602 }, - {"icm20690" ,INV_ICM20690 }, - {"iam20380" ,INV_IAM20380 }, - {"iam20680" ,INV_IAM20680 }, - {"iam20680hp" ,INV_IAM20680HP }, - {"iam20680ht" ,INV_IAM20680HT }, + { .name ="mpu6050" , .driver_data =INV_MPU6050 }, + { .name ="mpu6500" , .driver_data =INV_MPU6500 }, + { .name ="mpu6515" , .driver_data =INV_MPU6515 }, + { .name ="mpu6880" , .driver_data =INV_MPU6880 }, + { .name ="mpu9150" , .driver_data =INV_MPU9150 }, + { .name ="mpu9250" , .driver_data =INV_MPU9250 }, + { .name ="mpu9255" , .driver_data =INV_MPU9255 }, + { .name ="icm20608" , .driver_data =INV_ICM20608 }, + { .name ="icm20608d" , .driver_data =INV_ICM20608D }, + { .name ="icm20609" , .driver_data =INV_ICM20609 }, + { .name ="icm20689" , .driver_data =INV_ICM20689 }, + { .name ="icm20600" , .driver_data =INV_ICM20600 }, + { .name ="icm20602" , .driver_data =INV_ICM20602 }, + { .name ="icm20690" , .driver_data =INV_ICM20690 }, + { .name ="iam20380" , .driver_data =INV_IAM20380 }, + { .name ="iam20680" , .driver_data =INV_IAM20680 }, + { .name ="iam20680hp" , .driver_data =INV_IAM20680HP }, + { .name ="iam20680ht" , .driver_data =INV_IAM20680HT }, { } };drivers/iio/imu/kmx61.c +1
-1@@ -1481,7 +1481,7 @@ static const struct dev_pm_ops kmx61_pm_ops = { };static const struct i2c_device_id kmx61_id[] = { - {"kmx611021" }, + { .name ="kmx611021" }, { } };drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c +24
-24@@ -150,30 +150,30 @@ static const struct acpi_device_id st_lsm6dsx_i2c_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, st_lsm6dsx_i2c_acpi_match);static const struct i2c_device_id st_lsm6dsx_i2c_id_table[] = { - {ST_LSM6DS3_DEV_NAME ,ST_LSM6DS3_ID }, - {ST_LSM6DS3H_DEV_NAME ,ST_LSM6DS3H_ID }, - {ST_LSM6DSL_DEV_NAME ,ST_LSM6DSL_ID }, - {ST_LSM6DSM_DEV_NAME ,ST_LSM6DSM_ID }, - {ST_ISM330DLC_DEV_NAME ,ST_ISM330DLC_ID }, - {ST_LSM6DSO_DEV_NAME ,ST_LSM6DSO_ID }, - {ST_ASM330LHH_DEV_NAME ,ST_ASM330LHH_ID }, - {ST_LSM6DSOX_DEV_NAME ,ST_LSM6DSOX_ID }, - {ST_LSM6DSR_DEV_NAME ,ST_LSM6DSR_ID }, - {ST_LSM6DS3TRC_DEV_NAME ,ST_LSM6DS3TRC_ID }, - {ST_ISM330DHCX_DEV_NAME ,ST_ISM330DHCX_ID }, - {ST_LSM9DS1_DEV_NAME ,ST_LSM9DS1_ID }, - {ST_LSM6DS0_DEV_NAME ,ST_LSM6DS0_ID }, - {ST_LSM6DSRX_DEV_NAME ,ST_LSM6DSRX_ID }, - {ST_LSM6DST_DEV_NAME ,ST_LSM6DST_ID }, - {ST_LSM6DSOP_DEV_NAME ,ST_LSM6DSOP_ID }, - {ST_ASM330LHHX_DEV_NAME ,ST_ASM330LHHX_ID }, - {ST_LSM6DSTX_DEV_NAME ,ST_LSM6DSTX_ID }, - {ST_LSM6DSV_DEV_NAME ,ST_LSM6DSV_ID }, - {ST_LSM6DSV16X_DEV_NAME ,ST_LSM6DSV16X_ID }, - {ST_LSM6DSO16IS_DEV_NAME ,ST_LSM6DSO16IS_ID }, - {ST_ISM330IS_DEV_NAME ,ST_ISM330IS_ID }, - {ST_ASM330LHB_DEV_NAME ,ST_ASM330LHB_ID }, - {ST_ASM330LHHXG1_DEV_NAME ,ST_ASM330LHHXG1_ID }, + { .name =ST_LSM6DS3_DEV_NAME , .driver_data =ST_LSM6DS3_ID }, + { .name =ST_LSM6DS3H_DEV_NAME , .driver_data =ST_LSM6DS3H_ID }, + { .name =ST_LSM6DSL_DEV_NAME , .driver_data =ST_LSM6DSL_ID }, + { .name =ST_LSM6DSM_DEV_NAME , .driver_data =ST_LSM6DSM_ID }, + { .name =ST_ISM330DLC_DEV_NAME , .driver_data =ST_ISM330DLC_ID }, + { .name =ST_LSM6DSO_DEV_NAME , .driver_data =ST_LSM6DSO_ID }, + { .name =ST_ASM330LHH_DEV_NAME , .driver_data =ST_ASM330LHH_ID }, + { .name =ST_LSM6DSOX_DEV_NAME , .driver_data =ST_LSM6DSOX_ID }, + { .name =ST_LSM6DSR_DEV_NAME , .driver_data =ST_LSM6DSR_ID }, + { .name =ST_LSM6DS3TRC_DEV_NAME , .driver_data =ST_LSM6DS3TRC_ID }, + { .name =ST_ISM330DHCX_DEV_NAME , .driver_data =ST_ISM330DHCX_ID }, + { .name =ST_LSM9DS1_DEV_NAME , .driver_data =ST_LSM9DS1_ID }, + { .name =ST_LSM6DS0_DEV_NAME , .driver_data =ST_LSM6DS0_ID }, + { .name =ST_LSM6DSRX_DEV_NAME , .driver_data =ST_LSM6DSRX_ID }, + { .name =ST_LSM6DST_DEV_NAME , .driver_data =ST_LSM6DST_ID }, + { .name =ST_LSM6DSOP_DEV_NAME , .driver_data =ST_LSM6DSOP_ID }, + { .name =ST_ASM330LHHX_DEV_NAME , .driver_data =ST_ASM330LHHX_ID }, + { .name =ST_LSM6DSTX_DEV_NAME , .driver_data =ST_LSM6DSTX_ID }, + { .name =ST_LSM6DSV_DEV_NAME , .driver_data =ST_LSM6DSV_ID }, + { .name =ST_LSM6DSV16X_DEV_NAME , .driver_data =ST_LSM6DSV16X_ID }, + { .name =ST_LSM6DSO16IS_DEV_NAME , .driver_data =ST_LSM6DSO16IS_ID }, + { .name =ST_ISM330IS_DEV_NAME , .driver_data =ST_ISM330IS_ID }, + { .name =ST_ASM330LHB_DEV_NAME , .driver_data =ST_ASM330LHB_ID }, + { .name =ST_ASM330LHHXG1_DEV_NAME , .driver_data =ST_ASM330LHHXG1_ID }, { } };MODULE_DEVICE_TABLE (i2c, st_lsm6dsx_i2c_id_table);drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c +2
-2@@ -33,8 +33,8 @@ static const struct of_device_id st_lsm9ds0_of_match[] = {MODULE_DEVICE_TABLE (of, st_lsm9ds0_of_match);static const struct i2c_device_id st_lsm9ds0_id_table[] = { - {LSM303D_IMU_DEV_NAME }, - {LSM9DS0_IMU_DEV_NAME }, + { .name =LSM303D_IMU_DEV_NAME }, + { .name =LSM9DS0_IMU_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, st_lsm9ds0_id_table);drivers/iio/light/adjd_s311.c +1
-1@@ -260,7 +260,7 @@ static int adjd_s311_probe(struct i2c_client *client) }static const struct i2c_device_id adjd_s311_id[] = { - {"adjd_s311" }, + { .name ="adjd_s311" }, { } };MODULE_DEVICE_TABLE (i2c, adjd_s311_id);drivers/iio/light/adux1020.c +1
-1@@ -818,7 +818,7 @@ static int adux1020_probe(struct i2c_client *client) }static const struct i2c_device_id adux1020_id[] = { - {"adux1020" }, + { .name ="adux1020" }, { } };MODULE_DEVICE_TABLE (i2c, adux1020_id);drivers/iio/light/al3000a.c +1
-1@@ -183,7 +183,7 @@ static int al3000a_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(al3000a_pm_ops, al3000a_suspend, al3000a_resume);static const struct i2c_device_id al3000a_id[] = { - {"al3000a" }, + { .name ="al3000a" }, { } };MODULE_DEVICE_TABLE (i2c, al3000a_id);drivers/iio/light/al3010.c +1
-1@@ -218,7 +218,7 @@ static int al3010_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(al3010_pm_ops, al3010_suspend, al3010_resume);static const struct i2c_device_id al3010_id[] = { - {"al3010" , }, + { .name ="al3010" }, { } };MODULE_DEVICE_TABLE (i2c, al3010_id);drivers/iio/light/al3320a.c +1
-1@@ -246,7 +246,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(al3320a_pm_ops, al3320a_suspend, al3320a_resume);static const struct i2c_device_id al3320a_id[] = { - {"al3320a" }, + { .name ="al3320a" }, { } };MODULE_DEVICE_TABLE (i2c, al3320a_id);drivers/iio/light/apds9300.c +1
-1@@ -492,7 +492,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(apds9300_pm_ops, apds9300_suspend, apds9300_resume);static const struct i2c_device_id apds9300_id[] = { - {APDS9300_DRV_NAME }, + { .name =APDS9300_DRV_NAME }, { } };drivers/iio/light/apds9960.c +1
-1@@ -1154,7 +1154,7 @@ static const struct dev_pm_ops apds9960_pm_ops = { };static const struct i2c_device_id apds9960_id[] = { - {"apds9960" }, + { .name ="apds9960" }, { } };MODULE_DEVICE_TABLE (i2c, apds9960_id);drivers/iio/light/as73211.c +2
-2@@ -875,8 +875,8 @@ static const struct of_device_id as73211_of_match[] = {MODULE_DEVICE_TABLE (of, as73211_of_match);static const struct i2c_device_id as73211_id[] = { - {"as73211" , (kernel_ulong_t)&as73211_spec }, - {"as7331" , (kernel_ulong_t)&as7331_spec }, + { .name ="as73211" , .driver_data = (kernel_ulong_t)&as73211_spec }, + { .name ="as7331" , .driver_data = (kernel_ulong_t)&as7331_spec }, { } };MODULE_DEVICE_TABLE (i2c, as73211_id);drivers/iio/light/bh1745.c +1
-1@@ -874,7 +874,7 @@ static int bh1745_probe(struct i2c_client *client) }static const struct i2c_device_id bh1745_idtable[] = { - {"bh1745" }, + { .name ="bh1745" }, { } };MODULE_DEVICE_TABLE (i2c, bh1745_idtable);drivers/iio/light/bh1750.c +5
-5@@ -319,11 +319,11 @@ static int bh1750_suspend(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(bh1750_pm_ops, bh1750_suspend, NULL);static const struct i2c_device_id bh1750_id[] = { - {"bh1710" ,BH1710 }, - {"bh1715" ,BH1750 }, - {"bh1721" ,BH1721 }, - {"bh1750" ,BH1750 }, - {"bh1751" ,BH1750 }, + { .name ="bh1710" , .driver_data =BH1710 }, + { .name ="bh1715" , .driver_data =BH1750 }, + { .name ="bh1721" , .driver_data =BH1721 }, + { .name ="bh1750" , .driver_data =BH1750 }, + { .name ="bh1751" , .driver_data =BH1750 }, { } };MODULE_DEVICE_TABLE (i2c, bh1750_id);drivers/iio/light/bh1780.c +1
-1@@ -255,7 +255,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(bh1780_dev_pm_ops, bh1780_runtime_suspend, bh1780_runtime_resume, NULL);static const struct i2c_device_id bh1780_id[] = { - {"bh1780" }, + { .name ="bh1780" }, { } };drivers/iio/light/cm3232.c +1
-1@@ -366,7 +366,7 @@ static void cm3232_remove(struct i2c_client *client) }static const struct i2c_device_id cm3232_id[] = { - {"cm3232" }, + { .name ="cm3232" }, { } };drivers/iio/light/cm3323.c +1
-1@@ -250,7 +250,7 @@ static int cm3323_probe(struct i2c_client *client) }static const struct i2c_device_id cm3323_id[] = { - {"cm3323" }, + { .name ="cm3323" }, { } };MODULE_DEVICE_TABLE (i2c, cm3323_id);drivers/iio/light/cm36651.c +1
-1@@ -713,7 +713,7 @@ static void cm36651_remove(struct i2c_client *client) }static const struct i2c_device_id cm36651_id[] = { - {"cm36651" }, + { .name ="cm36651" }, { } };drivers/iio/light/gp2ap002.c +1
-1@@ -690,7 +690,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(gp2ap002_dev_pm_ops, gp2ap002_runtime_suspend, gp2ap002_runtime_resume, NULL);static const struct i2c_device_id gp2ap002_id_table[] = { - {"gp2ap002" }, + { .name ="gp2ap002" }, { } };MODULE_DEVICE_TABLE (i2c, gp2ap002_id_table);drivers/iio/light/gp2ap020a00f.c +1
-1@@ -1525,7 +1525,7 @@ static void gp2ap020a00f_remove(struct i2c_client *client) }static const struct i2c_device_id gp2ap020a00f_id[] = { - {"gp2ap020a00f" }, + { .name ="gp2ap020a00f" }, { } };MODULE_DEVICE_TABLE (i2c, gp2ap020a00f_id);drivers/iio/light/isl29018.c +3
-3@@ -829,9 +829,9 @@ static const struct acpi_device_id isl29018_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, isl29018_acpi_match);static const struct i2c_device_id isl29018_id[] = { - {"isl29018" , isl29018}, - {"isl29023" , isl29023}, - {"isl29035" , isl29035}, + { .name ="isl29018" , .driver_data = isl29018 }, + { .name ="isl29023" , .driver_data = isl29023 }, + { .name ="isl29035" , .driver_data = isl29035 }, { } };MODULE_DEVICE_TABLE (i2c, isl29018_id);drivers/iio/light/isl29028.c +2
-2@@ -673,8 +673,8 @@ static DEFINE_RUNTIME_DEV_PM_OPS(isl29028_pm_ops, isl29028_suspend, isl29028_resume, NULL);static const struct i2c_device_id isl29028_id[] = { - {"isl29028" }, - {"isl29030" }, + { .name ="isl29028" }, + { .name ="isl29030" }, { } };MODULE_DEVICE_TABLE (i2c, isl29028_id);drivers/iio/light/isl29125.c +1
-1@@ -325,7 +325,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(isl29125_pm_ops, isl29125_suspend, isl29125_resume);static const struct i2c_device_id isl29125_id[] = { - {"isl29125" }, + { .name ="isl29125" }, { } };MODULE_DEVICE_TABLE (i2c, isl29125_id);drivers/iio/light/isl76682.c +1
-1@@ -319,7 +319,7 @@ static int isl76682_probe(struct i2c_client *client) }static const struct i2c_device_id isl76682_id[] = { - {"isl76682" }, + { .name ="isl76682" }, { } };MODULE_DEVICE_TABLE (i2c, isl76682_id);drivers/iio/light/jsa1212.c +1
-1@@ -428,7 +428,7 @@ static const struct acpi_device_id jsa1212_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, jsa1212_acpi_match);static const struct i2c_device_id jsa1212_id[] = { - {JSA1212_DRIVER_NAME }, + { .name =JSA1212_DRIVER_NAME }, { } };MODULE_DEVICE_TABLE (i2c, jsa1212_id);drivers/iio/light/ltr390.c +1
-1@@ -889,7 +889,7 @@ static const struct dev_pm_ops ltr390_pm_ops = { };static const struct i2c_device_id ltr390_id[] = { - {"ltr390" }, + { .name ="ltr390" }, { } };MODULE_DEVICE_TABLE (i2c, ltr390_id);drivers/iio/light/ltr501.c +4
-4@@ -1601,10 +1601,10 @@ static const struct acpi_device_id ltr_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, ltr_acpi_match);static const struct i2c_device_id ltr501_id[] = { - {"ltr501" , ltr501 }, - {"ltr559" , ltr559 }, - {"ltr301" , ltr301 }, - {"ltr303" , ltr303 }, + { .name ="ltr501" , .driver_data = ltr501 }, + { .name ="ltr559" , .driver_data = ltr559 }, + { .name ="ltr301" , .driver_data = ltr301 }, + { .name ="ltr303" , .driver_data = ltr303 }, { } };MODULE_DEVICE_TABLE (i2c, ltr501_id);drivers/iio/light/ltrf216a.c +2
-2@@ -551,8 +551,8 @@ static const struct ltr_chip_info ltrf216a_chip_info = { };static const struct i2c_device_id ltrf216a_id[] = { - {"ltr308" , .driver_data = (kernel_ulong_t)<r308_chip_info }, - {"ltrf216a" , .driver_data = (kernel_ulong_t)<rf216a_chip_info }, + { .name ="ltr308" , .driver_data = (kernel_ulong_t)<r308_chip_info }, + { .name ="ltrf216a" , .driver_data = (kernel_ulong_t)<rf216a_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, ltrf216a_id);drivers/iio/light/lv0104cs.c +1
-1@@ -510,7 +510,7 @@ static int lv0104cs_probe(struct i2c_client *client) }static const struct i2c_device_id lv0104cs_id[] = { - {"lv0104cs" }, + { .name ="lv0104cs" }, { } };MODULE_DEVICE_TABLE (i2c, lv0104cs_id);drivers/iio/light/max44000.c +1
-1@@ -598,7 +598,7 @@ static int max44000_probe(struct i2c_client *client) }static const struct i2c_device_id max44000_id[] = { - {"max44000" }, + { .name ="max44000" }, { } };MODULE_DEVICE_TABLE (i2c, max44000_id);drivers/iio/light/max44009.c +1
-1@@ -534,7 +534,7 @@ static const struct of_device_id max44009_of_match[] = {MODULE_DEVICE_TABLE (of, max44009_of_match);static const struct i2c_device_id max44009_id[] = { - {"max44009" }, + { .name ="max44009" }, { } };MODULE_DEVICE_TABLE (i2c, max44009_id);drivers/iio/light/noa1305.c +1
-1@@ -315,7 +315,7 @@ static const struct of_device_id noa1305_of_match[] = {MODULE_DEVICE_TABLE (of, noa1305_of_match);static const struct i2c_device_id noa1305_ids[] = { - {"noa1305" }, + { .name ="noa1305" }, { } };MODULE_DEVICE_TABLE (i2c, noa1305_ids);drivers/iio/light/opt3001.c +2
-2@@ -948,8 +948,8 @@ static const struct opt3001_chip_info opt3002_chip_information = { };static const struct i2c_device_id opt3001_id[] = { - {"opt3001" , (kernel_ulong_t)&opt3001_chip_information }, - {"opt3002" , (kernel_ulong_t)&opt3002_chip_information }, + { .name ="opt3001" , .driver_data = (kernel_ulong_t)&opt3001_chip_information }, + { .name ="opt3002" , .driver_data = (kernel_ulong_t)&opt3002_chip_information }, { }/* Terminating Entry */ };MODULE_DEVICE_TABLE (i2c, opt3001_id);drivers/iio/light/opt4001.c +2
-2@@ -438,8 +438,8 @@ static int opt4001_probe(struct i2c_client *client)* opt4001 packaging */ static const struct i2c_device_id opt4001_id[] = { - {"opt4001-sot-5x3" , (kernel_ulong_t)&opt4001_sot_5x3_info }, - {"opt4001-picostar" , (kernel_ulong_t)&opt4001_picostar_info }, + { .name ="opt4001-sot-5x3" , .driver_data = (kernel_ulong_t)&opt4001_sot_5x3_info }, + { .name ="opt4001-picostar" , .driver_data = (kernel_ulong_t)&opt4001_picostar_info }, { } };MODULE_DEVICE_TABLE (i2c, opt4001_id);drivers/iio/light/opt4060.c +1
-1@@ -1297,7 +1297,7 @@ static int opt4060_probe(struct i2c_client *client) }static const struct i2c_device_id opt4060_id[] = { - {"opt4060" , }, + { .name ="opt4060" }, { } };MODULE_DEVICE_TABLE (i2c, opt4060_id);drivers/iio/light/pa12203001.c +1
-1@@ -457,7 +457,7 @@ static const struct acpi_device_id pa12203001_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, pa12203001_acpi_match);static const struct i2c_device_id pa12203001_id[] = { - {"txcpa122" }, + { .name ="txcpa122" }, { } };drivers/iio/light/rpr0521.c +1
-1@@ -1102,7 +1102,7 @@ static const struct acpi_device_id rpr0521_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, rpr0521_acpi_match);static const struct i2c_device_id rpr0521_id[] = { - {"rpr0521" }, + { .name ="rpr0521" }, { } };drivers/iio/light/si1133.c +1
-1@@ -1055,7 +1055,7 @@ static int si1133_probe(struct i2c_client *client) }static const struct i2c_device_id si1133_ids[] = { - {"si1133" }, + { .name ="si1133" }, { } };MODULE_DEVICE_TABLE (i2c, si1133_ids);drivers/iio/light/si1145.c +7
-7@@ -1334,13 +1334,13 @@ static int si1145_probe(struct i2c_client *client) }static const struct i2c_device_id si1145_ids[] = { - {"si1132" ,SI1132 }, - {"si1141" ,SI1141 }, - {"si1142" ,SI1142 }, - {"si1143" ,SI1143 }, - {"si1145" ,SI1145 }, - {"si1146" ,SI1146 }, - {"si1147" ,SI1147 }, + { .name ="si1132" , .driver_data =SI1132 }, + { .name ="si1141" , .driver_data =SI1141 }, + { .name ="si1142" , .driver_data =SI1142 }, + { .name ="si1143" , .driver_data =SI1143 }, + { .name ="si1145" , .driver_data =SI1145 }, + { .name ="si1146" , .driver_data =SI1146 }, + { .name ="si1147" , .driver_data =SI1147 }, { } };MODULE_DEVICE_TABLE (i2c, si1145_ids);drivers/iio/light/st_uvis25_i2c.c +1
-1@@ -46,7 +46,7 @@ static const struct of_device_id st_uvis25_i2c_of_match[] = {MODULE_DEVICE_TABLE (of, st_uvis25_i2c_of_match);static const struct i2c_device_id st_uvis25_i2c_id_table[] = { - {ST_UVIS25_DEV_NAME }, + { .name =ST_UVIS25_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, st_uvis25_i2c_id_table);drivers/iio/light/stk3310.c +4
-4@@ -695,10 +695,10 @@ static DEFINE_SIMPLE_DEV_PM_OPS(stk3310_pm_ops, stk3310_suspend, stk3310_resume);static const struct i2c_device_id stk3310_i2c_id[] = { - {"STK3013" }, - {"STK3310" }, - {"STK3311" }, - {"STK3335" }, + { .name ="STK3013" }, + { .name ="STK3310" }, + { .name ="STK3311" }, + { .name ="STK3335" }, { } };MODULE_DEVICE_TABLE (i2c, stk3310_i2c_id);drivers/iio/light/tcs3414.c +1
-1@@ -362,7 +362,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(tcs3414_pm_ops, tcs3414_suspend, tcs3414_resume);static const struct i2c_device_id tcs3414_id[] = { - {"tcs3414" }, + { .name ="tcs3414" }, { } };MODULE_DEVICE_TABLE (i2c, tcs3414_id);drivers/iio/light/tcs3472.c +1
-1@@ -597,7 +597,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(tcs3472_pm_ops, tcs3472_suspend, tcs3472_resume);static const struct i2c_device_id tcs3472_id[] = { - {"tcs3472" }, + { .name ="tcs3472" }, { } };MODULE_DEVICE_TABLE (i2c, tcs3472_id);drivers/iio/light/tsl2772.c +11
-11@@ -1888,17 +1888,17 @@ static int tsl2772_resume(struct device *dev) }static const struct i2c_device_id tsl2772_idtable[] = { - {"tsl2571" , tsl2571 }, - {"tsl2671" , tsl2671 }, - {"tmd2671" , tmd2671 }, - {"tsl2771" , tsl2771 }, - {"tmd2771" , tmd2771 }, - {"tsl2572" , tsl2572 }, - {"tsl2672" , tsl2672 }, - {"tmd2672" , tmd2672 }, - {"tsl2772" , tsl2772 }, - {"tmd2772" , tmd2772 }, - {"apds9930" , apds9930 }, + { .name ="tsl2571" , .driver_data = tsl2571 }, + { .name ="tsl2671" , .driver_data = tsl2671 }, + { .name ="tmd2671" , .driver_data = tmd2671 }, + { .name ="tsl2771" , .driver_data = tsl2771 }, + { .name ="tmd2771" , .driver_data = tmd2771 }, + { .name ="tsl2572" , .driver_data = tsl2572 }, + { .name ="tsl2672" , .driver_data = tsl2672 }, + { .name ="tmd2672" , .driver_data = tmd2672 }, + { .name ="tsl2772" , .driver_data = tsl2772 }, + { .name ="tmd2772" , .driver_data = tmd2772 }, + { .name ="apds9930" , .driver_data = apds9930 }, { } };drivers/iio/light/tsl4531.c +1
-1@@ -227,7 +227,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(tsl4531_pm_ops, tsl4531_suspend, tsl4531_resume);static const struct i2c_device_id tsl4531_id[] = { - {"tsl4531" }, + { .name ="tsl4531" }, { } };MODULE_DEVICE_TABLE (i2c, tsl4531_id);drivers/iio/light/us5182d.c +1
-1@@ -949,7 +949,7 @@ static const struct acpi_device_id us5182d_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, us5182d_acpi_match);static const struct i2c_device_id us5182d_id[] = { - {"usd5182" }, + { .name ="usd5182" }, { } };drivers/iio/light/vcnl4000.c +7
-7@@ -237,13 +237,13 @@ struct vcnl4000_chip_spec { };static const struct i2c_device_id vcnl4000_id[] = { - {"cm36672p" ,CM36672P }, - {"cm36686" ,VCNL4040 }, - {"vcnl4000" ,VCNL4000 }, - {"vcnl4010" ,VCNL4010 }, - {"vcnl4020" ,VCNL4010 }, - {"vcnl4040" ,VCNL4040 }, - {"vcnl4200" ,VCNL4200 }, + { .name ="cm36672p" , .driver_data =CM36672P }, + { .name ="cm36686" , .driver_data =VCNL4040 }, + { .name ="vcnl4000" , .driver_data =VCNL4000 }, + { .name ="vcnl4010" , .driver_data =VCNL4010 }, + { .name ="vcnl4020" , .driver_data =VCNL4010 }, + { .name ="vcnl4040" , .driver_data =VCNL4040 }, + { .name ="vcnl4200" , .driver_data =VCNL4200 }, { } };MODULE_DEVICE_TABLE (i2c, vcnl4000_id);drivers/iio/light/vcnl4035.c +1
-1@@ -662,7 +662,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(vcnl4035_pm_ops, vcnl4035_runtime_suspend, vcnl4035_runtime_resume, NULL);static const struct i2c_device_id vcnl4035_id[] = { - {"vcnl4035" }, + { .name ="vcnl4035" }, { } };MODULE_DEVICE_TABLE (i2c, vcnl4035_id);drivers/iio/light/veml3235.c +1
-1@@ -525,7 +525,7 @@ static const struct of_device_id veml3235_of_match[] = {MODULE_DEVICE_TABLE (of, veml3235_of_match);static const struct i2c_device_id veml3235_id[] = { - {"veml3235" }, + { .name ="veml3235" }, { } };MODULE_DEVICE_TABLE (i2c, veml3235_id);drivers/iio/light/veml6030.c +3
-3@@ -1218,9 +1218,9 @@ static const struct of_device_id veml6030_of_match[] = {MODULE_DEVICE_TABLE (of, veml6030_of_match);static const struct i2c_device_id veml6030_id[] = { - {"veml6030" , (kernel_ulong_t)&veml6030_chip}, - {"veml6035" , (kernel_ulong_t)&veml6035_chip}, - {"veml7700" , (kernel_ulong_t)&veml7700_chip}, + { .name ="veml6030" , .driver_data = (kernel_ulong_t)&veml6030_chip }, + { .name ="veml6035" , .driver_data = (kernel_ulong_t)&veml6035_chip }, + { .name ="veml7700" , .driver_data = (kernel_ulong_t)&veml7700_chip }, { } };MODULE_DEVICE_TABLE (i2c, veml6030_id);drivers/iio/light/veml6040.c +1
-1@@ -254,7 +254,7 @@ static int veml6040_probe(struct i2c_client *client) }static const struct i2c_device_id veml6040_id_table[] = { - {"veml6040" }, + { .name ="veml6040" }, { } };MODULE_DEVICE_TABLE (i2c, veml6040_id_table);drivers/iio/light/veml6046x00.c +1
-1@@ -1009,7 +1009,7 @@ static const struct of_device_id veml6046x00_of_match[] = {MODULE_DEVICE_TABLE (of, veml6046x00_of_match);static const struct i2c_device_id veml6046x00_id[] = { - {"veml6046x00" }, + { .name ="veml6046x00" }, { } };MODULE_DEVICE_TABLE (i2c, veml6046x00_id);drivers/iio/light/veml6070.c +1
-1@@ -300,7 +300,7 @@ static int veml6070_probe(struct i2c_client *client) }static const struct i2c_device_id veml6070_id[] = { - {"veml6070" }, + { .name ="veml6070" }, { } };MODULE_DEVICE_TABLE (i2c, veml6070_id);drivers/iio/light/veml6075.c +1
-1@@ -451,7 +451,7 @@ static int veml6075_probe(struct i2c_client *client) }static const struct i2c_device_id veml6075_id[] = { - {"veml6075" }, + { .name ="veml6075" }, { } };MODULE_DEVICE_TABLE (i2c, veml6075_id);drivers/iio/light/vl6180.c +1
-1@@ -750,7 +750,7 @@ static const struct of_device_id vl6180_of_match[] = {MODULE_DEVICE_TABLE (of, vl6180_of_match);static const struct i2c_device_id vl6180_id[] = { - {"vl6180" }, + { .name ="vl6180" }, { } };MODULE_DEVICE_TABLE (i2c, vl6180_id);drivers/iio/light/zopt2201.c +1
-1@@ -516,7 +516,7 @@ static int zopt2201_probe(struct i2c_client *client) }static const struct i2c_device_id zopt2201_id[] = { - {"zopt2201" }, + { .name ="zopt2201" }, { } };MODULE_DEVICE_TABLE (i2c, zopt2201_id);drivers/iio/magnetometer/af8133j.c +1
-1@@ -504,7 +504,7 @@ static const struct of_device_id af8133j_of_match[] = {MODULE_DEVICE_TABLE (of, af8133j_of_match);static const struct i2c_device_id af8133j_id[] = { - {"af8133j" }, + { .name ="af8133j" }, { } };MODULE_DEVICE_TABLE (i2c, af8133j_id);drivers/iio/magnetometer/ak8974.c +4
-4@@ -1017,10 +1017,10 @@ static DEFINE_RUNTIME_DEV_PM_OPS(ak8974_dev_pm_ops, ak8974_runtime_suspend, ak8974_runtime_resume, NULL);static const struct i2c_device_id ak8974_id[] = { - {"ami305" }, - {"ami306" }, - {"ak8974" }, - {"hscdtd008a" }, + { .name ="ami305" }, + { .name ="ami306" }, + { .name ="ak8974" }, + { .name ="hscdtd008a" }, { } };MODULE_DEVICE_TABLE (i2c, ak8974_id);drivers/iio/magnetometer/ak8975.c +7
-7@@ -1099,13 +1099,13 @@ static const struct acpi_device_id ak_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, ak_acpi_match);static const struct i2c_device_id ak8975_id[] = { - {"AK8963" , (kernel_ulong_t)&ak_def_array[AK8963 ] }, - {"ak8963" , (kernel_ulong_t)&ak_def_array[AK8963 ] }, - {"ak8975" , (kernel_ulong_t)&ak_def_array[AK8975 ] }, - {"ak09911" , (kernel_ulong_t)&ak_def_array[AK09911 ] }, - {"ak09912" , (kernel_ulong_t)&ak_def_array[AK09912 ] }, - {"ak09916" , (kernel_ulong_t)&ak_def_array[AK09916 ] }, - {"ak09918" , (kernel_ulong_t)&ak_def_array[AK09918 ] }, + { .name ="AK8963" , .driver_data = (kernel_ulong_t)&ak_def_array[AK8963 ] }, + { .name ="ak8963" , .driver_data = (kernel_ulong_t)&ak_def_array[AK8963 ] }, + { .name ="ak8975" , .driver_data = (kernel_ulong_t)&ak_def_array[AK8975 ] }, + { .name ="ak09911" , .driver_data = (kernel_ulong_t)&ak_def_array[AK09911 ] }, + { .name ="ak09912" , .driver_data = (kernel_ulong_t)&ak_def_array[AK09912 ] }, + { .name ="ak09916" , .driver_data = (kernel_ulong_t)&ak_def_array[AK09916 ] }, + { .name ="ak09918" , .driver_data = (kernel_ulong_t)&ak_def_array[AK09918 ] }, { } };MODULE_DEVICE_TABLE (i2c, ak8975_id);drivers/iio/magnetometer/bmc150_magn_i2c.c +3
-3@@ -39,9 +39,9 @@ static void bmc150_magn_i2c_remove(struct i2c_client *client) }static const struct i2c_device_id bmc150_magn_i2c_id[] = { - {"bmc150_magn" }, - {"bmc156_magn" }, - {"bmm150_magn" }, + { .name ="bmc150_magn" }, + { .name ="bmc156_magn" }, + { .name ="bmm150_magn" }, { } };MODULE_DEVICE_TABLE (i2c, bmc150_magn_i2c_id);drivers/iio/magnetometer/hmc5843_i2c.c +4
-4@@ -71,10 +71,10 @@ static void hmc5843_i2c_remove(struct i2c_client *client) }static const struct i2c_device_id hmc5843_id[] = { - {"hmc5843" ,HMC5843_ID }, - {"hmc5883" ,HMC5883_ID }, - {"hmc5883l" ,HMC5883L_ID }, - {"hmc5983" ,HMC5983_ID }, + { .name ="hmc5843" , .driver_data =HMC5843_ID }, + { .name ="hmc5883" , .driver_data =HMC5883_ID }, + { .name ="hmc5883l" , .driver_data =HMC5883L_ID }, + { .name ="hmc5983" , .driver_data =HMC5983_ID }, { } };MODULE_DEVICE_TABLE (i2c, hmc5843_id);drivers/iio/magnetometer/mag3110.c +1
-1@@ -619,7 +619,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(mag3110_pm_ops, mag3110_suspend, mag3110_resume);static const struct i2c_device_id mag3110_id[] = { - {"mag3110" }, + { .name ="mag3110" }, { } };MODULE_DEVICE_TABLE (i2c, mag3110_id);drivers/iio/magnetometer/mmc35240.c +1
-1@@ -560,7 +560,7 @@ static const struct acpi_device_id mmc35240_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, mmc35240_acpi_match);static const struct i2c_device_id mmc35240_id[] = { - {"mmc35240" }, + { .name ="mmc35240" }, { } };MODULE_DEVICE_TABLE (i2c, mmc35240_id);drivers/iio/magnetometer/mmc5633.c +2
-2@@ -532,8 +532,8 @@ static const struct of_device_id mmc5633_of_match[] = {MODULE_DEVICE_TABLE (of, mmc5633_of_match);static const struct i2c_device_id mmc5633_i2c_id[] = { - {"mmc5603" }, - {"mmc5633" }, + { .name ="mmc5603" }, + { .name ="mmc5633" }, { } };MODULE_DEVICE_TABLE (i2c, mmc5633_i2c_id);drivers/iio/magnetometer/si7210.c +1
-1@@ -413,7 +413,7 @@ static int si7210_probe(struct i2c_client *client) }static const struct i2c_device_id si7210_id[] = { - {"si7210" }, + { .name ="si7210" }, { } };MODULE_DEVICE_TABLE (i2c, si7210_id);drivers/iio/magnetometer/st_magn_i2c.c +9
-9@@ -93,15 +93,15 @@ static int st_magn_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id st_magn_id_table[] = { - {LSM303DLH_MAGN_DEV_NAME }, - {LSM303DLHC_MAGN_DEV_NAME }, - {LSM303DLM_MAGN_DEV_NAME }, - {LIS3MDL_MAGN_DEV_NAME }, - {LSM303AGR_MAGN_DEV_NAME }, - {LIS2MDL_MAGN_DEV_NAME }, - {LSM9DS1_MAGN_DEV_NAME }, - {IIS2MDC_MAGN_DEV_NAME }, - {LSM303C_MAGN_DEV_NAME }, + { .name =LSM303DLH_MAGN_DEV_NAME }, + { .name =LSM303DLHC_MAGN_DEV_NAME }, + { .name =LSM303DLM_MAGN_DEV_NAME }, + { .name =LIS3MDL_MAGN_DEV_NAME }, + { .name =LSM303AGR_MAGN_DEV_NAME }, + { .name =LIS2MDL_MAGN_DEV_NAME }, + { .name =LSM9DS1_MAGN_DEV_NAME }, + { .name =IIS2MDC_MAGN_DEV_NAME }, + { .name =LSM303C_MAGN_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, st_magn_id_table);drivers/iio/magnetometer/tlv493d.c +1
-1@@ -499,7 +499,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(tlv493d_pm_ops, tlv493d_runtime_suspend, tlv493d_runtime_resume, NULL);static const struct i2c_device_id tlv493d_id[] = { - {"tlv493d" }, + { .name ="tlv493d" }, { } };MODULE_DEVICE_TABLE (i2c, tlv493d_id);drivers/iio/magnetometer/tmag5273.c +1
-1@@ -708,7 +708,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(tmag5273_pm_ops, NULL);static const struct i2c_device_id tmag5273_id[] = { - {"tmag5273" }, + { .name ="tmag5273" }, { } };MODULE_DEVICE_TABLE (i2c, tmag5273_id);drivers/iio/magnetometer/yamaha-yas530.c +4
-4@@ -1579,10 +1579,10 @@ static DEFINE_RUNTIME_DEV_PM_OPS(yas5xx_dev_pm_ops, yas5xx_runtime_suspend, yas5xx_runtime_resume, NULL);static const struct i2c_device_id yas5xx_id[] = { - {"yas530" , (kernel_ulong_t)&yas5xx_chip_info_tbl[yas530] }, - {"yas532" , (kernel_ulong_t)&yas5xx_chip_info_tbl[yas532] }, - {"yas533" , (kernel_ulong_t)&yas5xx_chip_info_tbl[yas533] }, - {"yas537" , (kernel_ulong_t)&yas5xx_chip_info_tbl[yas537] }, + { .name ="yas530" , .driver_data = (kernel_ulong_t)&yas5xx_chip_info_tbl[yas530] }, + { .name ="yas532" , .driver_data = (kernel_ulong_t)&yas5xx_chip_info_tbl[yas532] }, + { .name ="yas533" , .driver_data = (kernel_ulong_t)&yas5xx_chip_info_tbl[yas533] }, + { .name ="yas537" , .driver_data = (kernel_ulong_t)&yas5xx_chip_info_tbl[yas537] }, { } };MODULE_DEVICE_TABLE (i2c, yas5xx_id);drivers/iio/potentiometer/ad5272.c +5
-5@@ -204,11 +204,11 @@ static const struct of_device_id ad5272_dt_ids[] = {MODULE_DEVICE_TABLE (of, ad5272_dt_ids);static const struct i2c_device_id ad5272_id[] = { - {"ad5272-020" ,AD5272_020 }, - {"ad5272-050" ,AD5272_050 }, - {"ad5272-100" ,AD5272_100 }, - {"ad5274-020" ,AD5274_020 }, - {"ad5274-100" ,AD5274_100 }, + { .name ="ad5272-020" , .driver_data =AD5272_020 }, + { .name ="ad5272-050" , .driver_data =AD5272_050 }, + { .name ="ad5272-100" , .driver_data =AD5272_100 }, + { .name ="ad5274-020" , .driver_data =AD5274_020 }, + { .name ="ad5274-100" , .driver_data =AD5274_100 }, { } };MODULE_DEVICE_TABLE (i2c, ad5272_id);drivers/iio/potentiometer/ds1803.c +4
-4@@ -235,10 +235,10 @@ static const struct of_device_id ds1803_dt_ids[] = {MODULE_DEVICE_TABLE (of, ds1803_dt_ids);static const struct i2c_device_id ds1803_id[] = { - {"ds1803-010" , (kernel_ulong_t)&ds1803_cfg[DS1803_010 ] }, - {"ds1803-050" , (kernel_ulong_t)&ds1803_cfg[DS1803_050 ] }, - {"ds1803-100" , (kernel_ulong_t)&ds1803_cfg[DS1803_100 ] }, - {"ds3502" , (kernel_ulong_t)&ds1803_cfg[DS3502 ] }, + { .name ="ds1803-010" , .driver_data = (kernel_ulong_t)&ds1803_cfg[DS1803_010 ] }, + { .name ="ds1803-050" , .driver_data = (kernel_ulong_t)&ds1803_cfg[DS1803_050 ] }, + { .name ="ds1803-100" , .driver_data = (kernel_ulong_t)&ds1803_cfg[DS1803_100 ] }, + { .name ="ds3502" , .driver_data = (kernel_ulong_t)&ds1803_cfg[DS3502 ] }, { } };MODULE_DEVICE_TABLE (i2c, ds1803_id);drivers/iio/potentiometer/tpl0102.c +4
-4@@ -149,10 +149,10 @@ static int tpl0102_probe(struct i2c_client *client) }static const struct i2c_device_id tpl0102_id[] = { - {"cat5140-503" ,CAT5140_503 }, - {"cat5140-104" ,CAT5140_104 }, - {"tpl0102-104" ,TPL0102_104 }, - {"tpl0401-103" ,TPL0401_103 }, + { .name ="cat5140-503" , .driver_data =CAT5140_503 }, + { .name ="cat5140-104" , .driver_data =CAT5140_104 }, + { .name ="tpl0102-104" , .driver_data =TPL0102_104 }, + { .name ="tpl0401-103" , .driver_data =TPL0401_103 }, { } };MODULE_DEVICE_TABLE (i2c, tpl0102_id);drivers/iio/potentiostat/lmp91000.c +2
-2@@ -403,8 +403,8 @@ static const struct of_device_id lmp91000_of_match[] = {MODULE_DEVICE_TABLE (of, lmp91000_of_match);static const struct i2c_device_id lmp91000_id[] = { - {"lmp91000" }, - {"lmp91002" }, + { .name ="lmp91000" }, + { .name ="lmp91002" }, { } };MODULE_DEVICE_TABLE (i2c, lmp91000_id);drivers/iio/pressure/abp060mg.c +56
-34@@ -209,44 +209,66 @@ static int abp060mg_probe(struct i2c_client *client)static const struct i2c_device_id abp060mg_id_table[] = {/* mbar & kPa variants (abp060m [60 mbar] == abp006k [6 kPa]) */ /* gage: */ - {"abp060mg" ,ABP006KG }, {"abp006kg" ,ABP006KG }, - {"abp100mg" ,ABP010KG }, {"abp010kg" ,ABP010KG }, - {"abp160mg" ,ABP016KG }, {"abp016kg" ,ABP016KG }, - {"abp250mg" ,ABP025KG }, {"abp025kg" ,ABP025KG }, - {"abp400mg" ,ABP040KG }, {"abp040kg" ,ABP040KG }, - {"abp600mg" ,ABP060KG }, {"abp060kg" ,ABP060KG }, - {"abp001bg" ,ABP100KG }, {"abp100kg" ,ABP100KG }, - {"abp1_6bg" ,ABP160KG }, {"abp160kg" ,ABP160KG }, - {"abp2_5bg" ,ABP250KG }, {"abp250kg" ,ABP250KG }, - {"abp004bg" ,ABP400KG }, {"abp400kg" ,ABP400KG }, - {"abp006bg" ,ABP600KG }, {"abp600kg" ,ABP600KG }, - {"abp010bg" ,ABP001GG }, {"abp001gg" ,ABP001GG }, + { .name ="abp060mg" , .driver_data =ABP006KG }, + { .name ="abp006kg" , .driver_data =ABP006KG }, + { .name ="abp100mg" , .driver_data =ABP010KG }, + { .name ="abp010kg" , .driver_data =ABP010KG }, + { .name ="abp160mg" , .driver_data =ABP016KG }, + { .name ="abp016kg" , .driver_data =ABP016KG }, + { .name ="abp250mg" , .driver_data =ABP025KG }, + { .name ="abp025kg" , .driver_data =ABP025KG }, + { .name ="abp400mg" , .driver_data =ABP040KG }, + { .name ="abp040kg" , .driver_data =ABP040KG }, + { .name ="abp600mg" , .driver_data =ABP060KG }, + { .name ="abp060kg" , .driver_data =ABP060KG }, + { .name ="abp001bg" , .driver_data =ABP100KG }, + { .name ="abp100kg" , .driver_data =ABP100KG }, + { .name ="abp1_6bg" , .driver_data =ABP160KG }, + { .name ="abp160kg" , .driver_data =ABP160KG }, + { .name ="abp2_5bg" , .driver_data =ABP250KG }, + { .name ="abp250kg" , .driver_data =ABP250KG }, + { .name ="abp004bg" , .driver_data =ABP400KG }, + { .name ="abp400kg" , .driver_data =ABP400KG }, + { .name ="abp006bg" , .driver_data =ABP600KG }, + { .name ="abp600kg" , .driver_data =ABP600KG }, + { .name ="abp010bg" , .driver_data =ABP001GG }, + { .name ="abp001gg" , .driver_data =ABP001GG },/* differential: */ - {"abp060md" ,ABP006KD }, {"abp006kd" ,ABP006KD }, - {"abp100md" ,ABP010KD }, {"abp010kd" ,ABP010KD }, - {"abp160md" ,ABP016KD }, {"abp016kd" ,ABP016KD }, - {"abp250md" ,ABP025KD }, {"abp025kd" ,ABP025KD }, - {"abp400md" ,ABP040KD }, {"abp040kd" ,ABP040KD }, - {"abp600md" ,ABP060KD }, {"abp060kd" ,ABP060KD }, - {"abp001bd" ,ABP100KD }, {"abp100kd" ,ABP100KD }, - {"abp1_6bd" ,ABP160KD }, {"abp160kd" ,ABP160KD }, - {"abp2_5bd" ,ABP250KD }, {"abp250kd" ,ABP250KD }, - {"abp004bd" ,ABP400KD }, {"abp400kd" ,ABP400KD }, + { .name ="abp060md" , .driver_data =ABP006KD }, + { .name ="abp006kd" , .driver_data =ABP006KD }, + { .name ="abp100md" , .driver_data =ABP010KD }, + { .name ="abp010kd" , .driver_data =ABP010KD }, + { .name ="abp160md" , .driver_data =ABP016KD }, + { .name ="abp016kd" , .driver_data =ABP016KD }, + { .name ="abp250md" , .driver_data =ABP025KD }, + { .name ="abp025kd" , .driver_data =ABP025KD }, + { .name ="abp400md" , .driver_data =ABP040KD }, + { .name ="abp040kd" , .driver_data =ABP040KD }, + { .name ="abp600md" , .driver_data =ABP060KD }, + { .name ="abp060kd" , .driver_data =ABP060KD }, + { .name ="abp001bd" , .driver_data =ABP100KD }, + { .name ="abp100kd" , .driver_data =ABP100KD }, + { .name ="abp1_6bd" , .driver_data =ABP160KD }, + { .name ="abp160kd" , .driver_data =ABP160KD }, + { .name ="abp2_5bd" , .driver_data =ABP250KD }, + { .name ="abp250kd" , .driver_data =ABP250KD }, + { .name ="abp004bd" , .driver_data =ABP400KD }, + { .name ="abp400kd" , .driver_data =ABP400KD },/* psi variants */ /* gage: */ - {"abp001pg" ,ABP001PG }, - {"abp005pg" ,ABP005PG }, - {"abp015pg" ,ABP015PG }, - {"abp030pg" ,ABP030PG }, - {"abp060pg" ,ABP060PG }, - {"abp100pg" ,ABP100PG }, - {"abp150pg" ,ABP150PG }, + { .name ="abp001pg" , .driver_data =ABP001PG }, + { .name ="abp005pg" , .driver_data =ABP005PG }, + { .name ="abp015pg" , .driver_data =ABP015PG }, + { .name ="abp030pg" , .driver_data =ABP030PG }, + { .name ="abp060pg" , .driver_data =ABP060PG }, + { .name ="abp100pg" , .driver_data =ABP100PG }, + { .name ="abp150pg" , .driver_data =ABP150PG },/* differential: */ - {"abp001pd" ,ABP001PD }, - {"abp005pd" ,ABP005PD }, - {"abp015pd" ,ABP015PD }, - {"abp030pd" ,ABP030PD }, - {"abp060pd" ,ABP060PD }, + { .name ="abp001pd" , .driver_data =ABP001PD }, + { .name ="abp005pd" , .driver_data =ABP005PD }, + { .name ="abp015pd" , .driver_data =ABP015PD }, + { .name ="abp030pd" , .driver_data =ABP030PD }, + { .name ="abp060pd" , .driver_data =ABP060PD }, { } };MODULE_DEVICE_TABLE (i2c, abp060mg_id_table);drivers/iio/pressure/abp2030pa_i2c.c +1
-1@@ -69,7 +69,7 @@ static const struct of_device_id abp2_i2c_match[] = {MODULE_DEVICE_TABLE (of, abp2_i2c_match);static const struct i2c_device_id abp2_i2c_id[] = { - {"abp2030pa" }, + { .name ="abp2030pa" }, { } };MODULE_DEVICE_TABLE (i2c, abp2_i2c_id);drivers/iio/pressure/adp810.c +1
-1@@ -199,7 +199,7 @@ static int adp810_probe(struct i2c_client *client) }static const struct i2c_device_id adp810_id_table[] = { - {"adp810" }, + { .name ="adp810" }, { } };MODULE_DEVICE_TABLE (i2c, adp810_id_table);drivers/iio/pressure/bmp280-i2c.c +6
-6@@ -38,12 +38,12 @@ static const struct of_device_id bmp280_of_i2c_match[] = {MODULE_DEVICE_TABLE (of, bmp280_of_i2c_match);static const struct i2c_device_id bmp280_i2c_id[] = { - {"bmp085" , (kernel_ulong_t)&bmp085_chip_info }, - {"bmp180" , (kernel_ulong_t)&bmp180_chip_info }, - {"bmp280" , (kernel_ulong_t)&bmp280_chip_info }, - {"bme280" , (kernel_ulong_t)&bme280_chip_info }, - {"bmp380" , (kernel_ulong_t)&bmp380_chip_info }, - {"bmp580" , (kernel_ulong_t)&bmp580_chip_info }, + { .name ="bmp085" , .driver_data = (kernel_ulong_t)&bmp085_chip_info }, + { .name ="bmp180" , .driver_data = (kernel_ulong_t)&bmp180_chip_info }, + { .name ="bmp280" , .driver_data = (kernel_ulong_t)&bmp280_chip_info }, + { .name ="bme280" , .driver_data = (kernel_ulong_t)&bme280_chip_info }, + { .name ="bmp380" , .driver_data = (kernel_ulong_t)&bmp380_chip_info }, + { .name ="bmp580" , .driver_data = (kernel_ulong_t)&bmp580_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, bmp280_i2c_id);drivers/iio/pressure/dlhl60d.c +2
-2@@ -340,8 +340,8 @@ static const struct of_device_id dlh_of_match[] = {MODULE_DEVICE_TABLE (of, dlh_of_match);static const struct i2c_device_id dlh_id[] = { - {"dlhl60d" , (kernel_ulong_t)&dlhl60d_info }, - {"dlhl60g" , (kernel_ulong_t)&dlhl60g_info }, + { .name ="dlhl60d" , .driver_data = (kernel_ulong_t)&dlhl60d_info }, + { .name ="dlhl60g" , .driver_data = (kernel_ulong_t)&dlhl60g_info }, { } };MODULE_DEVICE_TABLE (i2c, dlh_id);drivers/iio/pressure/dps310.c +1
-1@@ -887,7 +887,7 @@ static int dps310_probe(struct i2c_client *client) }static const struct i2c_device_id dps310_id[] = { - {DPS310_DEV_NAME }, + { .name =DPS310_DEV_NAME }, { } };MODULE_DEVICE_TABLE (i2c, dps310_id);drivers/iio/pressure/hp03.c +1
-1@@ -266,7 +266,7 @@ static int hp03_probe(struct i2c_client *client) }static const struct i2c_device_id hp03_id[] = { - {"hp03" }, + { .name ="hp03" }, { } };MODULE_DEVICE_TABLE (i2c, hp03_id);drivers/iio/pressure/hp206c.c +1
-1@@ -395,7 +395,7 @@ static int hp206c_probe(struct i2c_client *client) }static const struct i2c_device_id hp206c_id[] = { - {"hp206c" }, + { .name ="hp206c" }, { } };MODULE_DEVICE_TABLE (i2c, hp206c_id);drivers/iio/pressure/hsc030pa_i2c.c +1
-1@@ -58,7 +58,7 @@ static const struct of_device_id hsc_i2c_match[] = {MODULE_DEVICE_TABLE (of, hsc_i2c_match);static const struct i2c_device_id hsc_i2c_id[] = { - {"hsc030pa" }, + { .name ="hsc030pa" }, { } };MODULE_DEVICE_TABLE (i2c, hsc_i2c_id);drivers/iio/pressure/icp10100.c +1
-1@@ -633,7 +633,7 @@ static const struct of_device_id icp10100_of_match[] = {MODULE_DEVICE_TABLE (of, icp10100_of_match);static const struct i2c_device_id icp10100_id[] = { - {"icp10100" }, + { .name ="icp10100" }, { } };MODULE_DEVICE_TABLE (i2c, icp10100_id);drivers/iio/pressure/mpl115_i2c.c +1
-1@@ -45,7 +45,7 @@ static int mpl115_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id mpl115_i2c_id[] = { - {"mpl115" }, + { .name ="mpl115" }, { } };MODULE_DEVICE_TABLE (i2c, mpl115_i2c_id);drivers/iio/pressure/mpl3115.c +1
-1@@ -783,7 +783,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(mpl3115_pm_ops, mpl3115_suspend, mpl3115_resume);static const struct i2c_device_id mpl3115_id[] = { - {"mpl3115" }, + { .name ="mpl3115" }, { } };MODULE_DEVICE_TABLE (i2c, mpl3115_id);drivers/iio/pressure/mprls0025pa_i2c.c +1
-1@@ -69,7 +69,7 @@ static const struct of_device_id mpr_i2c_match[] = {MODULE_DEVICE_TABLE (of, mpr_i2c_match);static const struct i2c_device_id mpr_i2c_id[] = { - {"mprls0025pa" }, + { .name ="mprls0025pa" }, { } };MODULE_DEVICE_TABLE (i2c, mpr_i2c_id);drivers/iio/pressure/ms5611_i2c.c +2
-2@@ -113,8 +113,8 @@ static const struct of_device_id ms5611_i2c_matches[] = {MODULE_DEVICE_TABLE (of, ms5611_i2c_matches);static const struct i2c_device_id ms5611_id[] = { - {"ms5611" ,MS5611 }, - {"ms5607" ,MS5607 }, + { .name ="ms5611" , .driver_data =MS5611 }, + { .name ="ms5607" , .driver_data =MS5607 }, { } };MODULE_DEVICE_TABLE (i2c, ms5611_id);drivers/iio/pressure/ms5637.c +4
-4@@ -215,10 +215,10 @@ static const struct ms_tp_data ms8607_data = { };static const struct i2c_device_id ms5637_id[] = { - {"ms5637" , (kernel_ulong_t)&ms5637_data }, - {"ms5805" , (kernel_ulong_t)&ms5805_data }, - {"ms5837" , (kernel_ulong_t)&ms5837_data }, - {"ms8607-temppressure" , (kernel_ulong_t)&ms8607_data }, + { .name ="ms5637" , .driver_data = (kernel_ulong_t)&ms5637_data }, + { .name ="ms5805" , .driver_data = (kernel_ulong_t)&ms5805_data }, + { .name ="ms5837" , .driver_data = (kernel_ulong_t)&ms5837_data }, + { .name ="ms8607-temppressure" , .driver_data = (kernel_ulong_t)&ms8607_data }, { } };MODULE_DEVICE_TABLE (i2c, ms5637_id);drivers/iio/pressure/rohm-bm1390.c +1
-1@@ -888,7 +888,7 @@ static const struct of_device_id bm1390_of_match[] = {MODULE_DEVICE_TABLE (of, bm1390_of_match);static const struct i2c_device_id bm1390_id[] = { - {"bm1390glv-z" , }, + { .name ="bm1390glv-z" }, { } };MODULE_DEVICE_TABLE (i2c, bm1390_id);drivers/iio/pressure/sdp500.c +1
-1@@ -130,7 +130,7 @@ static int sdp500_probe(struct i2c_client *client) }static const struct i2c_device_id sdp500_id[] = { - {"sdp500" }, + { .name ="sdp500" }, { } };MODULE_DEVICE_TABLE (i2c, sdp500_id);drivers/iio/pressure/st_pressure_i2c.c +8
-8@@ -61,14 +61,14 @@ static const struct acpi_device_id st_press_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, st_press_acpi_match);static const struct i2c_device_id st_press_id_table[] = { - {LPS001WP_PRESS_DEV_NAME ,LPS001WP }, - {LPS25H_PRESS_DEV_NAME ,LPS25H }, - {LPS331AP_PRESS_DEV_NAME ,LPS331AP }, - {LPS22HB_PRESS_DEV_NAME ,LPS22HB }, - {LPS33HW_PRESS_DEV_NAME ,LPS33HW }, - {LPS35HW_PRESS_DEV_NAME ,LPS35HW }, - {LPS22HH_PRESS_DEV_NAME ,LPS22HH }, - {LPS22DF_PRESS_DEV_NAME ,LPS22DF }, + { .name =LPS001WP_PRESS_DEV_NAME , .driver_data =LPS001WP }, + { .name =LPS25H_PRESS_DEV_NAME , .driver_data =LPS25H }, + { .name =LPS331AP_PRESS_DEV_NAME , .driver_data =LPS331AP }, + { .name =LPS22HB_PRESS_DEV_NAME , .driver_data =LPS22HB }, + { .name =LPS33HW_PRESS_DEV_NAME , .driver_data =LPS33HW }, + { .name =LPS35HW_PRESS_DEV_NAME , .driver_data =LPS35HW }, + { .name =LPS22HH_PRESS_DEV_NAME , .driver_data =LPS22HH }, + { .name =LPS22DF_PRESS_DEV_NAME , .driver_data =LPS22DF }, { } };MODULE_DEVICE_TABLE (i2c, st_press_id_table);drivers/iio/pressure/t5403.c +1
-1@@ -251,7 +251,7 @@ static int t5403_probe(struct i2c_client *client) }static const struct i2c_device_id t5403_id[] = { - {"t5403" }, + { .name ="t5403" }, { } };MODULE_DEVICE_TABLE (i2c, t5403_id);drivers/iio/pressure/zpa2326_i2c.c +1
-1@@ -58,7 +58,7 @@ static void zpa2326_remove_i2c(struct i2c_client *client) }static const struct i2c_device_id zpa2326_i2c_ids[] = { - {"zpa2326" }, + { .name ="zpa2326" }, { } };MODULE_DEVICE_TABLE (i2c, zpa2326_i2c_ids);drivers/iio/proximity/aw96103.c +2
-2@@ -825,8 +825,8 @@ static const struct of_device_id aw96103_dt_match[] = {MODULE_DEVICE_TABLE (of, aw96103_dt_match);static const struct i2c_device_id aw96103_i2c_id[] = { - {"aw96103" , (kernel_ulong_t)&aw_chip_info_tbl[AW96103_VAL ] }, - {"aw96105" , (kernel_ulong_t)&aw_chip_info_tbl[AW96105_VAL ] }, + { .name ="aw96103" , .driver_data = (kernel_ulong_t)&aw_chip_info_tbl[AW96103_VAL ] }, + { .name ="aw96105" , .driver_data = (kernel_ulong_t)&aw_chip_info_tbl[AW96105_VAL ] }, { } };MODULE_DEVICE_TABLE (i2c, aw96103_i2c_id);drivers/iio/proximity/hx9023s.c +1
-1@@ -1199,7 +1199,7 @@ static const struct of_device_id hx9023s_of_match[] = {MODULE_DEVICE_TABLE (of, hx9023s_of_match);static const struct i2c_device_id hx9023s_id[] = { - {"hx9023s" }, + { .name ="hx9023s" }, { } };MODULE_DEVICE_TABLE (i2c, hx9023s_id);drivers/iio/proximity/isl29501.c +1
-1@@ -995,7 +995,7 @@ static int isl29501_probe(struct i2c_client *client) }static const struct i2c_device_id isl29501_id[] = { - {"isl29501" }, + { .name ="isl29501" }, { } };drivers/iio/proximity/mb1232.c +7
-7@@ -244,13 +244,13 @@ static const struct of_device_id of_mb1232_match[] = {MODULE_DEVICE_TABLE (of, of_mb1232_match);static const struct i2c_device_id mb1232_id[] = { - {"maxbotix-mb1202" , }, - {"maxbotix-mb1212" , }, - {"maxbotix-mb1222" , }, - {"maxbotix-mb1232" , }, - {"maxbotix-mb1242" , }, - {"maxbotix-mb7040" , }, - {"maxbotix-mb7137" , }, + { .name ="maxbotix-mb1202" }, + { .name ="maxbotix-mb1212" }, + { .name ="maxbotix-mb1222" }, + { .name ="maxbotix-mb1232" }, + { .name ="maxbotix-mb1242" }, + { .name ="maxbotix-mb7040" }, + { .name ="maxbotix-mb7137" }, { } };MODULE_DEVICE_TABLE (i2c, mb1232_id);drivers/iio/proximity/pulsedlight-lidar-lite-v2.c +2
-2@@ -319,8 +319,8 @@ static void lidar_remove(struct i2c_client *client) }static const struct i2c_device_id lidar_id[] = { - {"lidar-lite-v2" }, - {"lidar-lite-v3" }, + { .name ="lidar-lite-v2" }, + { .name ="lidar-lite-v3" }, { } };MODULE_DEVICE_TABLE (i2c, lidar_id);drivers/iio/proximity/rfd77402.c +1
-1@@ -433,7 +433,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(rfd77402_pm_ops, rfd77402_suspend, rfd77402_resume);static const struct i2c_device_id rfd77402_id[] = { - {"rfd77402" }, + { .name ="rfd77402" }, { } };MODULE_DEVICE_TABLE (i2c, rfd77402_id);drivers/iio/proximity/srf08.c +3
-3@@ -533,9 +533,9 @@ static const struct of_device_id of_srf08_match[] = {MODULE_DEVICE_TABLE (of, of_srf08_match);static const struct i2c_device_id srf08_id[] = { - {"srf02" ,SRF02 }, - {"srf08" ,SRF08 }, - {"srf10" ,SRF10 }, + { .name ="srf02" , .driver_data =SRF02 }, + { .name ="srf08" , .driver_data =SRF08 }, + { .name ="srf10" , .driver_data =SRF10 }, { } };MODULE_DEVICE_TABLE (i2c, srf08_id);drivers/iio/proximity/sx9310.c +2
-2@@ -1007,8 +1007,8 @@ static const struct of_device_id sx9310_of_match[] = {MODULE_DEVICE_TABLE (of, sx9310_of_match);static const struct i2c_device_id sx9310_id[] = { - {"sx9310" , (kernel_ulong_t)&sx9310_info }, - {"sx9311" , (kernel_ulong_t)&sx9311_info }, + { .name ="sx9310" , .driver_data = (kernel_ulong_t)&sx9310_info }, + { .name ="sx9311" , .driver_data = (kernel_ulong_t)&sx9311_info }, { } };MODULE_DEVICE_TABLE (i2c, sx9310_id);drivers/iio/proximity/sx9500.c +1
-1@@ -1025,7 +1025,7 @@ static const struct of_device_id sx9500_of_match[] = {MODULE_DEVICE_TABLE (of, sx9500_of_match);static const struct i2c_device_id sx9500_id[] = { - {"sx9500" }, + { .name ="sx9500" }, { } };MODULE_DEVICE_TABLE (i2c, sx9500_id);drivers/iio/proximity/vl53l0x-i2c.c +1
-1@@ -393,7 +393,7 @@ static int vl53l0x_probe(struct i2c_client *client) }static const struct i2c_device_id vl53l0x_id[] = { - {"vl53l0x" }, + { .name ="vl53l0x" }, { } };MODULE_DEVICE_TABLE (i2c, vl53l0x_id);drivers/iio/proximity/vl53l1x-i2c.c +1
-1@@ -730,7 +730,7 @@ static int vl53l1x_probe(struct i2c_client *client) }static const struct i2c_device_id vl53l1x_id[] = { - {"vl53l1x" }, + { .name ="vl53l1x" }, { } };MODULE_DEVICE_TABLE (i2c, vl53l1x_id);drivers/iio/temperature/max30208.c +1
-1@@ -218,7 +218,7 @@ static int max30208_probe(struct i2c_client *i2c) }static const struct i2c_device_id max30208_id_table[] = { - {"max30208" }, + { .name ="max30208" }, { } };MODULE_DEVICE_TABLE (i2c, max30208_id_table);drivers/iio/temperature/mcp9600.c +2
-2@@ -551,8 +551,8 @@ static const struct mcp_chip_info mcp9601_chip_info = { };static const struct i2c_device_id mcp9600_id[] = { - {"mcp9600" , .driver_data = (kernel_ulong_t)&mcp9600_chip_info }, - {"mcp9601" , .driver_data = (kernel_ulong_t)&mcp9601_chip_info }, + { .name ="mcp9600" , .driver_data = (kernel_ulong_t)&mcp9600_chip_info }, + { .name ="mcp9601" , .driver_data = (kernel_ulong_t)&mcp9601_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, mcp9600_id);drivers/iio/temperature/mlx90614.c +2
-2@@ -699,8 +699,8 @@ static const struct mlx_chip_info mlx90615_chip_info = { };static const struct i2c_device_id mlx90614_id[] = { - {"mlx90614" , .driver_data = (kernel_ulong_t)&mlx90614_chip_info }, - {"mlx90615" , .driver_data = (kernel_ulong_t)&mlx90615_chip_info }, + { .name ="mlx90614" , .driver_data = (kernel_ulong_t)&mlx90614_chip_info }, + { .name ="mlx90615" , .driver_data = (kernel_ulong_t)&mlx90615_chip_info }, { } };MODULE_DEVICE_TABLE (i2c, mlx90614_id);drivers/iio/temperature/mlx90632.c +1
-1@@ -1276,7 +1276,7 @@ static int mlx90632_probe(struct i2c_client *client) }static const struct i2c_device_id mlx90632_id[] = { - {"mlx90632" }, + { .name ="mlx90632" }, { } };MODULE_DEVICE_TABLE (i2c, mlx90632_id);drivers/iio/temperature/mlx90635.c +1
-1@@ -1026,7 +1026,7 @@ static int mlx90635_probe(struct i2c_client *client) }static const struct i2c_device_id mlx90635_id[] = { - {"mlx90635" }, + { .name ="mlx90635" }, { } };MODULE_DEVICE_TABLE (i2c, mlx90635_id);drivers/iio/temperature/tmp006.c +1
-1@@ -391,7 +391,7 @@ static const struct of_device_id tmp006_of_match[] = {MODULE_DEVICE_TABLE (of, tmp006_of_match);static const struct i2c_device_id tmp006_id[] = { - {"tmp006" }, + { .name ="tmp006" }, { } };MODULE_DEVICE_TABLE (i2c, tmp006_id);drivers/iio/temperature/tmp007.c +1
-1@@ -563,7 +563,7 @@ static const struct of_device_id tmp007_of_match[] = {MODULE_DEVICE_TABLE (of, tmp007_of_match);static const struct i2c_device_id tmp007_id[] = { - {"tmp007" }, + { .name ="tmp007" }, { } };MODULE_DEVICE_TABLE (i2c, tmp007_id);drivers/iio/temperature/tmp117.c +2
-2@@ -209,8 +209,8 @@ static const struct of_device_id tmp117_of_match[] = {MODULE_DEVICE_TABLE (of, tmp117_of_match);static const struct i2c_device_id tmp117_id[] = { - {"tmp116" , (kernel_ulong_t)&tmp116_channels_info }, - {"tmp117" , (kernel_ulong_t)&tmp117_channels_info }, + { .name ="tmp116" , .driver_data = (kernel_ulong_t)&tmp116_channels_info }, + { .name ="tmp117" , .driver_data = (kernel_ulong_t)&tmp117_channels_info }, { } };MODULE_DEVICE_TABLE (i2c, tmp117_id);drivers/iio/temperature/tsys01.c +1
-1@@ -206,7 +206,7 @@ static int tsys01_i2c_probe(struct i2c_client *client) }static const struct i2c_device_id tsys01_id[] = { - {"tsys01" }, + { .name ="tsys01" }, { } };MODULE_DEVICE_TABLE (i2c, tsys01_id);drivers/iio/temperature/tsys02d.c +1
-1@@ -168,7 +168,7 @@ static int tsys02d_probe(struct i2c_client *client) }static const struct i2c_device_id tsys02d_id[] = { - {"tsys02d" }, + { .name ="tsys02d" }, { } };MODULE_DEVICE_TABLE (i2c, tsys02d_id);
Re: [PATCH v2 7/7] iio: Initialize i2c_device_id arrays using member names
[Dropped one recipient who's email address isn't valid any more]
Hello Jonathan,
Quoted 15 lines · Jonathan Cameron
Quoted 12 lines · On Tue, 19 May 2026 10:13:09 +0200 Uwe Kleine-König (The Capable Hub)…
While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition.
The mentioned robustness is relevant for a planned change to struct
i2c_device_idthat replaces .driver_data by an anonymous union.This patch doesn't modify the compiled arrays, only their representation in source form benefits. The former was confirmed with x86 and arm64 builds.
Quoted 8 lines
Quoted 1 line
Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>I'd prefer it split into cases you care about (not just name) and the name only ones. That is unless I'm missing some potential change that breaks initializing just the first element and hence not the union you plan to add.
It's a lot of churn and the name one isn't enabling anything new unless I'm missing something.
Today all hunks are about using named initializers to improve readability, so the split into only .name vs. .name+.driver_data feels very artificial to me. But if you think that's the compromise to use, I'll adapt.
Quoted 3 lines
We also get fixes in these annoyingly often so chances are this will mess up backports. Might even be worth splitting it up into directories just to reduce that backport mess.
In my opinion this is the reason to do this kind of cleanup with one patch per driver. This doesn't only make backports easier, it also allows to better record who reviewed and acked what, it reduces merge conflicts (because if one driver is updated in your tree already since my base, with one subsystem patch you get a merge conflict which makes the whole patch unapplicable, with one patch per driver only one out of (here) 208 fails).
But that isn't popular with most subsystem maintainers and so I went with one patch per subsystem. 🤷
Quoted 2 lines
Also, have you done a checkpatch check for this? Nice to not being fighting it for ever.
No, but that's on my agenda.
Best regards
Uwe
Jonathan Cameron
maintainerRe: [PATCH v2 7/7] iio: Initialize i2c_device_id arrays using member names
Quoted 46 lines · On Tue, 19 May 2026 21:51:20 +0200 Uwe Kleine-König (The Capable Hub)…
[Dropped one recipient who's email address isn't valid any more]
Hello Jonathan,
Quoted 15 lines · Jonathan Cameron
Quoted 12 lines · On Tue, 19 May 2026 10:13:09 +0200 Uwe Kleine-König (The Capable Hub)…
While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition.
The mentioned robustness is relevant for a planned change to struct
i2c_device_idthat replaces .driver_data by an anonymous union.This patch doesn't modify the compiled arrays, only their representation in source form benefits. The former was confirmed with x86 and arm64 builds.
Quoted 8 lines
Quoted 1 line
Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>I'd prefer it split into cases you care about (not just name) and the name only ones. That is unless I'm missing some potential change that breaks initializing just the first element and hence not the union you plan to add.
It's a lot of churn and the name one isn't enabling anything new unless I'm missing something.
Today all hunks are about using named initializers to improve readability, so the split into only .name vs. .name+.driver_data feels very artificial to me. But if you think that's the compromise to use, I'll adapt.
Quoted 3 lines
We also get fixes in these annoyingly often so chances are this will mess up backports. Might even be worth splitting it up into directories just to reduce that backport mess.
In my opinion this is the reason to do this kind of cleanup with one patch per driver. This doesn't only make backports easier, it also allows to better record who reviewed and acked what, it reduces merge conflicts (because if one driver is updated in your tree already since my base, with one subsystem patch you get a merge conflict which makes the whole patch unapplicable, with one patch per driver only one out of (here) 208 fails).
Quoted 2 lines
But that isn't popular with most subsystem maintainers and so I went with one patch per subsystem. 🤷
Meh. This is going to be painful whatever, so to have it as fresh as possible I'll pick it up now as one giant patch.
Note there are already conflicts... Fixed up:light/tsl2772.c (a couple more entries) light/vcnl4000.c (data is now all pointers, not enum values).
Bunch of line changes in other drivers, but otherwise went in fine.
There are a few new instances in tree, though from a quick glance maybe no i2c ones. Since you sent the first series I've been looking out for this in reviews, but some stuff was a already queued.
Anyhow, new ones can be dealt with in follow up patches.
Thanks,
Jonathan
Quoted 8 lines
Quoted 3 lines
Also, have you done a checkpatch check for this? Nice to not being fighting it for ever.
No, but that's on my agenda.
Best regards
Uwe
Re: [PATCH v2 7/7] iio: Initialize i2c_device_id arrays using member names
Hello Jonathan,
Quoted 44 lines · Jonathan Cameron
Quoted 42 lines · On Tue, 19 May 2026 21:51:20 +0200 Uwe Kleine-König (The Capable Hub)…
Quoted 15 lines · Jonathan Cameron
Quoted 12 lines · On Tue, 19 May 2026 10:13:09 +0200 Uwe Kleine-König (The Capable Hub)…
While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition.
The mentioned robustness is relevant for a planned change to struct
i2c_device_idthat replaces .driver_data by an anonymous union.This patch doesn't modify the compiled arrays, only their representation in source form benefits. The former was confirmed with x86 and arm64 builds.
Quoted 8 lines
Quoted 1 line
Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>I'd prefer it split into cases you care about (not just name) and the name only ones. That is unless I'm missing some potential change that breaks initializing just the first element and hence not the union you plan to add.
It's a lot of churn and the name one isn't enabling anything new unless I'm missing something.
Today all hunks are about using named initializers to improve readability, so the split into only .name vs. .name+.driver_data feels very artificial to me. But if you think that's the compromise to use, I'll adapt.
Quoted 3 lines
We also get fixes in these annoyingly often so chances are this will mess up backports. Might even be worth splitting it up into directories just to reduce that backport mess.
In my opinion this is the reason to do this kind of cleanup with one patch per driver. This doesn't only make backports easier, it also allows to better record who reviewed and acked what, it reduces merge conflicts (because if one driver is updated in your tree already since my base, with one subsystem patch you get a merge conflict which makes the whole patch unapplicable, with one patch per driver only one out of (here) 208 fails).
Quoted 5 lines
Quoted 2 lines
But that isn't popular with most subsystem maintainers and so I went with one patch per subsystem. 🤷
Meh. This is going to be painful whatever, so to have it as fresh as possible I'll pick it up now as one giant patch.
\o/, thanks.
Quoted 5 lines
Note there are already conflicts... Fixed up:
light/tsl2772.c(a couple more entries)light/vcnl4000.c(data is now all pointers, not enum values).Bunch of line changes in other drivers, but otherwise went in fine.
I reproduced the issue, my conflict resolution (on top of next-20260521) looks as follows:
drivers/iio/light/tsl2772.c +0 -0
@@@ -1900,19 -1888,17 +1900,19 @@@ static int tsl2772_resume(struct devic }static const struct i2c_device_id tsl2772_idtable[] = { - {"tsl2571" , tsl2571 }, - {"tsl2671" , tsl2671 }, - {"tmd2671" , tmd2671 }, - {"tsl2771" , tsl2771 }, - {"tmd2771" , tmd2771 }, - {"tsl2572" , tsl2572 }, - {"tsl2672" , tsl2672 }, - {"tmd2672" , tmd2672 }, - {"tsl2772" , tsl2772 }, - {"tmd2772" , tmd2772 }, - {"apds9900" , apds9900 }, - {"apds9901" , apds9900 }, - {"apds9930" , apds9930 }, + { .name ="tsl2571" , .driver_data = tsl2571 }, + { .name ="tsl2671" , .driver_data = tsl2671 }, + { .name ="tmd2671" , .driver_data = tmd2671 }, + { .name ="tsl2771" , .driver_data = tsl2771 }, + { .name ="tmd2771" , .driver_data = tmd2771 }, + { .name ="tsl2572" , .driver_data = tsl2572 }, + { .name ="tsl2672" , .driver_data = tsl2672 }, + { .name ="tmd2672" , .driver_data = tmd2672 }, + { .name ="tsl2772" , .driver_data = tsl2772 }, + { .name ="tmd2772" , .driver_data = tmd2772 }, ++ { .name = "apds9900", .driver_data = apds9900 }, ++ { .name = "apds9901", .driver_data = apds9900 }, + { .name ="apds9930" , .driver_data = apds9930 }, { } };
drivers/iio/light/vcnl4000.c +0 -0
@@@ -2039,18 -2142,6 +2039,18 @@@ static int vcnl4000_runtime_resume(stru static DEFINE_RUNTIME_DEV_PM_OPS(vcnl4000_pm_ops, vcnl4000_runtime_suspend, vcnl4000_runtime_resume, NULL); +static const struct i2c_device_id vcnl4000_id[] = { - {"cm36672p" , (kernel_ulong_t)&cm36672p_spec }, - {"cm36686" , (kernel_ulong_t)&vcnl4040_spec }, - {"vcnl4000" , (kernel_ulong_t)&vcnl4000_spec }, - {"vcnl4010" , (kernel_ulong_t)&vcnl4010_spec }, - {"vcnl4020" , (kernel_ulong_t)&vcnl4010_spec }, - {"vcnl4040" , (kernel_ulong_t)&vcnl4040_spec }, - {"vcnl4200" , (kernel_ulong_t)&vcnl4200_spec }, ++ { .name = "cm36672p", .driver_data = (kernel_ulong_t)&cm36672p_spec }, ++ { .name = "cm36686", .driver_data = (kernel_ulong_t)&vcnl4040_spec }, ++ { .name = "vcnl4000", .driver_data = (kernel_ulong_t)&vcnl4000_spec }, ++ { .name = "vcnl4010", .driver_data = (kernel_ulong_t)&vcnl4010_spec }, ++ { .name = "vcnl4020", .driver_data = (kernel_ulong_t)&vcnl4010_spec }, ++ { .name = "vcnl4040", .driver_data = (kernel_ulong_t)&vcnl4040_spec }, ++ { .name = "vcnl4200", .driver_data = (kernel_ulong_t)&vcnl4200_spec }, + { } +}; +MODULE_DEVICE_TABLE (i2c, vcnl4000_id); + static struct i2c_driver vcnl4000_driver = { .driver = { .name =VCNL4000_DRV_NAME ,
drivers/iio/adc/rtq6056.c +2 -2
@@ -872,8 +872,8 @@ static const struct richtek_dev_data rtq6059_devdata = { };static const struct i2c_device_id rtq6056_id[] = { - {"rtq6056" , (kernel_ulong_t)&rtq6056_devdata }, - {"rtq6059" , (kernel_ulong_t)&rtq6059_devdata }, + { .name ="rtq6056" , .driver_data = (kernel_ulong_t)&rtq6056_devdata }, + { .name ="rtq6059" , .driver_data = (kernel_ulong_t)&rtq6059_devdata }, { } };MODULE_DEVICE_TABLE (i2c, rtq6056_id);
The last hunk was made necessary by commit ce80292ead5bb42b50a6b63e44fd95c0edf9d334. And I'm pretty sure that the following is possible on top:
static const struct of_device_id rtq6056_device_match[] = {
- { .compatible = "richtek,rtq6056", .data = &rtq6056_devdata },
- { .compatible = "richtek,rtq6059", .data = &rtq6059_devdata },
+ { .compatible = "richtek,rtq6056" },
+ { .compatible = "richtek,rtq6059" },
{ }
};
MODULE_DEVICE_TABLE(of, rtq6056_device_match);
Quoted 5 lines
There are a few new instances in tree, though from a quick glance maybe no i2c ones. Since you sent the first series I've been looking out for this in reviews, but some stuff was a already queued.
Anyhow, new ones can be dealt with in follow up patches.
There will more some more drivers I missed in other subsystems, so I'll have to reiterate anyhow. If you catch drivers before going in, that's great, but it's not a problem if you miss a few.
Thanks for your cooperation,
Uwe
Jonathan Cameron
maintainerRe: [PATCH v2 7/7] iio: Initialize i2c_device_id arrays using member names
Quoted 88 lines · On Thu, 21 May 2026 15:20:09 +0200 Uwe Kleine-König (The Capable Hub)…
Hello Jonathan,
Quoted 44 lines · Jonathan Cameron
Quoted 42 lines · On Tue, 19 May 2026 21:51:20 +0200 Uwe Kleine-König (The Capable Hub)…
Quoted 15 lines · Jonathan Cameron
Quoted 12 lines · On Tue, 19 May 2026 10:13:09 +0200 Uwe Kleine-König (The Capable Hub)…
While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition.
The mentioned robustness is relevant for a planned change to struct
i2c_device_idthat replaces .driver_data by an anonymous union.This patch doesn't modify the compiled arrays, only their representation in source form benefits. The former was confirmed with x86 and arm64 builds.
Quoted 8 lines
Quoted 1 line
Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>I'd prefer it split into cases you care about (not just name) and the name only ones. That is unless I'm missing some potential change that breaks initializing just the first element and hence not the union you plan to add.
It's a lot of churn and the name one isn't enabling anything new unless I'm missing something.
Today all hunks are about using named initializers to improve readability, so the split into only .name vs. .name+.driver_data feels very artificial to me. But if you think that's the compromise to use, I'll adapt.
Quoted 3 lines
We also get fixes in these annoyingly often so chances are this will mess up backports. Might even be worth splitting it up into directories just to reduce that backport mess.
In my opinion this is the reason to do this kind of cleanup with one patch per driver. This doesn't only make backports easier, it also allows to better record who reviewed and acked what, it reduces merge conflicts (because if one driver is updated in your tree already since my base, with one subsystem patch you get a merge conflict which makes the whole patch unapplicable, with one patch per driver only one out of (here) 208 fails).
Quoted 5 lines
Quoted 2 lines
But that isn't popular with most subsystem maintainers and so I went with one patch per subsystem. 🤷
Meh. This is going to be painful whatever, so to have it as fresh as possible I'll pick it up now as one giant patch.
\o/, thanks.
Quoted 5 lines
Note there are already conflicts... Fixed up:
light/tsl2772.c(a couple more entries)light/vcnl4000.c(data is now all pointers, not enum values).Bunch of line changes in other drivers, but otherwise went in fine.
I reproduced the issue, my conflict resolution (on top of next-20260521) looks as follows:
drivers/iio/adc/rtq6056.c +2
-2@@ -872,8 +872,8 @@ static const struct richtek_dev_data rtq6059_devdata = { };static const struct i2c_device_id rtq6056_id[] = { - {"rtq6056" , (kernel_ulong_t)&rtq6056_devdata }, - {"rtq6059" , (kernel_ulong_t)&rtq6059_devdata }, + { .name ="rtq6056" , .driver_data = (kernel_ulong_t)&rtq6056_devdata }, + { .name ="rtq6059" , .driver_data = (kernel_ulong_t)&rtq6059_devdata }, { } };MODULE_DEVICE_TABLE (i2c, rtq6056_id);The last hunk was made necessary by commit
ce80292ead5bb42b50a6b63e44fd95c0edf9d334. And I'm pretty sure that the following is possible on top:static const struct
of_device_idrtq6056_device_match[] = {
drivers/iio/adc/rtq6056.c
Quoted 7 lines
drivers/iio/adc/rtq6056.c +2
-2- { .compatible = "richtek,rtq6056", .data = &rtq6056_devdata }, - { .compatible = "richtek,rtq6059", .data = &rtq6059_devdata }, + { .compatible = "richtek,rtq6056" }, + { .compatible = "richtek,rtq6059" }, { } };MODULE_DEVICE_TABLE (of, rtq6056_device_match);
First two match what I had.
For the rtq one lets do it as a separate patch along with any other stragglers.
Quoted 5 lines
Quoted 5 lines
There are a few new instances in tree, though from a quick glance maybe no i2c ones. Since you sent the first series I've been looking out for this in reviews, but some stuff was a already queued.
Quoted 7 lines
Quoted 1 line
Anyhow, new ones can be dealt with in follow up patches.
There will more some more drivers I missed in other subsystems, so I'll have to reiterate anyhow. If you catch drivers before going in, that's great, but it's not a problem if you miss a few.
Thanks for your cooperation,
Thanks for doing the hard work ;)
J
Quoted 1 line
Uwe