]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iio: Initialize i2c_device_id arrays using member names
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Tue, 19 May 2026 08:13:09 +0000 (10:13 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 10:01:46 +0000 (11:01 +0100)
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.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Reviewed-by: Siratul Islam <email@sirat.me>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
208 files changed:
drivers/iio/accel/adxl345_i2c.c
drivers/iio/accel/adxl355_i2c.c
drivers/iio/accel/adxl367_i2c.c
drivers/iio/accel/adxl372_i2c.c
drivers/iio/accel/adxl380_i2c.c
drivers/iio/accel/bma180.c
drivers/iio/accel/bma220_i2c.c
drivers/iio/accel/bma400_i2c.c
drivers/iio/accel/bmi088-accel-i2c.c
drivers/iio/accel/da280.c
drivers/iio/accel/da311.c
drivers/iio/accel/dmard06.c
drivers/iio/accel/dmard09.c
drivers/iio/accel/dmard10.c
drivers/iio/accel/fxls8962af-i2c.c
drivers/iio/accel/kxcjk-1013.c
drivers/iio/accel/kxsd9-i2c.c
drivers/iio/accel/mc3230.c
drivers/iio/accel/mma7455_i2c.c
drivers/iio/accel/mma7660.c
drivers/iio/accel/mma8452.c
drivers/iio/accel/mma9551.c
drivers/iio/accel/mma9553.c
drivers/iio/accel/mxc4005.c
drivers/iio/accel/mxc6255.c
drivers/iio/accel/st_accel_i2c.c
drivers/iio/accel/stk8312.c
drivers/iio/accel/stk8ba50.c
drivers/iio/adc/ad7291.c
drivers/iio/adc/ad799x.c
drivers/iio/adc/gehc-pmc-adc.c
drivers/iio/adc/ina2xx-adc.c
drivers/iio/adc/ltc2309.c
drivers/iio/adc/ltc2471.c
drivers/iio/adc/ltc2485.c
drivers/iio/adc/ltc2497.c
drivers/iio/adc/max34408.c
drivers/iio/adc/mcp3422.c
drivers/iio/adc/nau7802.c
drivers/iio/adc/rohm-bd79124.c
drivers/iio/adc/ti-adc081c.c
drivers/iio/adc/ti-ads1015.c
drivers/iio/adc/ti-ads1100.c
drivers/iio/adc/ti-ads1119.c
drivers/iio/adc/ti-ads7138.c
drivers/iio/adc/ti-ads7924.c
drivers/iio/cdc/ad7150.c
drivers/iio/cdc/ad7746.c
drivers/iio/chemical/ags02ma.c
drivers/iio/chemical/ams-iaq-core.c
drivers/iio/chemical/atlas-ezo-sensor.c
drivers/iio/chemical/atlas-sensor.c
drivers/iio/chemical/bme680_i2c.c
drivers/iio/chemical/ccs811.c
drivers/iio/chemical/ens160_i2c.c
drivers/iio/chemical/sgp30.c
drivers/iio/chemical/sgp40.c
drivers/iio/chemical/sps30_i2c.c
drivers/iio/chemical/vz89x.c
drivers/iio/dac/ad5064.c
drivers/iio/dac/ad5380.c
drivers/iio/dac/ad5446-i2c.c
drivers/iio/dac/ad5696-i2c.c
drivers/iio/dac/ds4424.c
drivers/iio/dac/m62332.c
drivers/iio/dac/max517.c
drivers/iio/dac/mcp4725.c
drivers/iio/dac/mcp4728.c
drivers/iio/dac/mcp47feb02.c
drivers/iio/dac/ti-dac5571.c
drivers/iio/gyro/bmg160_i2c.c
drivers/iio/gyro/fxas21002c_i2c.c
drivers/iio/gyro/itg3200_core.c
drivers/iio/gyro/mpu3050-i2c.c
drivers/iio/gyro/st_gyro_i2c.c
drivers/iio/health/afe4404.c
drivers/iio/health/max30100.c
drivers/iio/health/max30102.c
drivers/iio/humidity/am2315.c
drivers/iio/humidity/ens210.c
drivers/iio/humidity/hdc100x.c
drivers/iio/humidity/hdc2010.c
drivers/iio/humidity/hdc3020.c
drivers/iio/humidity/hts221_i2c.c
drivers/iio/humidity/htu21.c
drivers/iio/humidity/si7005.c
drivers/iio/humidity/si7020.c
drivers/iio/imu/bmi160/bmi160_i2c.c
drivers/iio/imu/bmi270/bmi270_i2c.c
drivers/iio/imu/bmi323/bmi323_i2c.c
drivers/iio/imu/bno055/bno055_i2c.c
drivers/iio/imu/fxos8700_i2c.c
drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c
drivers/iio/imu/inv_icm45600/inv_icm45600_i2c.c
drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c
drivers/iio/imu/kmx61.c
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c
drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c
drivers/iio/light/adjd_s311.c
drivers/iio/light/adux1020.c
drivers/iio/light/al3000a.c
drivers/iio/light/al3010.c
drivers/iio/light/al3320a.c
drivers/iio/light/apds9300.c
drivers/iio/light/apds9960.c
drivers/iio/light/as73211.c
drivers/iio/light/bh1745.c
drivers/iio/light/bh1750.c
drivers/iio/light/bh1780.c
drivers/iio/light/cm3232.c
drivers/iio/light/cm3323.c
drivers/iio/light/cm36651.c
drivers/iio/light/gp2ap002.c
drivers/iio/light/gp2ap020a00f.c
drivers/iio/light/isl29018.c
drivers/iio/light/isl29028.c
drivers/iio/light/isl29125.c
drivers/iio/light/isl76682.c
drivers/iio/light/jsa1212.c
drivers/iio/light/ltr390.c
drivers/iio/light/ltr501.c
drivers/iio/light/ltrf216a.c
drivers/iio/light/lv0104cs.c
drivers/iio/light/max44000.c
drivers/iio/light/max44009.c
drivers/iio/light/noa1305.c
drivers/iio/light/opt3001.c
drivers/iio/light/opt4001.c
drivers/iio/light/opt4060.c
drivers/iio/light/pa12203001.c
drivers/iio/light/rpr0521.c
drivers/iio/light/si1133.c
drivers/iio/light/si1145.c
drivers/iio/light/st_uvis25_i2c.c
drivers/iio/light/stk3310.c
drivers/iio/light/tcs3414.c
drivers/iio/light/tcs3472.c
drivers/iio/light/tsl2772.c
drivers/iio/light/tsl4531.c
drivers/iio/light/us5182d.c
drivers/iio/light/vcnl4000.c
drivers/iio/light/vcnl4035.c
drivers/iio/light/veml3235.c
drivers/iio/light/veml6030.c
drivers/iio/light/veml6040.c
drivers/iio/light/veml6046x00.c
drivers/iio/light/veml6070.c
drivers/iio/light/veml6075.c
drivers/iio/light/vl6180.c
drivers/iio/light/zopt2201.c
drivers/iio/magnetometer/af8133j.c
drivers/iio/magnetometer/ak8974.c
drivers/iio/magnetometer/ak8975.c
drivers/iio/magnetometer/bmc150_magn_i2c.c
drivers/iio/magnetometer/hmc5843_i2c.c
drivers/iio/magnetometer/mag3110.c
drivers/iio/magnetometer/mmc35240.c
drivers/iio/magnetometer/mmc5633.c
drivers/iio/magnetometer/si7210.c
drivers/iio/magnetometer/st_magn_i2c.c
drivers/iio/magnetometer/tlv493d.c
drivers/iio/magnetometer/tmag5273.c
drivers/iio/magnetometer/yamaha-yas530.c
drivers/iio/potentiometer/ad5272.c
drivers/iio/potentiometer/ds1803.c
drivers/iio/potentiometer/tpl0102.c
drivers/iio/potentiostat/lmp91000.c
drivers/iio/pressure/abp060mg.c
drivers/iio/pressure/abp2030pa_i2c.c
drivers/iio/pressure/adp810.c
drivers/iio/pressure/bmp280-i2c.c
drivers/iio/pressure/dlhl60d.c
drivers/iio/pressure/dps310.c
drivers/iio/pressure/hp03.c
drivers/iio/pressure/hp206c.c
drivers/iio/pressure/hsc030pa_i2c.c
drivers/iio/pressure/icp10100.c
drivers/iio/pressure/mpl115_i2c.c
drivers/iio/pressure/mpl3115.c
drivers/iio/pressure/mprls0025pa_i2c.c
drivers/iio/pressure/ms5611_i2c.c
drivers/iio/pressure/ms5637.c
drivers/iio/pressure/rohm-bm1390.c
drivers/iio/pressure/sdp500.c
drivers/iio/pressure/st_pressure_i2c.c
drivers/iio/pressure/t5403.c
drivers/iio/pressure/zpa2326_i2c.c
drivers/iio/proximity/aw96103.c
drivers/iio/proximity/hx9023s.c
drivers/iio/proximity/isl29501.c
drivers/iio/proximity/mb1232.c
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
drivers/iio/proximity/rfd77402.c
drivers/iio/proximity/srf08.c
drivers/iio/proximity/sx9310.c
drivers/iio/proximity/sx9500.c
drivers/iio/proximity/vl53l0x-i2c.c
drivers/iio/proximity/vl53l1x-i2c.c
drivers/iio/temperature/max30208.c
drivers/iio/temperature/mcp9600.c
drivers/iio/temperature/mlx90614.c
drivers/iio/temperature/mlx90632.c
drivers/iio/temperature/mlx90635.c
drivers/iio/temperature/tmp006.c
drivers/iio/temperature/tmp007.c
drivers/iio/temperature/tmp117.c
drivers/iio/temperature/tsys01.c
drivers/iio/temperature/tsys02d.c

index af84c0043c6c8c6066683444b69311da8b2801c8..511fb610436cf5334c714ebca967dd019cae0d36 100644 (file)
@@ -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);
index 19490a6e1f35e95232b99602227868771d192c1c..0b6b016bd358e8aee265feb589329672cea8ac32 100644 (file)
@@ -38,8 +38,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);
index 1c7d2eb054a21ff1fd222a0d12af501af7f37b01..fb50ded68bae183b0cc9a8097c5481eb1e7b8d91 100644 (file)
@@ -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);
index ca2cabf24938aea2f40de4dda571b20a3be97c5d..ddb1250757781675500d4ca83e4d877bb79642c6 100644 (file)
@@ -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);
index bd8782d08c7d91f4932869628326e4ce857ef75e..367a292980471a49d2cd0fe0361b8c1760b6bc0c 100644 (file)
@@ -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);
index 7bc6761f51354f434c0df6ae9c54f4dc7b28203e..e643bc73eefe1956a560ac64c730cd1d4401986b 100644 (file)
@@ -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] },
        { }
 };
 
index 8b6f8e305c8c120f4bf0e7617bf5343ed1eb497b..b058e97bc6a6e0da9b3f209c338c6bb981da2312 100644 (file)
@@ -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);
index 24a390c3ae66d152fa3c30639270423809c0e5e6..23d394c5a7917cf85fa20e41b9798bb454ac203e 100644 (file)
@@ -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);
index 310f863029bb1fd05f87d9ee8bfe338246e371ea..d9468b1c5aee7600acdf4d7504267f95d62cf189 100644 (file)
@@ -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);
index c2dd123b90219799ddbbb1a1a340b2b945524137..15acbe1c2cbde8d9dc8fa5b9d6e7061bd8500b83 100644 (file)
@@ -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);
index e1df7b009d895c8276e856f72727191f78dd3786..dcb69c8eaf09bdeeda252aebb0c96e6e2a0a85ea 100644 (file)
@@ -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);
index 33f225d73e7bf4ab421123e2936f365cb1a09179..2957bf55d1101b7b3436ec4ca7405c120650d1c1 100644 (file)
@@ -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);
index d9290e3b9c464446623ae536fbfa07e072cec091..fe35a1270786bc9bafa62e9ff4c4afc7f980506e 100644 (file)
@@ -123,7 +123,7 @@ static int dmard09_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id dmard09_id[] = {
-       { "dmard09" },
+       { .name = "dmard09" },
        { }
 };
 
index 575e8510e1bd000ab255a0ba4ac80b6b8503d4e5..8ba00fd5790165440aff2c6991c074e8aeb0dbba 100644 (file)
@@ -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);
index 106198a12474490da3685e826830c5fcefc856ef..fa46f5aa34f77ceb9d14c9bdedffd581ad693829 100644 (file)
@@ -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);
index 2823ddde4bf21bc1f35493d0ba14d7592e0c36b4..8a082ff034dd2595d8d568d9776d5d0f8159bad4 100644 (file)
@@ -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);
index 1fa88b99149e7f3c8051859a98c360e8d8209ee6..8f3314db82d2fe9b0363ed858be5a896481804a0 100644 (file)
@@ -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);
index 3e494f9ddc5615aec3f8055810995a9902c97771..b45897210a62c0be131975bdd0b0e3a9a0340d17 100644 (file)
@@ -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);
index 2ff8eb1f9ce9602918a1590e4ebcb9e9169b70ee..9588fd133b1ee63280d341146f9f5937193bdcc2 100644 (file)
@@ -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);
index be3213600cf45fdb584f183635925df9789a10cd..0ecf6c06dcc6c33836b148230ed803711d286f78 100644 (file)
@@ -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);
index b499497921900eff57c9e90b676991e361e70892..1403b32e2b21c53783eb42463adfe4f521162213 100644 (file)
@@ -1829,12 +1829,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);
index 02195deada49e56d9d33790f41c8a6ac2dacb1fc..020370b0ec0745f8922d88762ef11dd4f5d3e7f9 100644 (file)
@@ -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" },
        { }
 };
 
index f85384a7908f253f9ed55dae4e0a41a39ae6016b..90ce86244ee8886b7151eaa3afd5e5db31b63520 100644 (file)
@@ -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" },
        { }
 };
 
index a2c3cf13d0981757d277254d347121ab1a0043d6..434971fbfb1237281003d4c8cee2c0f27ad82222 100644 (file)
@@ -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);
index fc3ed84d19331b1ec48472d08b8c702f97c416e8..901f2b9f16a2e7f8807a0b6db41120451f760636 100644 (file)
@@ -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);
index f24449500533af7c2d081ba24fee6cac972c2621..eecc7fcdb06e395c21ad971508bab6d92f152cd0 100644 (file)
@@ -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);
index f31c6ab3392d0cedf8aee875911ecab8f0324b94..8b5a3e0489e9763c198f716d410631da7ae9b3fc 100644 (file)
@@ -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);
index a9ff2a273fe1cf50d14c580f5c2cc25ae56df9a9..ccea1331cafc14b682827249952a6824b51b0879 100644 (file)
@@ -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);
index 60e12faa32070183c64a2037c968177cb903cc11..6a1493e27a30a4713858f074bb840cb4d44c2d45 100644 (file)
@@ -536,7 +536,7 @@ static int ad7291_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ad7291_id[] = {
-       { "ad7291" },
+       { .name = "ad7291" },
        { }
 };
 
index 0ceedea5df0bcadd9a16cb6e8135025c3ba6a85e..bb076d8f5dd5891a6a0cf2a219746a4eceae33dc 100644 (file)
@@ -940,14 +940,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 },
        { }
 };
 
index d1167818b17d65987774cd5545cab6b5492de04e..24193e9414942247f1f33327f38b780aa1451b0c 100644 (file)
@@ -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);
index 7c04e3ec1cbccbb3cf68d2344cd13d25e7d1c113..c412f5ed46a120a8158404f67e0508f1b60b9415 100644 (file)
@@ -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);
index 87b78d0353f198588c2a4155944317074dd20791..1ad533270a3903f3332ccf6ba94e473b330af308 100644 (file)
@@ -243,8 +243,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)&ltc2305_chip_info },
-       { "ltc2309", (kernel_ulong_t)&ltc2309_chip_info },
+       { .name = "ltc2305", .driver_data = (kernel_ulong_t)&ltc2305_chip_info },
+       { .name = "ltc2309", .driver_data = (kernel_ulong_t)&ltc2309_chip_info },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ltc2309_id);
index a579107fd5c9e5ab66fe29f1f37bd0001352e626..369af700969f8470eb74ac11bfb7cc8c128df134 100644 (file)
@@ -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);
index 060651dd41306196518047467409d38f4dabda90..8c3806e061dd46a3ed5874f20bbcc780e4a6bd26 100644 (file)
@@ -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);
index eb9d521e86e54def0493ea0e81f63b37900c56a5..8e899d6ffcfa7d31d4550392852154def4d263d3 100644 (file)
@@ -142,8 +142,8 @@ static const struct ltc2497_chip_info ltc2497_info[] = {
 };
 
 static const struct i2c_device_id ltc2497_id[] = {
-       { "ltc2497", (kernel_ulong_t)&ltc2497_info[TYPE_LTC2497] },
-       { "ltc2499", (kernel_ulong_t)&ltc2497_info[TYPE_LTC2499] },
+       { .name = "ltc2497", .driver_data = (kernel_ulong_t)&ltc2497_info[TYPE_LTC2497] },
+       { .name = "ltc2499", .driver_data = (kernel_ulong_t)&ltc2497_info[TYPE_LTC2499] },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ltc2497_id);
index 4f45fd22a90c5ad597f7f744b603b6da94ce31b1..da847eaed84e85ae729615dc8df59a14c937f9c2 100644 (file)
@@ -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);
index 0cbd7a87479853784c443d0c850efa5b5fb72e32..f49cde67295854b65cf51a7e46841cc060922da1 100644 (file)
@@ -383,14 +383,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);
index 970afb27b83965be13c4bc120bd72e812eb2edef..836c9b49c72124f7d7e0a7ada6118d5911ed09fa 100644 (file)
@@ -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);
index 40d00bd0cc9ddea39be5d5a7657a37a748fd38c5..864f3b1366b5fcef23db914eef65d8c47cb1c94f 100644 (file)
@@ -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);
index 8ef51c57912de62b1d6a6913372b2cc8c6d463ae..33f82bdfeb94c2acd3aa7201e16e417bd3b09590 100644 (file)
@@ -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);
index c7ffe47449e2196169e28d3541e2886bb086c727..8a272af69f7d2470021309e042f1d296f1e0384e 100644 (file)
@@ -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);
index aa8946063c7d6d05a0c35d7efff919f345831b5b..9fe8d54cce83cb5582e7d4e889e21ae445bdf559 100644 (file)
@@ -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" },
        { }
 };
 
index 2320be0efb50840241d65292f819dd0150fa9471..d31f3d6eb7811daca2f0f9cf460884164cfea8a7 100644 (file)
@@ -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);
index ee5c1b8e3a8e47e3475d4b4cc276931a51996547..af87f5f19a0fac52f53ff8661322becadb412817 100644 (file)
@@ -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);
index 5f294595a415f482f68b035bc4051594ada7853a..ff30a52d2850ebf3ec31c54e50874b36d4809e3b 100644 (file)
@@ -442,7 +442,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);
index 8106a6a835617728c1855c079477165f40900490..cb9fff3bd67faa5288930b398788dd498801001b 100644 (file)
@@ -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 },
        { }
 };
 
index cb97e3c978d80ab1b8d10955d42437f827c6c608..cf68b882bc49f5574a165ef50b67a14c6b77f0ea 100644 (file)
@@ -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);
index 151178d4e8f49e8e26ee1d824788d8ff38495ac8..8b97ea4a951582a249f741fc8da01fd9f8bc96ef 100644 (file)
@@ -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);
index 10156d794092f3ad3b5a5da3eaa3c76a2fafb9f2..7aa7841c530ec0e6460fb2ee3e996d8326b82c15 100644 (file)
@@ -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);
index 59f3a4fa9e9f3b6e185399bad2e15487934ac87e..05da3b8a92ab49429e0620a2e6620ce3782c8048 100644 (file)
@@ -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);
index 8bbba85af699ada026ba3d0c684ae33f969d803a..0e2edcff63f91b819772ab134aa1d41efb46b559 100644 (file)
@@ -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);
index 5560ea708b3614e06ee906dd69c87d5e0c40c7a7..4cc0e491621a88b7fb718672cab4a7a739b1e44b 100644 (file)
@@ -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);
index 998c9239c4c7f4832c5120f58fae2431622a99eb..ce7187ccd70617799394b167a96c8fdf3c19be19 100644 (file)
@@ -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);
 
index aa0dfe639245011867f37f5c369d7c49805f9914..ab0e8dcce0118299372e1a195c545eeb5ce8e34e 100644 (file)
@@ -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);
index d42b62b7081e97982ef13bc94559f551f19e091c..8b88be85602c950726f6804829b8fbf1e287d445 100644 (file)
@@ -563,8 +563,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] },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, sgp_id);
index 07d8ab830211a6e4870d3321b42b1b9fa67d6669..b2b5e32a9eb2dac5d2e9475265543443bf75ffcc 100644 (file)
@@ -355,7 +355,7 @@ static int sgp40_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id sgp40_id[] = {
-       { "sgp40" },
+       { .name = "sgp40" },
        { }
 };
 
index c92f04990c34c23f40ee2c7230a2b26ee678a44e..61781aaabd85df0f22b45944eda6edef11188bf2 100644 (file)
@@ -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);
index 5b358bcd311bbfcbdea8b4ca498c392ee59198b6..4deacf10b6ef1353fe73329674ee4144a2c6a7e0 100644 (file)
@@ -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);
index 84be5174babd965e7b8fa74dc5b356ca97237f72..b5ec33f5c3170b33b7c0c88e969bd392e1a32228 100644 (file)
@@ -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);
index 8b813cee7625a72b647b03483fceb1544e87dca4..2e587bdd321434485dade0558ecbd4e8544f7d22 100644 (file)
@@ -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);
index 40fe7e17fce45a71868c863e78800e3719460646..2d4c8908d91e682c3368f42154eac817df921362 100644 (file)
@@ -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);
index d3327bca0e077a301a8e4ed2092e8835e75279c0..56625e1da8171c0796da9f53da118ecd7ea71bd3 100644 (file)
@@ -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);
index 085f73de3f02942fe6bc91cac5dc5e34380f0956..b6430b832cf0f8cc22bdbf66aa779f9c40678beb 100644 (file)
@@ -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 },
        { }
 };
 
index 3497513854d7d24724af944f9ee452ab48a083ff..7e80c0eb5cc1acb038af4221be34c10d097f9577 100644 (file)
@@ -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);
index d334c67821ad651e15533133ca2014ba5aa2fc32..d2ddc72e0e503e9d8b2eb6f1e8bd7ce254af3dc3 100644 (file)
@@ -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);
index 23b9e3a09ec816abb900f74b0d93999693123e79..2d6bcfd5deaa65d6d54177bc64df047846ec32ad 100644 (file)
@@ -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);
index 4f30b99110b790d902786503324a118970f27a29..64bd9490fc19b73c84ac5e55b11e8aee9af05a3d 100644 (file)
@@ -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);
index faccb804a5ed548088aaf83266b16ed45a92916c..217f78e44af12d92ae0b23d2d243d1d36db65405 100644 (file)
@@ -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);
index 455d61fc3f1352e6ed5ae4ae1962056e37b14764..b9efd704e996e253344025ddd8157d6df1a28efc 100644 (file)
@@ -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);
index 1fb8a7969c25d32473f9289f0951e974b60570fa..028e5e29c6a1807b5f77026b1bbb8e2cbe5c4845 100644 (file)
@@ -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" },
        { }
 };
 
index 43c6b30794873d1491555021740275e9e67fedf8..d537e91caaafbfc4a902f6303f1a2d96c09ca479 100644 (file)
@@ -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);
index bfe95ec1abda9ba692f4ac8969f3d04b8fe04a77..6b13d54d9b0106a20e6c2b80008644a3b5dc8032 100644 (file)
@@ -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);
index 6549b22e643d81dae6c16525948871c229572333..2a5bcec7272c569fb6e95faa34a97fc8ae0e48ab 100644 (file)
@@ -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);
index aef5ec8f9deef2e9e39837377b1348768455f875..b07cb39051b35b6d0ab921fd178d0a64bcdf93b9 100644 (file)
@@ -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);
index 032da52a96d0ea5ad50917f4e780029479d599a5..2357e2dd70175813e71999233019587a70e9aa3c 100644 (file)
@@ -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);
index 7dfdb5eb305eba016eab3b06c5905857ce2b9c25..97352485f5e2e20abfefaffd267519a3a79ec752 100644 (file)
@@ -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);
index 47da44efd68b5e0f931d6afc77825378c95a17ea..c830eaf286f771c6c2b45810b90b319734ece40b 100644 (file)
@@ -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);
index 02ca23eb899115e37b83ae412b4cc052a9622854..f29baa251f9f78f12d50f6667fc341ffcd704de3 100644 (file)
@@ -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);
index 77418d97f30de0a1eb7f2ade239400de7507f257..22ad208e6aa69a0dc0b7154f01fae52dba246421 100644 (file)
@@ -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);
index c2b36e682e06f2a962c67a08269715e38fb5ddbd..87194802cc4f7c4223b531275ef54796ba8b072a 100644 (file)
@@ -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);
index 1a0f18251381543c4e9f749aeed7fc9541721d55..82d68987556dce1d47940b2b9272f003f88098c6 100644 (file)
@@ -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);
index 78b2c171c8dac2f11fcd5404497ffeba76e837f6..1ae8702ada54febd91c05331484b36a34de00e38 100644 (file)
@@ -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);
index cbaa7d1af6c4e7988348ef70074791b4f2fda237..e823d37384d76fc3248561ec59cf432bfdb947b2 100644 (file)
@@ -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);
index 7f1775bd26fdb2f2c08235a7544d8e5a7f893e4a..9ba7507f105e13dc70c9a99e2c92a062e97383d1 100644 (file)
@@ -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);
index 0797ece1fcba6dd228f2bde4f043715b85c1bcb9..0c11d0d3afe030f07763c433c4e46b973f5b9105 100644 (file)
@@ -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);
index ff2dba50c0a5b2ca410129890e0648f7efae2c04..9fb1e3ede3ff7e27bad51b06c6efe76517e9df27 100644 (file)
@@ -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);
index 3e2758f4e0d3f88c42dbdc9d59190777550f2a8e..29f3c4acb12382b063f6f646509854afa6e2e286 100644 (file)
@@ -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);
index b92da4e0776fa50def450fcc93eb0f6f520570ab..1e6839f9669e2c07768489078b938bd32a857578 100644 (file)
@@ -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);
index 8457fe304db8492a287b7aa3c5fdce1cd9006566..328733ddeed7a872c3a339c1537eec63c74e6e91 100644 (file)
@@ -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);
index f49d0905ee3384b8d83a27a09e81fe982295a8b5..000bc9392480e347b6aef88bd6d7819154828b84 100644 (file)
@@ -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);
index 2cc4a27a4527d1086a824a3627877a528b486de2..c81e48c9d8e23b8496abd6328b6d0486ba84ebb9 100644 (file)
@@ -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);
index 7e4d3ea68721a8c3d69b7b26360e6e45148265a2..99d37ac53bbed117a499638b0a5d6d057e79c671 100644 (file)
@@ -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);
index 5ebc18121a11f8ad576efb4d4cf80091c13af31d..26fba538a3cf30c3386f62cbc4fbd325cc145d54 100644 (file)
@@ -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);
index 8dc61812a8fc46c907ba7019965444a29d551e63..4868e1576cee40d0948ba846a106de49f06cef61 100644 (file)
@@ -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 },
        { }
 };
 
index 3cd91d8a89eecafdf6c4ed66398ebef5f84e1cfe..a4d176f81f0efcfb32dade6f4fecfe1b54edd19b 100644 (file)
@@ -1481,7 +1481,7 @@ static const struct dev_pm_ops kmx61_pm_ops = {
 };
 
 static const struct i2c_device_id kmx61_id[] = {
-       { "kmx611021" },
+       { .name = "kmx611021" },
        { }
 };
 
index b2a7c2eaf50dc517e7cf1997ae254b6952e9534b..edec898cb11fdce34b86032a422fa7932be2c8b2 100644 (file)
@@ -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);
index 4232a9d800fc97c2c3139157dd931a47d1022449..f71ae7a59a22af6c1a40a5ab92d8d9c5e3548927 100644 (file)
@@ -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);
index edb3d9dc8bed3730cccf6b4bc90995eee84c7bc0..088b9431d10a8b050f85974c981004533a7e9358 100644 (file)
@@ -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);
index 66ff9c5fb66a2b89febdfa8fe3fec9a468924f12..633a105fd7f0f6a0fb65dd4ce5b6f1ac0cf7c147 100644 (file)
@@ -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);
index 9871096cbab3a92e8c2a17fcc3c8e319f88afd48..d4e6fedf3d9e5ff6f5d0e5902ee57cd5f6d67944 100644 (file)
@@ -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);
index 0932fa2b49fa7cd99f10c7b4dbbbb51f111618c6..f48420135320e633bf828982bdc206f579159d2d 100644 (file)
@@ -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);
index 63f5a85912fc9a72858c49f6c207e385fbd2cde7..617b4f15ea3f9a189764ff67ea5adb996799baed 100644 (file)
@@ -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);
index 05ba2167506327e50d8bfaf947e072ac1de29472..d60ade1209f359008468d6c0bda04a367e436cdd 100644 (file)
@@ -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 },
        { }
 };
 
index 785c5dbe2d08585d36b12419e46d8dbff7271af5..2686c3b0c03baf4abdf045bc489ecc0722d7205b 100644 (file)
@@ -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);
index 9fe830dac67947f3cc174789137b64cf9cce6d73..67f33bbe1c13a30fa0026b52b54528e7de84ca65 100644 (file)
@@ -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);
index 10b00344bbedbf01a5fb4a47f9690934ba986042..0aa8e5cc6c56d8b23b946189b33c082f3783c5b9 100644 (file)
@@ -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);
index 764f88826fcbc2c14ed7093eaaf18a70808b54a6..a51ac98c83c8162ff2f9600838245a7d03c734cd 100644 (file)
@@ -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);
index a740d1f992a8a13de44a22623f99d3aecae7f99c..ead98fb82af954e3111c61d222595b8eb0addaa4 100644 (file)
@@ -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" },
        { }
 };
 
index 90aa77e3a03b5cf8a0870b58463c2ff466d18342..fec233d066026b53f08451412433f1a1df085481 100644 (file)
@@ -366,7 +366,7 @@ static void cm3232_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id cm3232_id[] = {
-       { "cm3232" },
+       { .name = "cm3232" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, cm3232_id);
index 79ad6e2209cab6350caf70e1f9b0ec45b97e92b3..0fd4ddb69c06fcef56cbda41c174cda4f07d19c9 100644 (file)
@@ -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);
index 446dd54d5037c489ebfc21acca4c741278d39245..6ebd8ce4ca12e11dcd3b62bf29f5be6bee542b99 100644 (file)
@@ -713,7 +713,7 @@ static void cm36651_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id cm36651_id[] = {
-       { "cm36651" },
+       { .name = "cm36651" },
        { }
 };
 
index a0d8a58f2704253afe90e09f8b483044d733d44d..c83f67ff2464a3ce2313c9a9017faf39f4e74be7 100644 (file)
@@ -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);
index 7e388319ee2e3d52f3b984ac30a5ba2777b67916..c218bb3519dfb3e829aa428af5b0759bacd3bedd 100644 (file)
@@ -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);
index b6ab726d1daec5891548a596befdb69ba24bd7c8..8a39afaa2a37b5e0da7bb2e2c25fcd98869d801a 100644 (file)
@@ -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);
index 374bccad9119a4ca49afddfc8360a3164ca41c8d..b88e7c4eae3ec50dc0abb4feda375366bd70fa6f 100644 (file)
@@ -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);
index 3acb8a4f1d120b3c8b6b3346506ddf7838df4e1c..9e0b7e6a3ecf3ea5534b63fbecbfa79803805dc6 100644 (file)
@@ -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);
index b6f2fc9978f620afc69750d21eba7a3aa5032e2d..9b9052d08e41080fc4a314d92ee28de50c969d63 100644 (file)
@@ -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);
index 6978d02a4df59291ede18c75dc7c5bec9903fb03..cc0a7c4a33dd0108cbbd3a509f45d16a4f51e2aa 100644 (file)
@@ -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);
index f1702aca582df073915d61ca3a28f7e9be0725a9..bdc74b8226c8f8f8a29d444509854f2abbb123f8 100644 (file)
@@ -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);
index 4d99ae336f61073c28b163653ecff0264c8d3f5a..15dd82ecf7451df6678c8e09114e2872a8e4c815 100644 (file)
@@ -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);
index 5f27f754fe1c444291fd7450a78f3972a02b24a7..aad96fc915650e78f9ba08ed096713d6ead50885 100644 (file)
@@ -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)&ltr308_chip_info },
-       { "ltrf216a", .driver_data = (kernel_ulong_t)&ltrf216a_chip_info },
+       { .name = "ltr308", .driver_data = (kernel_ulong_t)&ltr308_chip_info },
+       { .name = "ltrf216a", .driver_data = (kernel_ulong_t)&ltrf216a_chip_info },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ltrf216a_id);
index 916109ec32177d51bdfad7b3cc1e1bf8020be51f..eba82c334d70a8a66c38a465f27ccd9ee78f1fc2 100644 (file)
@@ -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);
index 039d45af3a7f3de64d7a6f71f16cccfcba177fd0..6594054c40c7583f7b452434552948f86eb7afed 100644 (file)
@@ -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);
index 8cd7f5664e5b1a13aceb3aaeac3f6eef14a1eaac..82b8a806c5fac8d9ec8b5341fdffe3061eec1fd2 100644 (file)
@@ -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);
index 25f63da70297e1af77628a7fc5cab66773ff7276..6731f1d9ec1c7853e4a000d94ffdab7ffe1c2d0f 100644 (file)
@@ -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);
index dac3d3818d0a01b4ca53106fa38bb54b8c5373d4..03c7a87b4a8eef13bbdcf48dcaf969781aa76bd1 100644 (file)
@@ -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);
index 95167273bb9047f2eca194b837eb8b7b83b34a91..dd152d921b48e36b889a33a910701e08f35ec294 100644 (file)
@@ -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);
index d6e915ab355d13818e4460a4de7a724145ff2eea..c391ad3271c631913ae17fa93e36a1bef51554de 100644 (file)
@@ -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);
index 98a1f1624c755e211223dc33d7d075548da44b2e..c0f4db8d95f7c719500b9913366192ba9a69a371 100644 (file)
@@ -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" },
                { }
 };
 
index 9341c1d58cbe35ff9c301ad98e4fcdbf6683472a..2ac06dad6d1948ae17223bdabfc0660f59c8e388 100644 (file)
@@ -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" },
        { }
 };
 
index 655fa778b4a633d4fce64959b6e9fd7e71d1c5aa..2812a2be99dd885e07c203daa88abb0fb3293213 100644 (file)
@@ -1069,7 +1069,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);
index ef0abc4499b74af379ba436ad238f3ad9efefd8f..4601ae5d20091d5aa2a8d96b86c346ee357b4ae0 100644 (file)
@@ -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);
index 5d9bb4d9be6316c5a81954a1787d93cd56bda645..ed8cac5b8766edde6c7ad3a36c5e779849e29715 100644 (file)
@@ -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);
index 60407bc87ccf463dd8ce05ec36efe4b6b521102c..8380df7ffa982783d07bc2c58fb9454bb3c59113 100644 (file)
@@ -770,10 +770,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);
index 5be461e6dbdb12354a474b26109392c639b1eb86..458178fb629f1584693aa5f264f0436fc3e9334b 100644 (file)
@@ -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);
index 12429a3261b38e305024f0c2d6943f4a3101c436..5a14f8d39aa4e92a2e642a35261f15e8bd210d4c 100644 (file)
@@ -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);
index 9ba8140c8bc15972ffb24c411773b622f60cfb65..244f44379c369daf8097836098d7896207997e07 100644 (file)
@@ -1900,19 +1900,19 @@ 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 },
-       { "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 },
        { }
 };
 
index a5788c09ad02fc3d6860a08cae802ba66fc98331..2f91ed8a987652a9df2f9bfe3dd25f89128ef377 100644 (file)
@@ -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);
index d2f5a44892a882c6ec61168e4d015cea502b6ee6..d335e5e551f1e42d2c4116ab9f7ef54cee258139 100644 (file)
@@ -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" },
        { }
 };
 
index 88fc7424ae353f55b04ee4b71a4fe9eac44d6231..128ae3f940749cd9698c05103abdb5b735520224 100644 (file)
@@ -2040,13 +2040,13 @@ 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);
index 16aeb17067bc0c75d1441edefa79c8b0ec6e8f66..bf3a49b4351d9e90212766ef33730fa19168aefb 100644 (file)
@@ -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);
index 9309ad83ca9eca6a2f6399dd463fc6e3f0246e9b..d8a39223009bc533932ff2745e742001bf94a11c 100644 (file)
@@ -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);
index 745cf3ad7092eb06260f3269a815393ca91a65f3..a1b4e7fadf8030f9c65450fff60989917b2cfbf1 100644 (file)
@@ -1214,9 +1214,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);
index f563f9f0ee67c2f73750dec3e8f7850fc65ff93b..0960784b8866293100e141249d255a6b36e247ee 100644 (file)
@@ -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);
index e60f24d46e7bc09c831adac540850a957a231f8a..f23d63291f73bac288f013138644bfa864d97d82 100644 (file)
@@ -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);
index 74d7246e5225e912e12c6528ab60196fae667558..aa7e52628d2a9d7c49ecc3693707d244b979fb4c 100644 (file)
@@ -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);
index edbb4340705435b77a49e4889fe20e58ca12b368..105bae7be89944213fe2c44b289f5d111965e2aa 100644 (file)
@@ -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);
index c1314b144367f1ae4ebf156961560041fccd0c5c..6cb965418dba2fa9630645828788f83c093b38fe 100644 (file)
@@ -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);
index 0990e4d266ebe706ad606b3c5288d1f6794cadc5..b53be5f7354e5a99b890f5be2d954e3da728a87a 100644 (file)
@@ -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);
index b1768c3aa8f33c6e95e770a27f55cb357e6ac6f4..352f53edad9a332d175a79811a72b249d49f02f1 100644 (file)
@@ -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);
index 817b18257608c5a7df8a8615462b3199002923ba..18dc36945a97bee74cf3e1ee85392a33d5343fca 100644 (file)
@@ -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);
index bb74abb648f138352576a68c49d3c7dce7cc068e..d045ea091205242b943a98dca70ad97f0af4b110 100644 (file)
@@ -1132,13 +1132,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);
index b110791f688a71d883a77d830203a32b65d57bbe..7d3cca8cedbe15b13860fc8bb1809f1c2bb91b34 100644 (file)
@@ -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);
index b41709959e2b0665a8425efe9b4467e61c371fa0..4c454b0057b14f62bfe2361fa3e8ae17f24de555 100644 (file)
@@ -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);
index ff09250a06e7596d4cb3e50c098ae5f0ea2f3512..479a12ece8f6f8ee2b03fb23270ca9ebdb5cb20e 100644 (file)
@@ -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);
index f3d48d03f7c3a47c78c366dcc131f3a0e918d9aa..bad36c8dd598a675d8e17a05b7fc36ff92df872c 100644 (file)
@@ -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);
index 9d8e2748696345a1dacd3d7fe3a02e6f182e418d..f82cb68f9c579284083841b751623f384229bf06 100644 (file)
@@ -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);
index 2a36abd1c99d75ac407c277b9ca1902cf0ac85e6..5b3fc30307031169d60f62ad2df5acb315006de1 100644 (file)
@@ -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);
index ed70e782af5ea78ec553d787ff6981eeb44bceea..26d1edd1e779895766051af8741bca9728aaf7c8 100644 (file)
@@ -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);
index e5e050af2b74c1c7d93740a5449a12780b3dc8a3..c8eb136cea6f410d5b027f97c43c83d2d9b25c8e 100644 (file)
@@ -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);
index 2adc3c036ab4947c0188e8adf36b9745fdd66103..155294b66924320ae02a44658b4a62ac77ae2dc6 100644 (file)
@@ -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);
index 6bd0535e5eb12101601d652f7bb0d130b27c3e99..fec084c16b172bb3368eaca7310430ebf1b5f6da 100644 (file)
@@ -1587,10 +1587,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);
index 672b1ca3a920c517016142ebab15ed2978502990..ac342127d59e9680dc4348081dc3cce4fd8c4abc 100644 (file)
@@ -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);
index 8a64d93f7e7b149a7c4820bccc8bdff5ea7e8e85..42394343b5a9b9c6137336fc0983b3faaac41a27 100644 (file)
@@ -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);
index a42b5773336388d2e56b86d828faeb2948ecb22f..77149908e1bf3b2f9dc83cdd0cb74c7138ac12b3 100644 (file)
@@ -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);
index eccc2a34358f07253e1581a5ab19abf83b86ea7c..359dffa4709187b563a7fac2cf51313b638d893d 100644 (file)
@@ -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);
index 699b0fd64985d700fbfe3e6d93fbbe5bbb8ee8cb..fd48bed3508899e1e32ab5f77cea36ec536be563 100644 (file)
@@ -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);
index 9f1c1c8a9afbad7b29e82b35537ca3c6105e08e2..e71dc8e8e957254ddbc53edb53c150860312192b 100644 (file)
@@ -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);
index 5282612d1309675eb9722e59461cfdaa4085bcf0..47c5ad564c7f08296a2f398ae3ba30bb7cb97b1d 100644 (file)
@@ -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);
index 8e459b6c97ff7632be880d4ceb117b251c9cc19c..3f6e0723a9d7ab586fefbb8fd65594bc809f6a5d 100644 (file)
@@ -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);
index 46feb27fe632ff2ddacb088da8033477be85baa8..01a8731659238f584e0acca6d3f64c809ae6ef0d 100644 (file)
@@ -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);
index 8edaa4d10a70ec01efadbaad616525a81745fe43..f45af72a055432814a17de31812d1d5ce9137b73 100644 (file)
@@ -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);
index cbb4aaf45e2cd208befbb42c988a0f9819fa532b..424523345060163e1c60da300bacdcefe3bfc2af 100644 (file)
@@ -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);
index abe10ccb677061ff482a67fb61720bffc1afec7f..be14202855cf64aa1166784e086762c87c4a3404 100644 (file)
@@ -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);
index 3500bda03d750f181c9ea054126877c0667621ce..f4ea30b2980de4b522f4d753953ba3069ac5f1f2 100644 (file)
@@ -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);
index 3d83d0098a5773fe0f1618f44ee41a5a235e4245..02b363c5c45bce858536a9525c322b24bddeafcf 100644 (file)
@@ -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);
index 3db9ef4e2770f15f08c761ae8b5fa2066b6f3ca0..4a43eba078a802204058c647292957f01359609c 100644 (file)
@@ -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);
index aeac1586f12ed4539f34403ed66d57a8af2b0e6d..f20fa6ad16febbee9119c2370424f8dcaa5f51fd 100644 (file)
@@ -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);
index 0fe8cfe0d7e7fb98d4fb7f53292d8224b6dda249..92edaf3005ebf84668e9a6e7f8d3c3dfde98bd2b 100644 (file)
@@ -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);
index 1c041b9085fb019057fdfd5abac5881ff9e3c838..b5be6a6daf02cd13a95a9d639056aff6b68818ad 100644 (file)
@@ -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);
index 59705a6669798ee5d711cfdd5dffc17317f2789f..03945a4fc7188669dd6db2c73b9b95effb1d8f35 100644 (file)
@@ -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);
index 08146ca0f91d300ab3d65f19686dba0bce3e02c0..b3be9de0367887ceaf8eeedccf77d216676ddf12 100644 (file)
@@ -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);
index 9828c73c48559c51b3fd38bb76ac8f7b0fda1e5d..ba80dc21faad1840c92e11af36b98c6ed7f3907d 100644 (file)
@@ -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);
index 0f50bac1fb4d284247b7f026928cb5df783c0c3a..816bfcfd62aebcd95e347169908ef3c2bb61c71e 100644 (file)
@@ -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);
index c7cb0fd816d3c5eab956576f29324d5086adb906..ab30f674518144bc3a9d392f398211a33085631a 100644 (file)
@@ -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);
index a6034bf05d97e128d96492aed7e942ee124a0be3..2d8af33f6a290b7fef5157c7751d386fbfc54daa 100644 (file)
@@ -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);
index 3472a2c36e440df7afba00635d17b9a48e5e8bcf..8fbb755dcae040f10fd221d0f64fcefa841d24e5 100644 (file)
@@ -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);
index 9efaa5b6b5bdc07f9854dfb404bf2b4730d7164e..c3a93c0e2b6407d224733e80d797a9d90ff9253e 100644 (file)
@@ -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);
index f69db6f2f380313b8444ee21399ee3a9faed6f04..016626f21218736e765891fd297de60ff9316432 100644 (file)
@@ -995,7 +995,7 @@ static int isl29501_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id isl29501_id[] = {
-       { "isl29501" },
+       { .name = "isl29501" },
        { }
 };
 
index 34b49c54e68b0a11bac0287c65cb368c9e956da4..1e8ecb9e9c56cf5a134e55c04ac4a80ca01512bd 100644 (file)
@@ -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);
index 21336b8f122aec421ac9675c56e52a6d2eaf12f4..5e9e04540393e7913320b02239fdbb8cf26aad22 100644 (file)
@@ -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);
index 81b8daf17a543713c2e1e406ef8f7216ecf5531d..db1e94fc5658f8fcc716a29f184e17c496d4cb9f 100644 (file)
@@ -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);
index 92a37ba331f6acb53865adb5ee96ef663e6ad1f5..35eb3fd7e700c42043b55abbf7ff55dd58112111 100644 (file)
@@ -530,9 +530,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);
index fb02eac78ed4eb51dc545d4920ca7c08c681dc4c..602f7b95c83e06bed13990a8ae4e9e937dc948e4 100644 (file)
@@ -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);
index 6c67bae7488c4533ea513597f182af504a22c86d..dadce9b442271f8249c554919488f56bc9f797ad 100644 (file)
@@ -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);
index ad3e46d47fa8d6730e5289176b3945f7718c90f8..21579331c6c3cf766281b569cde4e072560a1076 100644 (file)
@@ -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);
index 4d9cb3983dba19ee5bf24bab66332de53efa6d7e..ff56bfcf8bd27bb2983af9f7f3264d6ff0349b6d 100644 (file)
@@ -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);
index 720469f9dc36fb9c25fccbc49dfafc83e479848c..6172abc6d533a5b80daa93b131661b3ced6244ab 100644 (file)
@@ -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);
index aa42c2b1a369edbd36e0d6d6d1738ed0069fd990..2091733738b743d7664df4092b9a7a1461aa97d8 100644 (file)
@@ -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);
index 1ad21b73e1b44cb0c28f145e4ae32f11d98b1e22..342f2e4f80d119d02b5a23411aa94b8c47c039a9 100644 (file)
@@ -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);
index b44f7036c2cc01a2a3992395fa52f4f61e4c4e6f..3ab7687c414689732b14d5b1e2f44dbeee289608 100644 (file)
@@ -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);
index 1c8948ca54df3eb8af75fad163e3d8986c47a12f..8c8bdab106ddd7b5e8e5d09433b453c4b4ef37dc 100644 (file)
@@ -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);
index d8d8c8936d177f84318a5dbfc6a5a502a92e86cd..9939b9cd4796dca6a21b7f6b6887784a9d2faac6 100644 (file)
@@ -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);
index 043283b02c4d78caa9fa6592d1c727a849f51ade..d9eea06ff540110c9abb481876301f76af324e61 100644 (file)
@@ -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);
index 8972083d903a2597b8ba2539d3f5d233c5b0371e..6bc18616ad15e0c3d46aa59096ef1ec6790a79f6 100644 (file)
@@ -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);
index 334bba6fdae6cb87d81d697f265eb5649cd00bb9..92c73369b06f0e474fe37fb6effe6ff34215822d 100644 (file)
@@ -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);
index 0cad27205667e9f55d683ae39e1ee01bdc6ea960..3ef72347456ec6ba60e01f716da4906525709118 100644 (file)
@@ -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);