]> git.hungrycats.org Git - linux/commitdiff
hwmon: Use named initializers for arrays of i2c_device_data
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 13 May 2026 16:44:58 +0000 (18:44 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 9 Jun 2026 15:22:59 +0000 (08:22 -0700)
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.

While touching all these arrays, unify indention and usage of commas.

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>
Link: https://lore.kernel.org/r/65b77bcd452752c36d866069cc5790b26d2bf8dc.1778688803.git.u.kleine-koenig@baylibre.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
185 files changed:
drivers/hwmon/ad7414.c
drivers/hwmon/ad7418.c
drivers/hwmon/adc128d818.c
drivers/hwmon/adm1025.c
drivers/hwmon/adm1026.c
drivers/hwmon/adm1029.c
drivers/hwmon/adm1031.c
drivers/hwmon/adm1177.c
drivers/hwmon/adm9240.c
drivers/hwmon/ads7828.c
drivers/hwmon/adt7410.c
drivers/hwmon/adt7411.c
drivers/hwmon/adt7462.c
drivers/hwmon/adt7470.c
drivers/hwmon/adt7475.c
drivers/hwmon/aht10.c
drivers/hwmon/amc6821.c
drivers/hwmon/asb100.c
drivers/hwmon/asc7621.c
drivers/hwmon/atxp1.c
drivers/hwmon/chipcap2.c
drivers/hwmon/dme1737.c
drivers/hwmon/ds1621.c
drivers/hwmon/ds620.c
drivers/hwmon/emc1403.c
drivers/hwmon/emc2103.c
drivers/hwmon/emc2305.c
drivers/hwmon/emc6w201.c
drivers/hwmon/f75375s.c
drivers/hwmon/fschmd.c
drivers/hwmon/ftsteutates.c
drivers/hwmon/g760a.c
drivers/hwmon/g762.c
drivers/hwmon/gl518sm.c
drivers/hwmon/gl520sm.c
drivers/hwmon/hih6130.c
drivers/hwmon/hs3001.c
drivers/hwmon/htu31.c
drivers/hwmon/ina209.c
drivers/hwmon/ina238.c
drivers/hwmon/ina2xx.c
drivers/hwmon/ina3221.c
drivers/hwmon/isl28022.c
drivers/hwmon/jc42.c
drivers/hwmon/lineage-pem.c
drivers/hwmon/lm63.c
drivers/hwmon/lm73.c
drivers/hwmon/lm75.c
drivers/hwmon/lm77.c
drivers/hwmon/lm78.c
drivers/hwmon/lm80.c
drivers/hwmon/lm83.c
drivers/hwmon/lm85.c
drivers/hwmon/lm87.c
drivers/hwmon/lm90.c
drivers/hwmon/lm92.c
drivers/hwmon/lm93.c
drivers/hwmon/lm95234.c
drivers/hwmon/lm95241.c
drivers/hwmon/lm95245.c
drivers/hwmon/ltc2945.c
drivers/hwmon/ltc2947-i2c.c
drivers/hwmon/ltc2990.c
drivers/hwmon/ltc2991.c
drivers/hwmon/ltc2992.c
drivers/hwmon/ltc4151.c
drivers/hwmon/ltc4215.c
drivers/hwmon/ltc4222.c
drivers/hwmon/ltc4245.c
drivers/hwmon/ltc4260.c
drivers/hwmon/ltc4261.c
drivers/hwmon/max127.c
drivers/hwmon/max16065.c
drivers/hwmon/max1619.c
drivers/hwmon/max1668.c
drivers/hwmon/max31730.c
drivers/hwmon/max31760.c
drivers/hwmon/max31790.c
drivers/hwmon/max31827.c
drivers/hwmon/max6620.c
drivers/hwmon/max6621.c
drivers/hwmon/max6639.c
drivers/hwmon/max6650.c
drivers/hwmon/max6697.c
drivers/hwmon/mc34vr500.c
drivers/hwmon/mcp3021.c
drivers/hwmon/nct6775-i2c.c
drivers/hwmon/nct7802.c
drivers/hwmon/nct7904.c
drivers/hwmon/pcf8591.c
drivers/hwmon/pmbus/acbel-fsg032.c
drivers/hwmon/pmbus/adm1266.c
drivers/hwmon/pmbus/adm1275.c
drivers/hwmon/pmbus/bel-pfe.c
drivers/hwmon/pmbus/bpa-rs600.c
drivers/hwmon/pmbus/crps.c
drivers/hwmon/pmbus/delta-ahe50dc-fan.c
drivers/hwmon/pmbus/dps920ab.c
drivers/hwmon/pmbus/fsp-3y.c
drivers/hwmon/pmbus/hac300s.c
drivers/hwmon/pmbus/ibm-cffps.c
drivers/hwmon/pmbus/ina233.c
drivers/hwmon/pmbus/inspur-ipsps.c
drivers/hwmon/pmbus/ir35221.c
drivers/hwmon/pmbus/ir36021.c
drivers/hwmon/pmbus/ir38064.c
drivers/hwmon/pmbus/irps5401.c
drivers/hwmon/pmbus/isl68137.c
drivers/hwmon/pmbus/lm25066.c
drivers/hwmon/pmbus/lt7182s.c
drivers/hwmon/pmbus/ltc2978.c
drivers/hwmon/pmbus/ltc3815.c
drivers/hwmon/pmbus/max15301.c
drivers/hwmon/pmbus/max16064.c
drivers/hwmon/pmbus/max16601.c
drivers/hwmon/pmbus/max17616.c
drivers/hwmon/pmbus/max20730.c
drivers/hwmon/pmbus/max20751.c
drivers/hwmon/pmbus/max31785.c
drivers/hwmon/pmbus/max34440.c
drivers/hwmon/pmbus/max8688.c
drivers/hwmon/pmbus/mp2856.c
drivers/hwmon/pmbus/mp2888.c
drivers/hwmon/pmbus/mp2891.c
drivers/hwmon/pmbus/mp2925.c
drivers/hwmon/pmbus/mp29502.c
drivers/hwmon/pmbus/mp2975.c
drivers/hwmon/pmbus/mp2993.c
drivers/hwmon/pmbus/mp5920.c
drivers/hwmon/pmbus/mp5926.c
drivers/hwmon/pmbus/mp5990.c
drivers/hwmon/pmbus/mp9941.c
drivers/hwmon/pmbus/mp9945.c
drivers/hwmon/pmbus/mpq7932.c
drivers/hwmon/pmbus/mpq8785.c
drivers/hwmon/pmbus/pim4328.c
drivers/hwmon/pmbus/pli1209bc.c
drivers/hwmon/pmbus/pm6764tr.c
drivers/hwmon/pmbus/pmbus.c
drivers/hwmon/pmbus/pxe1610.c
drivers/hwmon/pmbus/q54sj108a2.c
drivers/hwmon/pmbus/stef48h28.c
drivers/hwmon/pmbus/stpddc60.c
drivers/hwmon/pmbus/tda38640.c
drivers/hwmon/pmbus/tps25990.c
drivers/hwmon/pmbus/tps40422.c
drivers/hwmon/pmbus/tps53679.c
drivers/hwmon/pmbus/tps546d24.c
drivers/hwmon/pmbus/ucd9000.c
drivers/hwmon/pmbus/ucd9200.c
drivers/hwmon/pmbus/xdp710.c
drivers/hwmon/pmbus/xdp720.c
drivers/hwmon/pmbus/xdpe12284.c
drivers/hwmon/pmbus/xdpe152c4.c
drivers/hwmon/pmbus/xdpe1a2g7b.c
drivers/hwmon/pmbus/zl6100.c
drivers/hwmon/powr1220.c
drivers/hwmon/pt5161l.c
drivers/hwmon/sbtsi_temp.c
drivers/hwmon/sg2042-mcu.c
drivers/hwmon/sht21.c
drivers/hwmon/sht3x.c
drivers/hwmon/sht4x.c
drivers/hwmon/shtc1.c
drivers/hwmon/smsc47m192.c
drivers/hwmon/spd5118.c
drivers/hwmon/stts751.c
drivers/hwmon/tc654.c
drivers/hwmon/tc74.c
drivers/hwmon/thmc50.c
drivers/hwmon/tmp102.c
drivers/hwmon/tmp103.c
drivers/hwmon/tmp108.c
drivers/hwmon/tmp401.c
drivers/hwmon/tmp421.c
drivers/hwmon/tmp464.c
drivers/hwmon/tmp513.c
drivers/hwmon/w83773g.c
drivers/hwmon/w83781d.c
drivers/hwmon/w83791d.c
drivers/hwmon/w83792d.c
drivers/hwmon/w83793.c
drivers/hwmon/w83795.c
drivers/hwmon/w83l785ts.c
drivers/hwmon/w83l786ng.c

index f0b17e59827f9145376b204506e03db447da3ae7..c2df631ae93a3919e59d93aeac965875d979d686 100644 (file)
@@ -205,8 +205,8 @@ static int ad7414_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ad7414_id[] = {
-       { "ad7414" },
-       {}
+       { .name = "ad7414" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, ad7414_id);
 
index 7a132accdf8a3f04ff7479cb7f992eb8059a7bd7..a0c9cf5e12cc4081420e23c368e7c801c0d7c0ed 100644 (file)
@@ -281,9 +281,9 @@ static int ad7418_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ad7418_id[] = {
-       { "ad7416", ad7416 },
-       { "ad7417", ad7417 },
-       { "ad7418", ad7418 },
+       { .name = "ad7416", .driver_data = ad7416 },
+       { .name = "ad7417", .driver_data = ad7417 },
+       { .name = "ad7418", .driver_data = ad7418 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ad7418_id);
index 5e805d4ee76ab4d7354a76884a4b4864775eb3f6..e45adc0b84d1c0330f7e577a20db7d9764ba293d 100644 (file)
@@ -480,7 +480,7 @@ static int adc128_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id adc128_id[] = {
-       { "adc128d818" },
+       { .name = "adc128d818" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adc128_id);
index 389382d54752e4b1b3bc687706aae0cba4046f4f..ccac7ba601e99d862d50c4162c5a3582c2902f14 100644 (file)
@@ -548,8 +548,8 @@ static int adm1025_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id adm1025_id[] = {
-       { "adm1025", adm1025 },
-       { "ne1619", ne1619 },
+       { .name = "adm1025", .driver_data = adm1025 },
+       { .name = "ne1619", .driver_data = ne1619 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adm1025_id);
index c38c932e5d2af6b3812f432622c279ab4ee06b80..3ad82c01f81d5ed8262dd7fde880cd5106488782 100644 (file)
@@ -1857,7 +1857,7 @@ static int adm1026_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id adm1026_id[] = {
-       { "adm1026" },
+       { .name = "adm1026" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adm1026_id);
index 71eea8ae51b95f5b30413edf8c65a51611178a14..6cb0a238e059b95259c4bb0a45bd3029e6ae86ef 100644 (file)
@@ -382,7 +382,7 @@ static int adm1029_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id adm1029_id[] = {
-       { "adm1029" },
+       { .name = "adm1029" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adm1029_id);
index 343118532cdb4ffd10a301a5766ab1a9839dd1b8..24d0d4146c87745b651f68de2fbf4a22f2e40a69 100644 (file)
@@ -1055,8 +1055,8 @@ static int adm1031_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id adm1031_id[] = {
-       { "adm1030", adm1030 },
-       { "adm1031", adm1031 },
+       { .name = "adm1030", .driver_data = adm1030 },
+       { .name = "adm1031", .driver_data = adm1031 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adm1031_id);
index 7888afe8dafd6694c619b9011470eb8f511489a6..dc4d8a214d1b483669f7c9587d7e6323298ef88c 100644 (file)
@@ -246,8 +246,8 @@ static int adm1177_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id adm1177_id[] = {
-       {"adm1177"},
-       {}
+       { .name = "adm1177" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, adm1177_id);
 
index 86f6044b5bd04d40595a3823024945fdc9478adb..586650e8d043f8258aed19a845f19a07e63bfa61 100644 (file)
@@ -794,9 +794,9 @@ static int adm9240_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id adm9240_id[] = {
-       { "adm9240", adm9240 },
-       { "ds1780", ds1780 },
-       { "lm81", lm81 },
+       { .name = "adm9240", .driver_data = adm9240 },
+       { .name = "ds1780", .driver_data = ds1780 },
+       { .name = "lm81", .driver_data = lm81 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adm9240_id);
index 7f43565ca284160c2b70f7475a8e60babc620b9f..149cfcec78dcc2c3a567b3fe6d151871adffbf3e 100644 (file)
@@ -176,8 +176,8 @@ static int ads7828_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ads7828_device_ids[] = {
-       { "ads7828", ads7828 },
-       { "ads7830", ads7830 },
+       { .name = "ads7828", .driver_data = ads7828 },
+       { .name = "ads7830", .driver_data = ads7830 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ads7828_device_ids);
index 73b196a78f3a09afe378dd6816b7288de005f123..0aa7ce0a04be0d51bcdf1f01820c903aec4e451f 100644 (file)
@@ -89,10 +89,10 @@ static int adt7410_i2c_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id adt7410_ids[] = {
-       { "adt7410" },
-       { "adt7420" },
-       { "adt7422" },
-       {}
+       { .name = "adt7410" },
+       { .name = "adt7420" },
+       { .name = "adt7422" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, adt7410_ids);
 
index b9991a69e6c60ee74e49e0ef7263618e0273e38c..5dce2a70172588ac5b5ecaef658687fb780e7ecc 100644 (file)
@@ -670,7 +670,7 @@ static int adt7411_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id adt7411_id[] = {
-       { "adt7411" },
+       { .name = "adt7411" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adt7411_id);
index 174dfee47f7a78bfadd0e5473b1096b7b0bee49a..5101d30ed9c68233ababb307a137b506db228fe9 100644 (file)
@@ -1809,7 +1809,7 @@ static int adt7462_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id adt7462_id[] = {
-       { "adt7462" },
+       { .name = "adt7462" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adt7462_id);
index dbee6926fa0555dd5dc633005f2e23ec0f4e1dac..664349756dc2bf3320345bf1f9e26689c2c0af57 100644 (file)
@@ -1296,7 +1296,7 @@ static void adt7470_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id adt7470_id[] = {
-       { "adt7470" },
+       { .name = "adt7470" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adt7470_id);
index 8cefa14e1633b96e72b06eab21962d8b2306f9ba..7fb96f5395fa6357ad853c1abfcd7afbe9a8a3f3 100644 (file)
@@ -165,10 +165,10 @@ static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END };
 enum chips { adt7473, adt7475, adt7476, adt7490 };
 
 static const struct i2c_device_id adt7475_id[] = {
-       { "adt7473", adt7473 },
-       { "adt7475", adt7475 },
-       { "adt7476", adt7476 },
-       { "adt7490", adt7490 },
+       { .name = "adt7473", .driver_data = adt7473 },
+       { .name = "adt7475", .driver_data = adt7475 },
+       { .name = "adt7476", .driver_data = adt7476 },
+       { .name = "adt7490", .driver_data = adt7490 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adt7475_id);
index 66955395d0583980a825d31b869ffa8fccb3be97..6c263cb577666cd5e5939c579605d268ed1049da 100644 (file)
 enum aht10_variant { aht10, aht20, dht20};
 
 static const struct i2c_device_id aht10_id[] = {
-       { "aht10", aht10 },
-       { "aht20", aht20 },
-       { "dht20", dht20 },
-       { },
+       { .name = "aht10", .driver_data = aht10 },
+       { .name = "aht20", .driver_data = aht20 },
+       { .name = "dht20", .driver_data = dht20 },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, aht10_id);
 
index d5f864b360b03bfda7238cc9d0a9f528d61cea6f..bbc0542a7d380ad0e117703d80114a55ca986ad8 100644 (file)
@@ -1083,7 +1083,7 @@ static int amc6821_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id amc6821_id[] = {
-       { "amc6821" },
+       { .name = "amc6821" },
        { }
 };
 
index 14e7737866c25b5fc81fde193338453131f2d34e..5f5c945051665bd583282f1fd10a1b187684b7fd 100644 (file)
@@ -213,7 +213,7 @@ static struct asb100_data *asb100_update_device(struct device *dev);
 static void asb100_init_client(struct i2c_client *client);
 
 static const struct i2c_device_id asb100_id[] = {
-       { "asb100" },
+       { .name = "asb100" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, asb100_id);
index 87e1867008499b4e60b0dcf0294758f32801bc38..e8145bb13ab34a3dbbc812c235d5ee1dbeaa1052 100644 (file)
@@ -1179,9 +1179,9 @@ static void asc7621_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id asc7621_id[] = {
-       {"asc7621", asc7621},
-       {"asc7621a", asc7621a},
-       {},
+       { .name = "asc7621", .driver_data = asc7621 },
+       { .name = "asc7621a", .driver_data = asc7621a },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, asc7621_id);
index 1c7e9a98b757c3693c5374972a6f59137d7ac8a0..f5de4894f0a2e3d29dc1f5575c0c9edccfdd8687 100644 (file)
@@ -278,7 +278,7 @@ static int atxp1_probe(struct i2c_client *client)
 };
 
 static const struct i2c_device_id atxp1_id[] = {
-       { "atxp1" },
+       { .name = "atxp1" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, atxp1_id);
index 645b8c2e704e6b3d8b63473fbca77e20d14b5b40..4aecf463180fd7df187b86fe0daad475daa799da 100644 (file)
@@ -736,14 +736,14 @@ static void cc2_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id cc2_id[] = {
-       { "cc2d23" },
-       { "cc2d23s" },
-       { "cc2d25" },
-       { "cc2d25s" },
-       { "cc2d33" },
-       { "cc2d33s" },
-       { "cc2d35" },
-       { "cc2d35s" },
+       { .name = "cc2d23" },
+       { .name = "cc2d23s" },
+       { .name = "cc2d25" },
+       { .name = "cc2d25s" },
+       { .name = "cc2d33" },
+       { .name = "cc2d33s" },
+       { .name = "cc2d35" },
+       { .name = "cc2d35s" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, cc2_id);
index 3d4057309950dc109e6c9fd673f512098e9fb143..7e839308e58fa375f0c716f430e4810a9ada47db 100644 (file)
@@ -2515,8 +2515,8 @@ static void dme1737_i2c_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id dme1737_id[] = {
-       { "dme1737", dme1737 },
-       { "sch5027", sch5027 },
+       { .name = "dme1737", .driver_data = dme1737 },
+       { .name = "sch5027", .driver_data = sch5027 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, dme1737_id);
index 42ec34cb8a5f873bf327be1705a9643d6497ed33..0618f6de9679c4cc41f6c3067d88241e0b85f23c 100644 (file)
@@ -367,11 +367,11 @@ static int ds1621_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ds1621_id[] = {
-       { "ds1621", ds1621 },
-       { "ds1625", ds1625 },
-       { "ds1631", ds1631 },
-       { "ds1721", ds1721 },
-       { "ds1731", ds1731 },
+       { .name = "ds1621", .driver_data = ds1621 },
+       { .name = "ds1625", .driver_data = ds1625 },
+       { .name = "ds1631", .driver_data = ds1631 },
+       { .name = "ds1721", .driver_data = ds1721 },
+       { .name = "ds1731", .driver_data = ds1731 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ds1621_id);
index ce397042d90b8682012304956ce7215fd33b3bb6..25287f0fa4c2e472a37b664919d81b33b8072179 100644 (file)
@@ -233,8 +233,8 @@ static int ds620_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ds620_id[] = {
-       {"ds620"},
-       {}
+       { .name = "ds620" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, ds620_id);
index 964a8cb278f16a4b4966d31bb0a68ff4858d092b..cd753b38709f252f1e67fb7c34336e6f57800298 100644 (file)
@@ -639,18 +639,18 @@ static const struct hwmon_chip_info emc1403_chip_info = {
 
 /* Last digit of chip name indicates number of channels */
 static const struct i2c_device_id emc1403_idtable[] = {
-       { "emc1402", emc1402 },
-       { "emc1403", emc1403 },
-       { "emc1404", emc1404 },
-       { "emc1412", emc1402 },
-       { "emc1413", emc1403 },
-       { "emc1414", emc1404 },
-       { "emc1422", emc1402 },
-       { "emc1423", emc1403 },
-       { "emc1424", emc1404 },
-       { "emc1428", emc1428 },
-       { "emc1438", emc1428 },
-       { "emc1442", emc1402 },
+       { .name = "emc1402", .driver_data = emc1402 },
+       { .name = "emc1403", .driver_data = emc1403 },
+       { .name = "emc1404", .driver_data = emc1404 },
+       { .name = "emc1412", .driver_data = emc1402 },
+       { .name = "emc1413", .driver_data = emc1403 },
+       { .name = "emc1414", .driver_data = emc1404 },
+       { .name = "emc1422", .driver_data = emc1402 },
+       { .name = "emc1423", .driver_data = emc1403 },
+       { .name = "emc1424", .driver_data = emc1404 },
+       { .name = "emc1428", .driver_data = emc1428 },
+       { .name = "emc1438", .driver_data = emc1428 },
+       { .name = "emc1442", .driver_data = emc1402 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, emc1403_idtable);
index 9b8e925af030022473a137ca56b79691d019d678..27dc149a3ed995334e2552483b6d91c8898c429e 100644 (file)
@@ -624,7 +624,7 @@ emc2103_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id emc2103_ids[] = {
-       { "emc2103" },
+       { .name = "emc2103" },
        { /* LIST END */ }
 };
 MODULE_DEVICE_TABLE(i2c, emc2103_ids);
index c5a0b214647860b79a5ba27f6b0d52b6d829a449..cd7613e5e5475549cbd933e4018cf51b2b0df93e 100644 (file)
@@ -60,10 +60,10 @@ enum emc230x_product_id {
 };
 
 static const struct i2c_device_id emc2305_ids[] = {
-       { "emc2305" },
-       { "emc2303" },
-       { "emc2302" },
-       { "emc2301" },
+       { .name = "emc2305" },
+       { .name = "emc2303" },
+       { .name = "emc2302" },
+       { .name = "emc2301" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, emc2305_ids);
index 1100c6e5daa775cb790327ba0f6175cc83b6a168..c13ea874868356cdc5d614ef7cb0dc80322a39af 100644 (file)
@@ -464,7 +464,7 @@ static int emc6w201_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id emc6w201_id[] = {
-       { "emc6w201" },
+       { .name = "emc6w201" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, emc6w201_id);
index 7e867f132420134d8b63a6d623aadec92edb9423..cc3a9612f2c0af0693bbcefa194523f8f3b0fbc9 100644 (file)
@@ -877,9 +877,9 @@ static int f75375_detect(struct i2c_client *client,
 }
 
 static const struct i2c_device_id f75375_id[] = {
-       { "f75373", f75373 },
-       { "f75375", f75375 },
-       { "f75387", f75387 },
+       { .name = "f75373", .driver_data = f75373 },
+       { .name = "f75375", .driver_data = f75375 },
+       { .name = "f75387", .driver_data = f75387 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, f75375_id);
index 1211fa2259e52e15736b0704c494bc1f336616c2..019fc32bf3181a7951dafc5c0cf433abeed88a12 100644 (file)
@@ -225,13 +225,13 @@ static struct fschmd_data *fschmd_update_device(struct device *dev);
  */
 
 static const struct i2c_device_id fschmd_id[] = {
-       { "fscpos", fscpos },
-       { "fscher", fscher },
-       { "fscscy", fscscy },
-       { "fschrc", fschrc },
-       { "fschmd", fschmd },
-       { "fschds", fschds },
-       { "fscsyl", fscsyl },
+       { .name = "fscpos", .driver_data = fscpos },
+       { .name = "fscher", .driver_data = fscher },
+       { .name = "fscscy", .driver_data = fscscy },
+       { .name = "fschrc", .driver_data = fschrc },
+       { .name = "fschmd", .driver_data = fschmd },
+       { .name = "fschds", .driver_data = fschds },
+       { .name = "fscsyl", .driver_data = fscsyl },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, fschmd_id);
index 08dcc6a7fb625579434406a7d971055d44d3c679..06be120a349d63d6f2ecc15650197fff3b70aa2e 100644 (file)
@@ -49,7 +49,7 @@
 static const unsigned short normal_i2c[] = { 0x73, I2C_CLIENT_END };
 
 static const struct i2c_device_id fts_id[] = {
-       { "ftsteutates" },
+       { .name = "ftsteutates" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, fts_id);
index 39ae8f8264176123b05dfa70750fcf77a2426894..e2166ee76286073f9bb7806934fc333b2674d79a 100644 (file)
@@ -197,7 +197,7 @@ static int g760a_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id g760a_id[] = {
-       { "g760a" },
+       { .name = "g760a" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, g760a_id);
index 4fa3aa1271daa803ef2a1b448a2368b0866114ca..407cf7af4fdd914558fd76a8813b9a50ce140a83 100644 (file)
@@ -44,9 +44,9 @@
 #define DRVNAME "g762"
 
 static const struct i2c_device_id g762_id[] = {
-       { "g761" },
-       { "g762" },
-       { "g763" },
+       { .name = "g761" },
+       { .name = "g762" },
+       { .name = "g763" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, g762_id);
index 9c68bc0139503c0e72db5cf768c28839ef5ed0f8..742c130cec7f1a01a75d03abfaa80d298f0b35fa 100644 (file)
@@ -642,7 +642,7 @@ static int gl518_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id gl518_id[] = {
-       { "gl518sm" },
+       { .name = "gl518sm" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, gl518_id);
index 972f4f8caa2b7af7568cc2004b267724ba5e17f3..f4fe39912ee292811e63e59a29d5fb57b238d46d 100644 (file)
@@ -885,7 +885,7 @@ static int gl520_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id gl520_id[] = {
-       { "gl520sm" },
+       { .name = "gl520sm" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, gl520_id);
index 85af8299150a52360070d9409e4bb2b8d55aee02..7984be1e706d55c41c41c05a28eb3d0653bccc79 100644 (file)
@@ -233,7 +233,7 @@ static int hih6130_probe(struct i2c_client *client)
 
 /* Device ID table */
 static const struct i2c_device_id hih6130_id[] = {
-       { "hih6130" },
+       { .name = "hih6130" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, hih6130_id);
index 50c6c15f8b180bc36eac7e28e9caece6481299f5..b263cbeca0747f8c1b2f0dc1ca3928d98d125c99 100644 (file)
@@ -169,8 +169,8 @@ static const struct hwmon_chip_info hs3001_chip_info = {
 
 /* device ID table */
 static const struct i2c_device_id hs3001_ids[] = {
-       { "hs3001" },
-       { },
+       { .name = "hs3001" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, hs3001_ids);
index 7521a371aa6cdf8a1fdc6f7dac7ca9fb726e69fb..5d2cdbdb773b07093b4f8a779a62e9f6155a1777 100644 (file)
@@ -322,7 +322,7 @@ static int htu31_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id htu31_id[] = {
-       { "htu31" },
+       { .name = "htu31" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, htu31_id);
index a116f1600e810f4d8869e4684e24b3b12b677ef5..39aca2cdf27f7f75ff48f237a474d079ca0db89e 100644 (file)
@@ -569,7 +569,7 @@ static void ina209_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ina209_id[] = {
-       { "ina209" },
+       { .name = "ina209" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ina209_id);
index ff67b03189f73ca56e307d821c96c1290fb21da5..c20dd164a6a6c9c150163a8e75b90ddea1ea0dec 100644 (file)
@@ -837,12 +837,12 @@ static int ina238_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ina238_id[] = {
-       { "ina228", ina228 },
-       { "ina237", ina237 },
-       { "ina238", ina238 },
-       { "ina700", ina700 },
-       { "ina780", ina780 },
-       { "sq52206", sq52206 },
+       { .name = "ina228", .driver_data = ina228 },
+       { .name = "ina237", .driver_data = ina237 },
+       { .name = "ina238", .driver_data = ina238 },
+       { .name = "ina700", .driver_data = ina700 },
+       { .name = "ina780", .driver_data = ina780 },
+       { .name = "sq52206", .driver_data = sq52206 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ina238_id);
index 613ffb622b7c42b8b6090d3b4ec7b2fa412e24a4..32bf4595bcb482e7192e70de93cfa8cdce20c89e 100644 (file)
@@ -1000,14 +1000,14 @@ static int ina2xx_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ina2xx_id[] = {
-       { "ina219", ina219 },
-       { "ina220", ina219 },
-       { "ina226", ina226 },
-       { "ina230", ina226 },
-       { "ina231", ina226 },
-       { "ina234", ina234 },
-       { "ina260", ina260 },
-       { "sy24655", sy24655 },
+       { .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 = "ina234", .driver_data = ina234 },
+       { .name = "ina260", .driver_data = ina260 },
+       { .name = "sy24655", .driver_data = sy24655 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ina2xx_id);
index 5ecc68dcf16987dff72a003fd5ddab1f15c9819e..3ab5de3a1110294316a78f43029e4e4014cf19dc 100644 (file)
@@ -1002,7 +1002,7 @@ static const struct of_device_id ina3221_of_match_table[] = {
 MODULE_DEVICE_TABLE(of, ina3221_of_match_table);
 
 static const struct i2c_device_id ina3221_ids[] = {
-       { "ina3221" },
+       { .name = "ina3221" },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(i2c, ina3221_ids);
index 96fcfbfff48f4c98e8675c67cea1901e9be6bc21..0c60d2ef28f5ddc58be542ffe1656bf6d297fa18 100644 (file)
@@ -475,7 +475,7 @@ static int isl28022_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id isl28022_ids[] = {
-       { "isl28022" },
+       { .name = "isl28022" },
        { /* LIST END */ }
 };
 MODULE_DEVICE_TABLE(i2c, isl28022_ids);
index 6549dc54378124939828a96bdf24c4d9506d94d7..77fece680358d9dd8c9bc864944553dfe37b7d7a 100644 (file)
@@ -579,7 +579,7 @@ static const struct dev_pm_ops jc42_dev_pm_ops = {
 #endif /* CONFIG_PM */
 
 static const struct i2c_device_id jc42_id[] = {
-       { "jc42" },
+       { .name = "jc42" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, jc42_id);
index 64a335a64a2ebeb721b89db25b63147e348b5edc..2553e49f840158faa5ae4e06b379ea54869f56b0 100644 (file)
@@ -502,8 +502,8 @@ static int pem_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id pem_id[] = {
-       {"lineage_pem"},
-       {}
+       { .name = "lineage_pem" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, pem_id);
 
index 30500b4d2221296587b68f8929e1040ab76d862e..a0d77a7386a9de9fa2a62b1c749962c71cc16a03 100644 (file)
@@ -1152,9 +1152,9 @@ static int lm63_probe(struct i2c_client *client)
  */
 
 static const struct i2c_device_id lm63_id[] = {
-       { "lm63", lm63 },
-       { "lm64", lm64 },
-       { "lm96163", lm96163 },
+       { .name = "lm63", .driver_data = lm63 },
+       { .name = "lm64", .driver_data = lm64 },
+       { .name = "lm96163", .driver_data = lm96163 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm63_id);
index 581b01572e1bd567d58111bf4c6e7c79bcbc6046..63ee67481a16c265e1a2d1d1a506d1430d5c9f6d 100644 (file)
@@ -220,7 +220,7 @@ lm73_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id lm73_ids[] = {
-       { "lm73" },
+       { .name = "lm73" },
        { /* LIST END */ }
 };
 MODULE_DEVICE_TABLE(i2c, lm73_ids);
index 845a0e09ea9fd0a8932f878ba07dd40ab4858788..1e8af5805f2f5a8f63b68592273e467af9748ec3 100644 (file)
@@ -833,37 +833,37 @@ static int lm75_i2c_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id lm75_i2c_ids[] = {
-       { "adt75", adt75, },
-       { "as6200", as6200, },
-       { "at30ts74", at30ts74, },
-       { "ds1775", ds1775, },
-       { "ds75", ds75, },
-       { "ds7505", ds7505, },
-       { "g751", g751, },
-       { "lm75", lm75, },
-       { "lm75a", lm75a, },
-       { "lm75b", lm75b, },
-       { "max6625", max6625, },
-       { "max6626", max6626, },
-       { "max31725", max31725, },
-       { "max31726", max31725, },
-       { "mcp980x", mcp980x, },
-       { "p3t1750", p3t1750, },
-       { "p3t1755", p3t1755, },
-       { "pct2075", pct2075, },
-       { "stds75", stds75, },
-       { "stlm75", stlm75, },
-       { "tcn75", tcn75, },
-       { "tmp100", tmp100, },
-       { "tmp101", tmp101, },
-       { "tmp105", tmp105, },
-       { "tmp112", tmp112, },
-       { "tmp175", tmp175, },
-       { "tmp275", tmp275, },
-       { "tmp75", tmp75, },
-       { "tmp75b", tmp75b, },
-       { "tmp75c", tmp75c, },
-       { "tmp1075", tmp1075, },
+       { .name = "adt75", .driver_data = adt75 },
+       { .name = "as6200", .driver_data = as6200 },
+       { .name = "at30ts74", .driver_data = at30ts74 },
+       { .name = "ds1775", .driver_data = ds1775 },
+       { .name = "ds75", .driver_data = ds75 },
+       { .name = "ds7505", .driver_data = ds7505 },
+       { .name = "g751", .driver_data = g751 },
+       { .name = "lm75", .driver_data = lm75 },
+       { .name = "lm75a", .driver_data = lm75a },
+       { .name = "lm75b", .driver_data = lm75b },
+       { .name = "max6625", .driver_data = max6625 },
+       { .name = "max6626", .driver_data = max6626 },
+       { .name = "max31725", .driver_data = max31725 },
+       { .name = "max31726", .driver_data = max31725 },
+       { .name = "mcp980x", .driver_data = mcp980x },
+       { .name = "p3t1750", .driver_data = p3t1750 },
+       { .name = "p3t1755", .driver_data = p3t1755 },
+       { .name = "pct2075", .driver_data = pct2075 },
+       { .name = "stds75", .driver_data = stds75 },
+       { .name = "stlm75", .driver_data = stlm75 },
+       { .name = "tcn75", .driver_data = tcn75 },
+       { .name = "tmp100", .driver_data = tmp100 },
+       { .name = "tmp101", .driver_data = tmp101 },
+       { .name = "tmp105", .driver_data = tmp105 },
+       { .name = "tmp112", .driver_data = tmp112 },
+       { .name = "tmp175", .driver_data = tmp175 },
+       { .name = "tmp275", .driver_data = tmp275 },
+       { .name = "tmp75", .driver_data = tmp75 },
+       { .name = "tmp75b", .driver_data = tmp75b },
+       { .name = "tmp75c", .driver_data = tmp75c },
+       { .name = "tmp1075", .driver_data = tmp1075 },
        { /* LIST END */ }
 };
 MODULE_DEVICE_TABLE(i2c, lm75_i2c_ids);
index 80f7a6a3f9a29d4b712b21ff90dd869252e3ba23..96c5c2584d37e7a631aaa4c5eed4c4ffe08272fe 100644 (file)
@@ -337,7 +337,7 @@ static int lm77_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id lm77_id[] = {
-       { "lm77" },
+       { .name = "lm77" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm77_id);
index 9378a47bf5afa988e23b0982ea1e70dd0e272ed4..e4834f9eca6a24c4e1f3bb9c0b44bddcdffc4ae9 100644 (file)
@@ -649,8 +649,8 @@ static int lm78_i2c_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id lm78_i2c_id[] = {
-       { "lm78", lm78 },
-       { "lm79", lm79 },
+       { .name = "lm78", .driver_data = lm78 },
+       { .name = "lm79", .driver_data = lm79 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm78_i2c_id);
index 002c669182e1539f5cb013a9c11c47bfddae0f13..94f3dabaaa6f6242d3ce8efb1762d583563fa038 100644 (file)
@@ -622,8 +622,8 @@ static int lm80_probe(struct i2c_client *client)
  */
 
 static const struct i2c_device_id lm80_id[] = {
-       { "lm80" },
-       { "lm96080" },
+       { .name = "lm80" },
+       { .name = "lm96080" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm80_id);
index f800fe2ef18b85a85f8c33f59555955754efc0da..8d49df8c9314fd49299e0b20c96e92a500d25189 100644 (file)
@@ -443,8 +443,8 @@ static int lm83_probe(struct i2c_client *client)
  */
 
 static const struct i2c_device_id lm83_id[] = {
-       { "lm83", lm83 },
-       { "lm82", lm82 },
+       { .name = "lm83", .driver_data = lm83 },
+       { .name = "lm82", .driver_data = lm82 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm83_id);
index 1c244ed75122eaa76516b3fc608ad8dee2c5bf27..c56e164d61c1854a9affadd9d94e79c9c14640b5 100644 (file)
@@ -1618,18 +1618,18 @@ static int lm85_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id lm85_id[] = {
-       { "adm1027", adm1027 },
-       { "adt7463", adt7463 },
-       { "adt7468", adt7468 },
-       { "lm85", lm85 },
-       { "lm85b", lm85 },
-       { "lm85c", lm85 },
-       { "lm96000", lm96000 },
-       { "emc6d100", emc6d100 },
-       { "emc6d101", emc6d100 },
-       { "emc6d102", emc6d102 },
-       { "emc6d103", emc6d103 },
-       { "emc6d103s", emc6d103s },
+       { .name = "adm1027", .driver_data = adm1027 },
+       { .name = "adt7463", .driver_data = adt7463 },
+       { .name = "adt7468", .driver_data = adt7468 },
+       { .name = "lm85", .driver_data = lm85 },
+       { .name = "lm85b", .driver_data = lm85 },
+       { .name = "lm85c", .driver_data = lm85 },
+       { .name = "lm96000", .driver_data = lm96000 },
+       { .name = "emc6d100", .driver_data = emc6d100 },
+       { .name = "emc6d101", .driver_data = emc6d100 },
+       { .name = "emc6d102", .driver_data = emc6d102 },
+       { .name = "emc6d103", .driver_data = emc6d103 },
+       { .name = "emc6d103s", .driver_data = emc6d103s },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm85_id);
index 37bf2d1d3d099897c71e49381940d924c374041c..c09074f447083d9ed5eacf239cc05f5dc8213605 100644 (file)
@@ -981,8 +981,8 @@ static int lm87_probe(struct i2c_client *client)
  */
 
 static const struct i2c_device_id lm87_id[] = {
-       { "lm87" },
-       { "adm1024" },
+       { .name = "lm87" },
+       { .name = "adm1024" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm87_id);
index 1eeb608e59039d2654bb16f63add91497aeed548..c78c96e1bd83fdb51fc22d397ef7e15f4406b3b2 100644 (file)
@@ -243,54 +243,54 @@ enum chips { adm1023, adm1032, adt7461, adt7461a, adt7481,
  */
 
 static const struct i2c_device_id lm90_id[] = {
-       { "adm1020", max1617 },
-       { "adm1021", max1617 },
-       { "adm1023", adm1023 },
-       { "adm1032", adm1032 },
-       { "adt7421", adt7461a },
-       { "adt7461", adt7461 },
-       { "adt7461a", adt7461a },
-       { "adt7481", adt7481 },
-       { "adt7482", adt7481 },
-       { "adt7483a", adt7481 },
-       { "g781", g781 },
-       { "gl523sm", max1617 },
-       { "lm84", lm84 },
-       { "lm86", lm90 },
-       { "lm89", lm90 },
-       { "lm90", lm90 },
-       { "lm99", lm99 },
-       { "max1617", max1617 },
-       { "max6642", max6642 },
-       { "max6646", max6646 },
-       { "max6647", max6646 },
-       { "max6648", max6648 },
-       { "max6649", max6646 },
-       { "max6654", max6654 },
-       { "max6657", max6657 },
-       { "max6658", max6657 },
-       { "max6659", max6659 },
-       { "max6680", max6680 },
-       { "max6681", max6680 },
-       { "max6690", max6654 },
-       { "max6692", max6648 },
-       { "max6695", max6696 },
-       { "max6696", max6696 },
-       { "mc1066", max1617 },
-       { "nct1008", adt7461a },
-       { "nct210", nct210 },
-       { "nct214", nct72 },
-       { "nct218", nct72 },
-       { "nct72", nct72 },
-       { "nct7716", nct7716 },
-       { "nct7717", nct7717 },
-       { "nct7718", nct7718 },
-       { "ne1618", ne1618 },
-       { "w83l771", w83l771 },
-       { "sa56004", sa56004 },
-       { "thmc10", max1617 },
-       { "tmp451", tmp451 },
-       { "tmp461", tmp461 },
+       { .name = "adm1020", .driver_data = max1617 },
+       { .name = "adm1021", .driver_data = max1617 },
+       { .name = "adm1023", .driver_data = adm1023 },
+       { .name = "adm1032", .driver_data = adm1032 },
+       { .name = "adt7421", .driver_data = adt7461a },
+       { .name = "adt7461", .driver_data = adt7461 },
+       { .name = "adt7461a", .driver_data = adt7461a },
+       { .name = "adt7481", .driver_data = adt7481 },
+       { .name = "adt7482", .driver_data = adt7481 },
+       { .name = "adt7483a", .driver_data = adt7481 },
+       { .name = "g781", .driver_data = g781 },
+       { .name = "gl523sm", .driver_data = max1617 },
+       { .name = "lm84", .driver_data = lm84 },
+       { .name = "lm86", .driver_data = lm90 },
+       { .name = "lm89", .driver_data = lm90 },
+       { .name = "lm90", .driver_data = lm90 },
+       { .name = "lm99", .driver_data = lm99 },
+       { .name = "max1617", .driver_data = max1617 },
+       { .name = "max6642", .driver_data = max6642 },
+       { .name = "max6646", .driver_data = max6646 },
+       { .name = "max6647", .driver_data = max6646 },
+       { .name = "max6648", .driver_data = max6648 },
+       { .name = "max6649", .driver_data = max6646 },
+       { .name = "max6654", .driver_data = max6654 },
+       { .name = "max6657", .driver_data = max6657 },
+       { .name = "max6658", .driver_data = max6657 },
+       { .name = "max6659", .driver_data = max6659 },
+       { .name = "max6680", .driver_data = max6680 },
+       { .name = "max6681", .driver_data = max6680 },
+       { .name = "max6690", .driver_data = max6654 },
+       { .name = "max6692", .driver_data = max6648 },
+       { .name = "max6695", .driver_data = max6696 },
+       { .name = "max6696", .driver_data = max6696 },
+       { .name = "mc1066", .driver_data = max1617 },
+       { .name = "nct1008", .driver_data = adt7461a },
+       { .name = "nct210", .driver_data = nct210 },
+       { .name = "nct214", .driver_data = nct72 },
+       { .name = "nct218", .driver_data = nct72 },
+       { .name = "nct72", .driver_data = nct72 },
+       { .name = "nct7716", .driver_data = nct7716 },
+       { .name = "nct7717", .driver_data = nct7717 },
+       { .name = "nct7718", .driver_data = nct7718 },
+       { .name = "ne1618", .driver_data = ne1618 },
+       { .name = "w83l771", .driver_data = w83l771 },
+       { .name = "sa56004", .driver_data = sa56004 },
+       { .name = "thmc10", .driver_data = max1617 },
+       { .name = "tmp451", .driver_data = tmp451 },
+       { .name = "tmp461", .driver_data = tmp461 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm90_id);
index 91a6b7525bb675bc33c47f5a2bd8ff688d4178d3..4aadbabc27bb92b695c882017b720ff489576a72 100644 (file)
@@ -405,10 +405,10 @@ static int lm92_probe(struct i2c_client *client)
  * Module and driver stuff
  */
 
-/* .driver_data is limit register resolution */ 
+/* .driver_data is limit register resolution */
 static const struct i2c_device_id lm92_id[] = {
-       { "lm92", 13 },
-       { "max6635", 9 },
+       { .name = "lm92", .driver_data = 13 },
+       { .name = "max6635", .driver_data = 9 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm92_id);
index be4853fad80fdb3e2e0c113e4cc99af94da666ba..d58a3c2a859304aa4c4145e17943855745c772b7 100644 (file)
@@ -2624,8 +2624,8 @@ static int lm93_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id lm93_id[] = {
-       { "lm93" },
-       { "lm94" },
+       { .name = "lm93" },
+       { .name = "lm94" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm93_id);
index 387b3ba81dbfc1314a3fa461dd1b75606aaead69..74f280b90e3e9c5e31bd6db81a17264ebb155a0a 100644 (file)
@@ -532,8 +532,8 @@ static int lm95234_probe(struct i2c_client *client)
 
 /* Driver data (common to all clients) */
 static const struct i2c_device_id lm95234_id[] = {
-       { "lm95233", lm95233 },
-       { "lm95234", lm95234 },
+       { .name = "lm95233", .driver_data = lm95233 },
+       { .name = "lm95234", .driver_data = lm95234 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm95234_id);
index 456381b0938e75b0eb02995c277628693c2e7381..0cb0edb3845db06f2d1195c89c48573198791338 100644 (file)
@@ -441,8 +441,8 @@ static int lm95241_probe(struct i2c_client *client)
 
 /* Driver data (common to all clients) */
 static const struct i2c_device_id lm95241_id[] = {
-       { "lm95231" },
-       { "lm95241" },
+       { .name = "lm95231" },
+       { .name = "lm95241" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm95241_id);
index 9ed300c6b5f70acd39adf66289f986433ae2c647..11553391f54b1ee42e7bfeaedf72036ea8f521e4 100644 (file)
@@ -546,8 +546,8 @@ static int lm95245_probe(struct i2c_client *client)
 
 /* Driver data (common to all clients) */
 static const struct i2c_device_id lm95245_id[] = {
-       { "lm95235" },
-       { "lm95245" },
+       { .name = "lm95235" },
+       { .name = "lm95245" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm95245_id);
index 3e0e0e0687bdd5c0e82de2402145441b8d76dd19..b521100afe53a0050530863eda605de3a7367d89 100644 (file)
@@ -508,7 +508,7 @@ static int ltc2945_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ltc2945_id[] = {
-       {"ltc2945"},
+       { .name = "ltc2945" },
        { }
 };
 
index 176d710706dd9bababe4a96c8670f4b15fd44f67..e07d33983d5ce35ab0ce4977708e491dc188c228 100644 (file)
@@ -27,8 +27,8 @@ static int ltc2947_probe(struct i2c_client *i2c)
 }
 
 static const struct i2c_device_id ltc2947_id[] = {
-       {"ltc2947"},
-       {}
+       { .name = "ltc2947" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, ltc2947_id);
 
index f1c1933c52cf4f693994e62fd0391e91b825fd1f..a2725e4b2f2136711626de62871cc163e490e5d5 100644 (file)
@@ -259,8 +259,8 @@ static int ltc2990_i2c_probe(struct i2c_client *i2c)
 }
 
 static const struct i2c_device_id ltc2990_i2c_id[] = {
-       { "ltc2990" },
-       {}
+       { .name = "ltc2990" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, ltc2990_i2c_id);
 
index 6d5d4cb846daf3025e55d43cfe311f38bb353621..bc8d803e8cc90dedb45c138542c139468bd0aa66 100644 (file)
@@ -409,8 +409,8 @@ static const struct of_device_id ltc2991_of_match[] = {
 MODULE_DEVICE_TABLE(of, ltc2991_of_match);
 
 static const struct i2c_device_id ltc2991_i2c_id[] = {
-       { "ltc2991" },
-       {}
+       { .name = "ltc2991" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, ltc2991_i2c_id);
 
index 2617c4538af91dde8544afc08006b8962930545e..43b6029c08404875dceb84a5c167c4ca31853df8 100644 (file)
@@ -948,8 +948,8 @@ static const struct of_device_id ltc2992_of_match[] = {
 MODULE_DEVICE_TABLE(of, ltc2992_of_match);
 
 static const struct i2c_device_id ltc2992_i2c_id[] = {
-       {"ltc2992"},
-       {}
+       { .name = "ltc2992" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, ltc2992_i2c_id);
 
index fa66eda78efe4f90b7c6acade3b5cc7ca5597211..fa7c57aae5f5fb61877cf458f27341e962c43b97 100644 (file)
@@ -188,7 +188,7 @@ static int ltc4151_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ltc4151_id[] = {
-       { "ltc4151" },
+       { .name = "ltc4151" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ltc4151_id);
index cce452711cec4de93aea032e5caa40df0309824d..3d439fbbbef93dbcfcee5974b302ac073bc4e939 100644 (file)
@@ -245,7 +245,7 @@ static int ltc4215_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ltc4215_id[] = {
-       { "ltc4215" },
+       { .name = "ltc4215" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ltc4215_id);
index f7eb007fd766bf3562cb2e08fe4a588dc5f01c6e..4fc69be5f2bc95dab2a3547cf6ece8d500688bc9 100644 (file)
@@ -200,7 +200,7 @@ static int ltc4222_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ltc4222_id[] = {
-       {"ltc4222"},
+       { .name = "ltc4222" },
        { }
 };
 
index e8131a48bda7f73cc235d4c14149a4d094dfa541..d87aa9c32c8730d6995c3627e8b45244d5feae49 100644 (file)
@@ -461,7 +461,7 @@ static int ltc4245_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ltc4245_id[] = {
-       { "ltc4245" },
+       { .name = "ltc4245" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ltc4245_id);
index 9750dc9aa336d49dc58b78edfff6421eea06d2cd..37a85125d619c8ee7007d8b4b623b8c8fd5435e9 100644 (file)
@@ -163,7 +163,7 @@ static int ltc4260_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ltc4260_id[] = {
-       {"ltc4260"},
+       { .name = "ltc4260" },
        { }
 };
 
index 2cd218a6a3be7b87b2f5185c2de0a4952a276ddf..a2e52ca0b06e1cc118a5d7588363a667a80db095 100644 (file)
@@ -222,8 +222,8 @@ static int ltc4261_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ltc4261_id[] = {
-       {"ltc4261"},
-       {}
+       { .name = "ltc4261" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, ltc4261_id);
index 5102d86d2619a6602f350cf4741d3dae949ca19c..b294e86d52d16ebb34a8aa4df499ed87bde8e9ac 100644 (file)
@@ -312,7 +312,7 @@ static int max127_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max127_id[] = {
-       { "max127" },
+       { .name = "max127" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max127_id);
index 43fbb9b26b102bb706b45496398844d7375b7555..f8b4217542203df6f72dec195efc435ee2f8d7a9 100644 (file)
@@ -592,12 +592,12 @@ static int max16065_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max16065_id[] = {
-       { "max16065", max16065 },
-       { "max16066", max16066 },
-       { "max16067", max16067 },
-       { "max16068", max16068 },
-       { "max16070", max16070 },
-       { "max16071", max16071 },
+       { .name = "max16065", .driver_data = max16065 },
+       { .name = "max16066", .driver_data = max16066 },
+       { .name = "max16067", .driver_data = max16067 },
+       { .name = "max16068", .driver_data = max16068 },
+       { .name = "max16070", .driver_data = max16070 },
+       { .name = "max16071", .driver_data = max16071 },
        { }
 };
 
index 9b6d03cff4df5f2a197dd76c3173663aa3c9819a..77ef39e8ae7e31de8d997b729016fedf5ac3ecb8 100644 (file)
@@ -366,7 +366,7 @@ static int max1619_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max1619_id[] = {
-       { "max1619" },
+       { .name = "max1619" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max1619_id);
index a8197a86f55908551b214d9c9e9c3a6a58ee61f8..32548f56409ce3e0672ec80561127c2a6d656b79 100644 (file)
@@ -293,9 +293,9 @@ static int max1668_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max1668_id[] = {
-       { "max1668", 5 },
-       { "max1805", 3 },
-       { "max1989", 5 },
+       { .name = "max1668", .driver_data = 5 },
+       { .name = "max1805", .driver_data = 3 },
+       { .name = "max1989", .driver_data = 5 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max1668_id);
index 2f4b419b6c9e38cda5630ba9d052c8d36252e6f4..d132be2d6487d00fad2707d777733b1ffc8d4bcc 100644 (file)
@@ -345,7 +345,7 @@ max31730_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max31730_ids[] = {
-       { "max31730" },
+       { .name = "max31730" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max31730_ids);
index 127e31ca3c8737261191c02800fda43a603f496d..8d3be064b025185eb185bcb95b7556ec327db308 100644 (file)
@@ -555,7 +555,7 @@ static const struct of_device_id max31760_of_match[] = {
 MODULE_DEVICE_TABLE(of, max31760_of_match);
 
 static const struct i2c_device_id max31760_id[] = {
-       {"max31760"},
+       { .name = "max31760" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max31760_id);
index 4f6171a17d9f1f62bc5244137b31c29be29d53f9..db8a0f6f18294b2f328183a8ed9c8bd8da24648f 100644 (file)
@@ -517,7 +517,7 @@ static int max31790_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max31790_id[] = {
-       { "max31790" },
+       { .name = "max31790" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max31790_id);
index 9b2e56c040df1aa8c8924c081087a43982e694d7..6a7048fdd8ab7aa22172aa28c676aa681841cf8d 100644 (file)
@@ -463,9 +463,9 @@ static struct attribute *max31827_attrs[] = {
 ATTRIBUTE_GROUPS(max31827);
 
 static const struct i2c_device_id max31827_i2c_ids[] = {
-       { "max31827", max31827 },
-       { "max31828", max31828 },
-       { "max31829", max31829 },
+       { .name = "max31827", .driver_data = max31827 },
+       { .name = "max31828", .driver_data = max31828 },
+       { .name = "max31829", .driver_data = max31829 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max31827_i2c_ids);
index 4316dcdd03fc21cea8912a3f1fdcd121cb1d3dca..100acf357b5f5bea6fc3bf52c72d5de8ee443766 100644 (file)
@@ -474,7 +474,7 @@ static int max6620_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max6620_id[] = {
-       { "max6620" },
+       { .name = "max6620" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max6620_id);
index a7066f3a0bb4e52893792baef293ef7c7c615f6c..e86ec6d237ca63b8d8ed2c05c9a6bf3298d86b3f 100644 (file)
@@ -537,7 +537,7 @@ static int max6621_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max6621_id[] = {
-       { MAX6621_DRV_NAME },
+       { .name = MAX6621_DRV_NAME },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max6621_id);
index 163d31f17bd49a9c8d80547e62607345ef8d829a..dd5f4b3b128dae508ddc0e993f72ca8af77c2e0a 100644 (file)
@@ -778,7 +778,7 @@ static int max6639_resume(struct device *dev)
 }
 
 static const struct i2c_device_id max6639_id[] = {
-       {"max6639"},
+       { .name = "max6639" },
        { }
 };
 
index 56b8157885bbfd12aac02d97c150761fc7c4f140..f0140ef9c40ee1ae12238e5c954f27ca6f855681 100644 (file)
@@ -807,8 +807,8 @@ static int max6650_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max6650_id[] = {
-       { "max6650", 1 },
-       { "max6651", 4 },
+       { .name = "max6650", .driver_data = 1 },
+       { .name = "max6651", .driver_data = 4 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max6650_id);
index dd906cf491cae79e8307728c37cff8848b2638aa..c864093f015c02be2f4c2b2523c787851e992be8 100644 (file)
@@ -564,16 +564,16 @@ static int max6697_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max6697_id[] = {
-       { "max6581", max6581 },
-       { "max6602", max6602 },
-       { "max6622", max6622 },
-       { "max6636", max6636 },
-       { "max6689", max6689 },
-       { "max6693", max6693 },
-       { "max6694", max6694 },
-       { "max6697", max6697 },
-       { "max6698", max6698 },
-       { "max6699", max6699 },
+       { .name = "max6581", .driver_data = max6581 },
+       { .name = "max6602", .driver_data = max6602 },
+       { .name = "max6622", .driver_data = max6622 },
+       { .name = "max6636", .driver_data = max6636 },
+       { .name = "max6689", .driver_data = max6689 },
+       { .name = "max6693", .driver_data = max6693 },
+       { .name = "max6694", .driver_data = max6694 },
+       { .name = "max6697", .driver_data = max6697 },
+       { .name = "max6698", .driver_data = max6698 },
+       { .name = "max6699", .driver_data = max6699 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max6697_id);
index 84458e4533d860031c3b38c213951304942697f0..8cb9d5c09033f01a06572fa1bf49f8be0d5bac78 100644 (file)
@@ -235,8 +235,8 @@ static int mc34vr500_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id mc34vr500_id[] = {
-       { "mc34vr500" },
-       { },
+       { .name = "mc34vr500" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, mc34vr500_id);
 
index bcddf6804d3abe699edee60c681b2f24b438eb42..d6b0ebf27941f5df53718798e9c2df670bca9678 100644 (file)
@@ -177,8 +177,8 @@ static int mcp3021_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id mcp3021_id[] = {
-       { "mcp3021", mcp3021 },
-       { "mcp3221", mcp3221 },
+       { .name = "mcp3021", .driver_data = mcp3021 },
+       { .name = "mcp3221", .driver_data = mcp3221 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, mcp3021_id);
index ba71d776a2911b44ab44a00e35317d0ee089b350..07783910c05882442681043ab33978248ad5ac2a 100644 (file)
@@ -93,19 +93,19 @@ static const struct of_device_id __maybe_unused nct6775_i2c_of_match[] = {
 MODULE_DEVICE_TABLE(of, nct6775_i2c_of_match);
 
 static const struct i2c_device_id nct6775_i2c_id[] = {
-       { "nct6106", nct6106 },
-       { "nct6116", nct6116 },
-       { "nct6775", nct6775 },
-       { "nct6776", nct6776 },
-       { "nct6779", nct6779 },
-       { "nct6791", nct6791 },
-       { "nct6792", nct6792 },
-       { "nct6793", nct6793 },
-       { "nct6795", nct6795 },
-       { "nct6796", nct6796 },
-       { "nct6797", nct6797 },
-       { "nct6798", nct6798 },
-       { "nct6799", nct6799 },
+       { .name = "nct6106", .driver_data = nct6106 },
+       { .name = "nct6116", .driver_data = nct6116 },
+       { .name = "nct6775", .driver_data = nct6775 },
+       { .name = "nct6776", .driver_data = nct6776 },
+       { .name = "nct6779", .driver_data = nct6779 },
+       { .name = "nct6791", .driver_data = nct6791 },
+       { .name = "nct6792", .driver_data = nct6792 },
+       { .name = "nct6793", .driver_data = nct6793 },
+       { .name = "nct6795", .driver_data = nct6795 },
+       { .name = "nct6796", .driver_data = nct6796 },
+       { .name = "nct6797", .driver_data = nct6797 },
+       { .name = "nct6798", .driver_data = nct6798 },
+       { .name = "nct6799", .driver_data = nct6799 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, nct6775_i2c_id);
index 8c9351da12c6e79c14eccae64ba64e792c76d5a9..9c3e169547a9a115689354582d0d585433983257 100644 (file)
@@ -1193,7 +1193,7 @@ static const unsigned short nct7802_address_list[] = {
 };
 
 static const struct i2c_device_id nct7802_idtable[] = {
-       { "nct7802" },
+       { .name = "nct7802" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, nct7802_idtable);
index 2fa091720c79b1c66bd181290414f08c1e2c2da2..976b8a008e448005281b98fbda544e2338cbce75 100644 (file)
@@ -1146,8 +1146,8 @@ static int nct7904_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id nct7904_id[] = {
-       {"nct7904"},
-       {}
+       { .name = "nct7904" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, nct7904_id);
 
index 167d2fe4d5432cb34c548fe20e28071ca20f3bd0..c0220ebfd4b60dd7e920eba1b02e2969cc4f78db 100644 (file)
@@ -285,7 +285,7 @@ static int pcf8591_read_channel(struct device *dev, int channel)
 }
 
 static const struct i2c_device_id pcf8591_id[] = {
-       { "pcf8591" },
+       { .name = "pcf8591" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, pcf8591_id);
index 9f07fb4abaffd44834f3861f7e1d3780e48c5c0c..d283005d92ae74ea28a69427cc97f03d5a1e2d39 100644 (file)
@@ -49,8 +49,8 @@ static void acbel_fsg032_init_debugfs(struct i2c_client *client)
 }
 
 static const struct i2c_device_id acbel_fsg032_id[] = {
-       { "acbel_fsg032" },
-       {}
+       { .name = "acbel_fsg032" },
+       { }
 };
 
 static struct pmbus_driver_info acbel_fsg032_info = {
index 6f6ad7b20e9a90b61dcad56b8f24f686cb7ed6af..360a7730b807015c9c8461d89c8e21b4bcc090af 100644 (file)
@@ -510,7 +510,7 @@ static const struct of_device_id adm1266_of_match[] = {
 MODULE_DEVICE_TABLE(of, adm1266_of_match);
 
 static const struct i2c_device_id adm1266_id[] = {
-       { "adm1266" },
+       { .name = "adm1266" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adm1266_id);
index bc2a6a07dc3e2ea6840393c6a8f393cd6aa7c28f..2e5963fb1e127ad779312dca1eff63d90cc56eb2 100644 (file)
@@ -478,16 +478,16 @@ static int adm1275_read_byte_data(struct i2c_client *client, int page, int reg)
 }
 
 static const struct i2c_device_id adm1275_id[] = {
-       { "adm1075", adm1075 },
-       { "adm1272", adm1272 },
-       { "adm1273", adm1273 },
-       { "adm1275", adm1275 },
-       { "adm1276", adm1276 },
-       { "adm1278", adm1278 },
-       { "adm1281", adm1281 },
-       { "adm1293", adm1293 },
-       { "adm1294", adm1294 },
-       { "mc09c", sq24905c },
+       { .name = "adm1075", .driver_data = adm1075 },
+       { .name = "adm1272", .driver_data = adm1272 },
+       { .name = "adm1273", .driver_data = adm1273 },
+       { .name = "adm1275", .driver_data = adm1275 },
+       { .name = "adm1276", .driver_data = adm1276 },
+       { .name = "adm1278", .driver_data = adm1278 },
+       { .name = "adm1281", .driver_data = adm1281 },
+       { .name = "adm1293", .driver_data = adm1293 },
+       { .name = "adm1294", .driver_data = adm1294 },
+       { .name = "mc09c", .driver_data = sq24905c },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, adm1275_id);
index 6499556f735b4274bdf4a2f408a850847aecd68e..9e3dc9d29c5628fec5cd8c2eca9ca726ee98b31e 100644 (file)
@@ -106,9 +106,9 @@ static int pfe_pmbus_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id pfe_device_id[] = {
-       {"pfe1100", pfe1100},
-       {"pfe3000", pfe3000},
-       {}
+       { .name = "pfe1100", .driver_data = pfe1100 },
+       { .name = "pfe3000", .driver_data = pfe3000 },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, pfe_device_id);
index 6c3875ba37a08179550e32c72965f7d8bb895c14..e364dcb59dd427db1758604398fcc0b72984cdb5 100644 (file)
@@ -147,9 +147,9 @@ static struct pmbus_driver_info bpa_rs600_info = {
 };
 
 static const struct i2c_device_id bpa_rs600_id[] = {
-       { "bpa-rs600", bpa_rs600 },
-       { "bpd-rs600", bpd_rs600 },
-       {},
+       { .name = "bpa-rs600", .driver_data = bpa_rs600 },
+       { .name = "bpd-rs600", .driver_data = bpd_rs600 },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, bpa_rs600_id);
 
index 164b33fed312f61341917cf3ccbd0e5cc84c16c6..266ec89475190c303034be2d27a44c4b90c31457 100644 (file)
@@ -10,8 +10,8 @@
 #include "pmbus.h"
 
 static const struct i2c_device_id crps_id[] = {
-       { "intel_crps185" },
-       {}
+       { .name = "intel_crps185" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, crps_id);
 
index 3850eaea75da2a4be91a21d40ad80f25f6dbfe5f..2df655b20ea57db967c239f6f353ae01dba60a80 100644 (file)
@@ -103,7 +103,7 @@ static int ahe50dc_fan_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ahe50dc_fan_id[] = {
-       { "ahe50dc_fan" },
+       { .name = "ahe50dc_fan" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ahe50dc_fan_id);
index 325111a955e616ae374de56eadc111a094dc1473..0d2901c314c2b9a15fa35cf6c85e86ba88066024 100644 (file)
@@ -191,8 +191,8 @@ static const struct of_device_id __maybe_unused dps920ab_of_match[] = {
 MODULE_DEVICE_TABLE(of, dps920ab_of_match);
 
 static const struct i2c_device_id dps920ab_device_id[] = {
-       { "dps920ab" },
-       {}
+       { .name = "dps920ab" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, dps920ab_device_id);
 
index cad4d2330003655f4ace92f706c1f23356e22d54..44cf2db9364b93cc217dc68ba173fbb8f4c4b426 100644 (file)
@@ -271,8 +271,8 @@ static int fsp3y_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id fsp3y_id[] = {
-       {"ym2151e", ym2151e},
-       {"yh5151e", yh5151e},
+       { .name = "ym2151e", .driver_data = ym2151e },
+       { .name = "yh5151e", .driver_data = yh5151e },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, fsp3y_id);
index a073db1cfe2e499c4916745bb96c30639a84ffe4..761e53890ebc4baabb735f850245eb2dba32dd88 100644 (file)
@@ -112,8 +112,8 @@ static const struct of_device_id hac300s_of_match[] = {
 MODULE_DEVICE_TABLE(of, hac300s_of_match);
 
 static const struct i2c_device_id hac300s_id[] = {
-       {"hac300s", 0},
-       {}
+       { .name = "hac300s" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, hac300s_id);
 
index 6c7256d997f46ba81c8ae4a8069d76b32490d5ce..aad94bcb9ceb5f0ee1f06c1c1faeb7bad1e3cb39 100644 (file)
@@ -472,10 +472,10 @@ static struct pmbus_platform_data ibm_cffps_pdata = {
 };
 
 static const struct i2c_device_id ibm_cffps_id[] = {
-       { "ibm_cffps1", cffps1 },
-       { "ibm_cffps2", cffps2 },
-       { "ibm_cffps", cffps_unknown },
-       {}
+       { .name = "ibm_cffps1", .driver_data = cffps1 },
+       { .name = "ibm_cffps2", .driver_data = cffps2 },
+       { .name = "ibm_cffps", .driver_data = cffps_unknown },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, ibm_cffps_id);
 
index 652087589c55a6bb135c22ef227225ac0ffe5940..c72aa258b7c678917cb4822e35c586df21893d57 100644 (file)
@@ -168,8 +168,8 @@ static int ina233_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ina233_id[] = {
-       {"ina233", 0},
-       {}
+       { .name = "ina233" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, ina233_id);
 
index 074e0f164ee1c9d308e6a6d34209f48895d1a30f..57c0fc16909cfba05fb7cd24ebbf851eb54bb929 100644 (file)
@@ -197,8 +197,8 @@ static int ipsps_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ipsps_id[] = {
-       { "ipsps1" },
-       {}
+       { .name = "ipsps1" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, ipsps_id);
 
index 46d8f334d49a453e8a8abac9fa053b54409b5001..b2120fc76f4092ba964423417040c1942960ce48 100644 (file)
@@ -126,8 +126,8 @@ static int ir35221_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ir35221_id[] = {
-       {"ir35221"},
-       {}
+       { .name = "ir35221" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, ir35221_id);
index 34ce15fc708bcd422168803d44d7607a672f7766..0dce4c3f666f5ab9a588a522b6c8ce074d763610 100644 (file)
@@ -51,8 +51,8 @@ static int ir36021_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ir36021_id[] = {
-       { "ir36021" },
-       {},
+       { .name = "ir36021" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, ir36021_id);
 
index 7b4188e8bf48303039c77c9d33b83cf926fd01c8..47ce88e9d13a3106ed87132c1f3771257c3606d0 100644 (file)
@@ -53,11 +53,11 @@ static int ir38064_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ir38064_id[] = {
-       {"ir38060"},
-       {"ir38064"},
-       {"ir38164"},
-       {"ir38263"},
-       {}
+       { .name = "ir38060" },
+       { .name = "ir38064" },
+       { .name = "ir38164" },
+       { .name = "ir38263" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, ir38064_id);
index 43674c64841d5cb968241ae44f56057d215c7690..1694b96d7abf979e03be9fefac86042c4c12a42f 100644 (file)
@@ -44,8 +44,8 @@ static int irps5401_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id irps5401_id[] = {
-       {"irps5401"},
-       {}
+       { .name = "irps5401" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, irps5401_id);
index 21d047b577a47902fead92334f2a65220f78b47e..2f7f825bfb69e0c3d33731830c9ee3f86bd0d74f 100644 (file)
@@ -409,54 +409,54 @@ static int isl68137_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id raa_dmpvr_id[] = {
-       {"isl68137", raa_dmpvr1_2rail},
-       {"isl68220", raa_dmpvr2_2rail},
-       {"isl68221", raa_dmpvr2_3rail},
-       {"isl68222", raa_dmpvr2_2rail},
-       {"isl68223", raa_dmpvr2_2rail},
-       {"isl68224", raa_dmpvr2_3rail},
-       {"isl68225", raa_dmpvr2_2rail},
-       {"isl68226", raa_dmpvr2_3rail},
-       {"isl68227", raa_dmpvr2_1rail},
-       {"isl68229", raa_dmpvr2_3rail},
-       {"isl68233", raa_dmpvr2_2rail},
-       {"isl68239", raa_dmpvr2_3rail},
-
-       {"isl69222", raa_dmpvr2_2rail},
-       {"isl69223", raa_dmpvr2_3rail},
-       {"isl69224", raa_dmpvr2_2rail},
-       {"isl69225", raa_dmpvr2_2rail},
-       {"isl69227", raa_dmpvr2_3rail},
-       {"isl69228", raa_dmpvr2_3rail},
-       {"isl69234", raa_dmpvr2_2rail},
-       {"isl69236", raa_dmpvr2_2rail},
-       {"isl69239", raa_dmpvr2_3rail},
-       {"isl69242", raa_dmpvr2_2rail},
-       {"isl69243", raa_dmpvr2_1rail},
-       {"isl69247", raa_dmpvr2_2rail},
-       {"isl69248", raa_dmpvr2_2rail},
-       {"isl69254", raa_dmpvr2_2rail},
-       {"isl69255", raa_dmpvr2_2rail},
-       {"isl69256", raa_dmpvr2_2rail},
-       {"isl69259", raa_dmpvr2_2rail},
-       {"isl69260", raa_dmpvr2_2rail},
-       {"isl69268", raa_dmpvr2_2rail},
-       {"isl69269", raa_dmpvr2_3rail},
-       {"isl69298", raa_dmpvr2_2rail},
-
-       {"raa228000", raa_dmpvr2_hv},
-       {"raa228004", raa_dmpvr2_hv},
-       {"raa228006", raa_dmpvr2_hv},
-       {"raa228228", raa_dmpvr2_2rail_nontc},
-       {"raa228244", raa_dmpvr2_2rail_nontc},
-       {"raa228246", raa_dmpvr2_2rail_nontc},
-       {"raa228942", raa_dmpvr2_2rail_nontc},
-       {"raa228943", raa_dmpvr2_2rail_nontc},
-       {"raa229001", raa_dmpvr2_2rail},
-       {"raa229004", raa_dmpvr2_2rail},
-       {"raa229141", raa_dmpvr2_2rail_pmbus},
-       {"raa229621", raa_dmpvr2_2rail},
-       {}
+       { .name = "isl68137", .driver_data = raa_dmpvr1_2rail },
+       { .name = "isl68220", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl68221", .driver_data = raa_dmpvr2_3rail },
+       { .name = "isl68222", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl68223", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl68224", .driver_data = raa_dmpvr2_3rail },
+       { .name = "isl68225", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl68226", .driver_data = raa_dmpvr2_3rail },
+       { .name = "isl68227", .driver_data = raa_dmpvr2_1rail },
+       { .name = "isl68229", .driver_data = raa_dmpvr2_3rail },
+       { .name = "isl68233", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl68239", .driver_data = raa_dmpvr2_3rail },
+
+       { .name = "isl69222", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69223", .driver_data = raa_dmpvr2_3rail },
+       { .name = "isl69224", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69225", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69227", .driver_data = raa_dmpvr2_3rail },
+       { .name = "isl69228", .driver_data = raa_dmpvr2_3rail },
+       { .name = "isl69234", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69236", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69239", .driver_data = raa_dmpvr2_3rail },
+       { .name = "isl69242", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69243", .driver_data = raa_dmpvr2_1rail },
+       { .name = "isl69247", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69248", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69254", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69255", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69256", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69259", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69260", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69268", .driver_data = raa_dmpvr2_2rail },
+       { .name = "isl69269", .driver_data = raa_dmpvr2_3rail },
+       { .name = "isl69298", .driver_data = raa_dmpvr2_2rail },
+
+       { .name = "raa228000", .driver_data = raa_dmpvr2_hv },
+       { .name = "raa228004", .driver_data = raa_dmpvr2_hv },
+       { .name = "raa228006", .driver_data = raa_dmpvr2_hv },
+       { .name = "raa228228", .driver_data = raa_dmpvr2_2rail_nontc },
+       { .name = "raa228244", .driver_data = raa_dmpvr2_2rail_nontc },
+       { .name = "raa228246", .driver_data = raa_dmpvr2_2rail_nontc },
+       { .name = "raa228942", .driver_data = raa_dmpvr2_2rail_nontc },
+       { .name = "raa228943", .driver_data = raa_dmpvr2_2rail_nontc },
+       { .name = "raa229001", .driver_data = raa_dmpvr2_2rail },
+       { .name = "raa229004", .driver_data = raa_dmpvr2_2rail },
+       { .name = "raa229141", .driver_data = raa_dmpvr2_2rail_pmbus },
+       { .name = "raa229621", .driver_data = raa_dmpvr2_2rail },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, raa_dmpvr_id);
index dd7275a67a0abe640ff6c0fcfa0d187129acea1b..0f7df7e2c9c5bac2b87ac47743240950235807e8 100644 (file)
@@ -442,11 +442,11 @@ static const struct regulator_desc lm25066_reg_desc[] = {
 #endif
 
 static const struct i2c_device_id lm25066_id[] = {
-       {"lm25056", lm25056},
-       {"lm25066", lm25066},
-       {"lm5064", lm5064},
-       {"lm5066", lm5066},
-       {"lm5066i", lm5066i},
+       { .name = "lm25056", .driver_data = lm25056 },
+       { .name = "lm25066", .driver_data = lm25066 },
+       { .name = "lm5064", .driver_data = lm5064 },
+       { .name = "lm5066", .driver_data = lm5066 },
+       { .name = "lm5066i", .driver_data = lm5066i },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm25066_id);
index 9d6d50f39bd6531ae84f361cc069bfe80748d33a..f8971a786f25aa273364c149ffbe4d4eb1eccf0f 100644 (file)
@@ -168,8 +168,8 @@ static int lt7182s_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id lt7182s_id[] = {
-       { "lt7182s" },
-       {}
+       { .name = "lt7182s" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, lt7182s_id);
 
index d69a5e675e80eda346f7a977fd478a96ae80f8a7..10877b0867fd61adfece4445f00d31b583108bc8 100644 (file)
@@ -538,36 +538,36 @@ static int ltc2978_write_word_data(struct i2c_client *client, int page,
 }
 
 static const struct i2c_device_id ltc2978_id[] = {
-       {"lt7170", lt7170},
-       {"lt7171", lt7171},
-       {"ltc2972", ltc2972},
-       {"ltc2974", ltc2974},
-       {"ltc2975", ltc2975},
-       {"ltc2977", ltc2977},
-       {"ltc2978", ltc2978},
-       {"ltc2979", ltc2979},
-       {"ltc2980", ltc2980},
-       {"ltc3880", ltc3880},
-       {"ltc3882", ltc3882},
-       {"ltc3883", ltc3883},
-       {"ltc3884", ltc3884},
-       {"ltc3886", ltc3886},
-       {"ltc3887", ltc3887},
-       {"ltc3889", ltc3889},
-       {"ltc7132", ltc7132},
-       {"ltc7841", ltc7841},
-       {"ltc7880", ltc7880},
-       {"ltm2987", ltm2987},
-       {"ltm4664", ltm4664},
-       {"ltm4673", ltm4673},
-       {"ltm4675", ltm4675},
-       {"ltm4676", ltm4676},
-       {"ltm4677", ltm4677},
-       {"ltm4678", ltm4678},
-       {"ltm4680", ltm4680},
-       {"ltm4686", ltm4686},
-       {"ltm4700", ltm4700},
-       {}
+       { .name = "lt7170", .driver_data = lt7170 },
+       { .name = "lt7171", .driver_data = lt7171 },
+       { .name = "ltc2972", .driver_data = ltc2972 },
+       { .name = "ltc2974", .driver_data = ltc2974 },
+       { .name = "ltc2975", .driver_data = ltc2975 },
+       { .name = "ltc2977", .driver_data = ltc2977 },
+       { .name = "ltc2978", .driver_data = ltc2978 },
+       { .name = "ltc2979", .driver_data = ltc2979 },
+       { .name = "ltc2980", .driver_data = ltc2980 },
+       { .name = "ltc3880", .driver_data = ltc3880 },
+       { .name = "ltc3882", .driver_data = ltc3882 },
+       { .name = "ltc3883", .driver_data = ltc3883 },
+       { .name = "ltc3884", .driver_data = ltc3884 },
+       { .name = "ltc3886", .driver_data = ltc3886 },
+       { .name = "ltc3887", .driver_data = ltc3887 },
+       { .name = "ltc3889", .driver_data = ltc3889 },
+       { .name = "ltc7132", .driver_data = ltc7132 },
+       { .name = "ltc7841", .driver_data = ltc7841 },
+       { .name = "ltc7880", .driver_data = ltc7880 },
+       { .name = "ltm2987", .driver_data = ltm2987 },
+       { .name = "ltm4664", .driver_data = ltm4664 },
+       { .name = "ltm4673", .driver_data = ltm4673 },
+       { .name = "ltm4675", .driver_data = ltm4675 },
+       { .name = "ltm4676", .driver_data = ltm4676 },
+       { .name = "ltm4677", .driver_data = ltm4677 },
+       { .name = "ltm4678", .driver_data = ltm4678 },
+       { .name = "ltm4680", .driver_data = ltm4680 },
+       { .name = "ltm4686", .driver_data = ltm4686 },
+       { .name = "ltm4700", .driver_data = ltm4700 },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, ltc2978_id);
 
index 824c16a75e2c01f797030be6354cec6a69498ca0..0219d03adb03778cabf685de19a0a2d18c367041 100644 (file)
@@ -143,7 +143,7 @@ static int ltc3815_write_word_data(struct i2c_client *client, int page,
 }
 
 static const struct i2c_device_id ltc3815_id[] = {
-       {"ltc3815"},
+       { .name = "ltc3815" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ltc3815_id);
index d5810b88ea8d8dad151e2597da205dbab6155ae1..4c36f1ea27ee65e5337426b7bd2c0eaeb7172bad 100644 (file)
 #include "pmbus.h"
 
 static const struct i2c_device_id max15301_id[] = {
-       { "bmr461" },
-       { "max15301" },
-       { "max15303" },
-       {}
+       { .name = "bmr461" },
+       { .name = "max15301" },
+       { .name = "max15303" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, max15301_id);
 
index eb84915c2a83de87f24d636d3359e7895ed4d7a9..351a1f5359994513d08340d29861f4a648605290 100644 (file)
@@ -91,8 +91,8 @@ static int max16064_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max16064_id[] = {
-       {"max16064"},
-       {}
+       { .name = "max16064" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, max16064_id);
index 36dc13424d9290f672af2fcb11b02492066a4c22..3dd1f6fd003b89823b8926086db1951b27f2bb42 100644 (file)
@@ -263,11 +263,11 @@ static void max16601_remove(void *_data)
 }
 
 static const struct i2c_device_id max16601_id[] = {
-       {"max16508", max16508},
-       {"max16600", max16600},
-       {"max16601", max16601},
-       {"max16602", max16602},
-       {}
+       { .name = "max16508", .driver_data = max16508 },
+       { .name = "max16600", .driver_data = max16600 },
+       { .name = "max16601", .driver_data = max16601 },
+       { .name = "max16602", .driver_data = max16602 },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, max16601_id);
 
index 1d4a0ddb95bb6e8349932062be0d918f935cd846..744fa5aefe9388a74e86ccd307574be1cc5ac211 100644 (file)
@@ -46,7 +46,7 @@ static int max17616_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max17616_id[] = {
-       { "max17616" },
+       { .name = "max17616" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max17616_id);
index fe03164788dfa2f42006ab080ab736838578921f..4031f894e6ae7ee84f73df9bac8e67074ea9a0d8 100644 (file)
@@ -751,11 +751,11 @@ static int max20730_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max20730_id[] = {
-       { "max20710", max20710 },
-       { "max20730", max20730 },
-       { "max20734", max20734 },
-       { "max20743", max20743 },
-       { },
+       { .name = "max20710", .driver_data = max20710 },
+       { .name = "max20730", .driver_data = max20730 },
+       { .name = "max20734", .driver_data = max20734 },
+       { .name = "max20743", .driver_data = max20743 },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, max20730_id);
index ac8c431221338becad83548d6c18bf73cf779444..e85676433dca11782ff2e9352c480dcb998a6bc6 100644 (file)
@@ -32,8 +32,8 @@ static int max20751_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max20751_id[] = {
-       {"max20751"},
-       {}
+       { .name = "max20751" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, max20751_id);
index 3caa76bcbeb5ead96d02050b32b7eb02c14d250c..bdcce810a4792c1fba69434473d00bb20fb2f18c 100644 (file)
@@ -447,10 +447,10 @@ static int max31785_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max31785_id[] = {
-       { "max31785" },
-       { "max31785a" },
-       { "max31785b" },
-       { },
+       { .name = "max31785" },
+       { .name = "max31785a" },
+       { .name = "max31785b" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, max31785_id);
index cc96bb22f8f5a0a6e073d81530c636aa10fb98cd..4525b9fc56267479534251a1444aa09181615ac6 100644 (file)
@@ -644,15 +644,15 @@ static int max34440_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max34440_id[] = {
-       {"adpm12160", adpm12160},
-       {"adpm12200", adpm12200},
-       {"max34440", max34440},
-       {"max34441", max34441},
-       {"max34446", max34446},
-       {"max34451", max34451},
-       {"max34460", max34460},
-       {"max34461", max34461},
-       {}
+       { .name = "adpm12160", .driver_data = adpm12160 },
+       { .name = "adpm12200", .driver_data = adpm12200 },
+       { .name = "max34440", .driver_data = max34440 },
+       { .name = "max34441", .driver_data = max34441 },
+       { .name = "max34446", .driver_data = max34446 },
+       { .name = "max34451", .driver_data = max34451 },
+       { .name = "max34460", .driver_data = max34460 },
+       { .name = "max34461", .driver_data = max34461 },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, max34440_id);
 
index b3a2a7492bbfcf2147215c39e795f5e58ba3e606..212b28fa4bf226e22e2dc94020adf1bb930d8cdf 100644 (file)
@@ -171,7 +171,7 @@ static int max8688_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max8688_id[] = {
-       {"max8688"},
+       { .name = "max8688" },
        { }
 };
 
index e83c70a3583f80a4e7246a045935f712b6adeab2..3d6621e36fd398c6a513867eb23872d13faddb95 100644 (file)
@@ -54,9 +54,9 @@ static const int mp2856_max_phases[][MP2856_PAGE_NUM] = {
 };
 
 static const struct i2c_device_id mp2856_id[] = {
-       {"mp2856", mp2856},
-       {"mp2857", mp2857},
-       {}
+       { .name = "mp2856", .driver_data = mp2856 },
+       { .name = "mp2857", .driver_data = mp2857 },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, mp2856_id);
index 772a623ca7d0a1788549bad144ba3e99df210487..c5f35daa3fe11e01bcf74da55171b403032d7892 100644 (file)
@@ -378,8 +378,8 @@ static int mp2888_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id mp2888_id[] = {
-       {"mp2888"},
-       {}
+       { .name = "mp2888" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, mp2888_id);
index f8f4c91ec23ccde85ad84f21fbb05f303df06185..316c1fc0d6ccf12eaddb6f1931aaf65d8fc40761 100644 (file)
@@ -572,7 +572,7 @@ static int mp2891_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id mp2891_id[] = {
-       { "mp2891" },
+       { .name = "mp2891" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, mp2891_id);
index ad094842cf2d737bea1a815f6f8f1953c984ed98..0a58b1ffd79108357f6c42a1558d972d957a2415 100644 (file)
@@ -305,9 +305,9 @@ static int mp2925_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id mp2925_id[] = {
-       {"mp2925"},
-       {"mp2929"},
-       {}
+       { .name = "mp2925" },
+       { .name = "mp2929" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, mp2925_id);
 
index 7241373f155770b17745d4508d8d447903048fa2..afc5e8c07e2598fbd1a3f289e7bb7d868b0babc8 100644 (file)
@@ -642,8 +642,8 @@ static int mp29502_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id mp29502_id[] = {
-       {"mp29502", 0},
-       {}
+       { .name = "mp29502", .driver_data = 0 },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, mp29502_id);
 
index d0bc47b12cb07d9ee9986b0c5e028fbca564a97a..dca7e2fbcb441d34247f97d1368dfe7644ee461d 100644 (file)
@@ -1082,10 +1082,10 @@ static const struct of_device_id mp2975_of_match[] = {
 MODULE_DEVICE_TABLE(of, mp2975_of_match);
 
 static const struct i2c_device_id mp2975_id[] = {
-       {"mp2971", (kernel_ulong_t)&mp2975_ddinfo[mp2971]},
-       {"mp2973", (kernel_ulong_t)&mp2975_ddinfo[mp2973]},
-       {"mp2975", (kernel_ulong_t)&mp2975_ddinfo[mp2975]},
-       {}
+       { .name = "mp2971", .driver_data = (kernel_ulong_t)&mp2975_ddinfo[mp2971] },
+       { .name = "mp2973", .driver_data = (kernel_ulong_t)&mp2975_ddinfo[mp2973] },
+       { .name = "mp2975", .driver_data = (kernel_ulong_t)&mp2975_ddinfo[mp2975] },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, mp2975_id);
 
index 81c84fc8ed47d2bfe46bc0d1e4adbc94386fddaf..3a6a6c55a1f17daab3dd593777da7db0f1207bd8 100644 (file)
@@ -233,7 +233,7 @@ static int mp2993_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id mp2993_id[] = {
-       { "mp2993" },
+       { .name = "mp2993" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, mp2993_id);
index 319ae2721bcf4569976ee5cd951c4b7fde836a73..b803f3ddf8ea174844b7f51280c575a1917dcc79 100644 (file)
@@ -66,7 +66,7 @@ static const struct of_device_id mp5920_of_match[] = {
 MODULE_DEVICE_TABLE(of, mp5920_of_match);
 
 static const struct i2c_device_id mp5920_id[] = {
-       { "mp5920" },
+       { .name = "mp5920" },
        { }
 };
 
index f0d1b30c70134dfa9e8e2390187531054f6b59dc..a40647472b1601852c12a2cdc9c64d88484fe47a 100644 (file)
@@ -157,8 +157,8 @@ static int mp5926_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id mp5926_id[] = {
-       { "mp5926", 0 },
-       {}
+       { .name = "mp5926", .driver_data = 0 },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, mp5926_id);
 
index 9a4ee79712cfcfd5b77f6ea5bd3e0e784be5ebb7..f8a5d1b42ff7ab347438b0e1df9c2aec58843557 100644 (file)
@@ -148,8 +148,8 @@ static struct pmbus_driver_info mp5998_info = {
 };
 
 static const struct i2c_device_id mp5990_id[] = {
-       {"mp5990", mp5990},
-       {"mp5998", mp5998},
+       { .name = "mp5990", .driver_data = mp5990 },
+       { .name = "mp5998", .driver_data = mp5998 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, mp5990_id);
index 42ca6748777afdc126deb76693ecd55530e09f77..d9049d326c809ddd7a2622990abdc140d2ad1ce7 100644 (file)
@@ -291,7 +291,7 @@ static int mp9941_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id mp9941_id[] = {
-       { "mp9941" },
+       { .name = "mp9941" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, mp9941_id);
index 34822e0de8128ffa2ee6ae98b997302266c01757..199480d855157ffeef6953cf241d4290e110ac99 100644 (file)
@@ -215,8 +215,8 @@ static int mp9945_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id mp9945_id[] = {
-       {"mp9945"},
-       {}
+       { .name = "mp9945" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, mp9945_id);
 
index 8f10e37a7a7677186284852f77606971d338d5b0..f49610adff89c4f78ba7f10a57127d1fd08cec37 100644 (file)
@@ -145,9 +145,9 @@ static const struct of_device_id mpq7932_of_match[] = {
 MODULE_DEVICE_TABLE(of, mpq7932_of_match);
 
 static const struct i2c_device_id mpq7932_id[] = {
-       { "mpq2286", },
-       { "mpq7932", },
-       { },
+       { .name = "mpq2286" },
+       { .name = "mpq7932" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, mpq7932_id);
 
index 87bd039c77b9b3fa846dc0270afba29d91bc5a0f..bbde55028290a9e364e68f7c87ee63c7a7631e39 100644 (file)
@@ -110,11 +110,11 @@ static struct pmbus_driver_info mpq8785_info = {
 };
 
 static const struct i2c_device_id mpq8785_id[] = {
-       { "mpm3695", mpm3695 },
-       { "mpm3695-25", mpm3695_25 },
-       { "mpm82504", mpm82504 },
-       { "mpq8785", mpq8785 },
-       { },
+       { .name = "mpm3695", .driver_data = mpm3695 },
+       { .name = "mpm3695-25", .driver_data = mpm3695_25 },
+       { .name = "mpm82504", .driver_data = mpm82504 },
+       { .name = "mpq8785", .driver_data = mpq8785 },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, mpq8785_id);
 
index aa98284bbdd847f47e8e440cb4b2e4fb92ed95de..9056dc387e878fc4b14edc60eed2c59d665d912a 100644 (file)
@@ -39,15 +39,15 @@ struct pim4328_data {
 #define PIM4328_MFR_READ_STATUS                0xd0
 
 static const struct i2c_device_id pim4328_id[] = {
-       {"bmr455", pim4328},
-       {"pim4006", pim4006},
-       {"pim4106", pim4006},
-       {"pim4206", pim4006},
-       {"pim4306", pim4006},
-       {"pim4328", pim4328},
-       {"pim4406", pim4006},
-       {"pim4820", pim4820},
-       {}
+       { .name = "bmr455", .driver_data = pim4328 },
+       { .name = "pim4006", .driver_data = pim4006 },
+       { .name = "pim4106", .driver_data = pim4006 },
+       { .name = "pim4206", .driver_data = pim4006 },
+       { .name = "pim4306", .driver_data = pim4006 },
+       { .name = "pim4328", .driver_data = pim4328 },
+       { .name = "pim4406", .driver_data = pim4006 },
+       { .name = "pim4820", .driver_data = pim4820 },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, pim4328_id);
 
index 569b61dc1a32a6534926e0aa2c3ac5dc4d9b3c7c..d5ab085a22730318307c5dfa1d243eded8291939 100644 (file)
@@ -117,8 +117,8 @@ static int pli1209bc_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id pli1209bc_id[] = {
-       {"pli1209bc"},
-       {}
+       { .name = "pli1209bc" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, pli1209bc_id);
index c96c0aecb920a80ccbb8af47e9e0db3a71156e9d..613654b15b4a1f55ee6fa36d35ac087f8e9251f7 100644 (file)
@@ -48,8 +48,8 @@ static int pm6764tr_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id pm6764tr_id[] = {
-       {"pm6764tr"},
-       {}
+       { .name = "pm6764tr" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, pm6764tr_id);
 
index d1844c7a51eef68eacaae2f42cb6355bebcbd667..34945ccd3afc6793eb43d6a1934be0a36f61a262 100644 (file)
@@ -213,36 +213,36 @@ static const struct pmbus_device_info pmbus_info_one_status = {
  * Use driver_data to set the number of pages supported by the chip.
  */
 static const struct i2c_device_id pmbus_id[] = {
-       {"adp4000", (kernel_ulong_t)&pmbus_info_one},
-       {"bmr310", (kernel_ulong_t)&pmbus_info_one_status},
-       {"bmr453", (kernel_ulong_t)&pmbus_info_one},
-       {"bmr454", (kernel_ulong_t)&pmbus_info_one},
-       {"bmr456", (kernel_ulong_t)&pmbus_info_one},
-       {"bmr457", (kernel_ulong_t)&pmbus_info_one},
-       {"bmr458", (kernel_ulong_t)&pmbus_info_one_status},
-       {"bmr480", (kernel_ulong_t)&pmbus_info_one_status},
-       {"bmr490", (kernel_ulong_t)&pmbus_info_one_status},
-       {"bmr491", (kernel_ulong_t)&pmbus_info_one_status},
-       {"bmr492", (kernel_ulong_t)&pmbus_info_one},
-       {"dps460", (kernel_ulong_t)&pmbus_info_one_skip},
-       {"dps650ab", (kernel_ulong_t)&pmbus_info_one_skip},
-       {"dps800", (kernel_ulong_t)&pmbus_info_one_skip},
-       {"max20796", (kernel_ulong_t)&pmbus_info_one},
-       {"mdt040", (kernel_ulong_t)&pmbus_info_one},
-       {"ncp4200", (kernel_ulong_t)&pmbus_info_one},
-       {"ncp4208", (kernel_ulong_t)&pmbus_info_one},
-       {"pdt003", (kernel_ulong_t)&pmbus_info_one},
-       {"pdt006", (kernel_ulong_t)&pmbus_info_one},
-       {"pdt012", (kernel_ulong_t)&pmbus_info_one},
-       {"pmbus", (kernel_ulong_t)&pmbus_info_zero},
-       {"sgd009", (kernel_ulong_t)&pmbus_info_one_skip},
-       {"tps40400", (kernel_ulong_t)&pmbus_info_one},
-       {"tps544b20", (kernel_ulong_t)&pmbus_info_one},
-       {"tps544b25", (kernel_ulong_t)&pmbus_info_one},
-       {"tps544c20", (kernel_ulong_t)&pmbus_info_one},
-       {"tps544c25", (kernel_ulong_t)&pmbus_info_one},
-       {"udt020", (kernel_ulong_t)&pmbus_info_one},
-       {}
+       { .name = "adp4000", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "bmr310", .driver_data = (kernel_ulong_t)&pmbus_info_one_status },
+       { .name = "bmr453", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "bmr454", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "bmr456", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "bmr457", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "bmr458", .driver_data = (kernel_ulong_t)&pmbus_info_one_status },
+       { .name = "bmr480", .driver_data = (kernel_ulong_t)&pmbus_info_one_status },
+       { .name = "bmr490", .driver_data = (kernel_ulong_t)&pmbus_info_one_status },
+       { .name = "bmr491", .driver_data = (kernel_ulong_t)&pmbus_info_one_status },
+       { .name = "bmr492", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "dps460", .driver_data = (kernel_ulong_t)&pmbus_info_one_skip },
+       { .name = "dps650ab", .driver_data = (kernel_ulong_t)&pmbus_info_one_skip },
+       { .name = "dps800", .driver_data = (kernel_ulong_t)&pmbus_info_one_skip },
+       { .name = "max20796", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "mdt040", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "ncp4200", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "ncp4208", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "pdt003", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "pdt006", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "pdt012", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "pmbus", .driver_data = (kernel_ulong_t)&pmbus_info_zero },
+       { .name = "sgd009", .driver_data = (kernel_ulong_t)&pmbus_info_one_skip },
+       { .name = "tps40400", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "tps544b20", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "tps544b25", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "tps544c20", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "tps544c25", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { .name = "udt020", .driver_data = (kernel_ulong_t)&pmbus_info_one },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, pmbus_id);
index 24c1f961c76689f467e79a2cc65793a84deb03b4..6ba2b3e0e565b748350807538dc3fb61ade495d3 100644 (file)
@@ -130,10 +130,10 @@ static int pxe1610_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id pxe1610_id[] = {
-       {"pxe1610"},
-       {"pxe1110"},
-       {"pxm1310"},
-       {}
+       { .name = "pxe1610" },
+       { .name = "pxe1110" },
+       { .name = "pxm1310" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, pxe1610_id);
index a368cfa9d45ac26b7751ac42a57d11ba2db26ba8..ecac405d75362046aabe09dc9b216a484a90d8eb 100644 (file)
@@ -270,10 +270,10 @@ static const struct file_operations q54sj108a2_fops = {
 };
 
 static const struct i2c_device_id q54sj108a2_id[] = {
-       { "q54sj108a2", q54sj108a2 },
-       { "q54sn120a1", q54sj108a2 },
-       { "q54sw120a7", q54sj108a2 },
-       { },
+       { .name = "q54sj108a2", .driver_data = q54sj108a2 },
+       { .name = "q54sn120a1", .driver_data = q54sj108a2 },
+       { .name = "q54sw120a7", .driver_data = q54sj108a2 },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, q54sj108a2_id);
index 4bde2215697cba6579874d356b716b401eab74d2..8e48dd3ba74bf308d29b74ecb5792d2c51d47bc1 100644 (file)
@@ -48,8 +48,8 @@ static int stef48h28_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id stef48h28_id[] = {
-       {"stef48h28"},
-       {}
+       { .name = "stef48h28" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, stef48h28_id);
 
index 5cb905ed8ae5f0de23c487c8f8e3b7af11dcdb77..b5ce7f975eea4958ea3f2bf7ef6e3e75f382c236 100644 (file)
@@ -18,9 +18,9 @@
 #define STPDDC60_MFR_UV_LIMIT_OFFSET   0xe6
 
 static const struct i2c_device_id stpddc60_id[] = {
-       {"stpddc60"},
-       {"bmr481"},
-       {}
+       { .name = "stpddc60" },
+       { .name = "bmr481" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, stpddc60_id);
 
index d902d39f49f4d7398e726754dbc562bf2efc53c0..8039266333700c3ad1b7b3844486a6e7b03fe998 100644 (file)
@@ -195,8 +195,8 @@ static int tda38640_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id tda38640_id[] = {
-       {"tda38640"},
-       {}
+       { .name = "tda38640" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, tda38640_id);
 
index 05c6288ecafccb43c8f4d73b97732e0dd6090254..9d318e6509abf6f25562aacddd83c6f73bba29bd 100644 (file)
@@ -387,8 +387,8 @@ static const struct pmbus_driver_info tps25990_base_info = {
 };
 
 static const struct i2c_device_id tps25990_i2c_id[] = {
-       { "tps25990" },
-       {}
+       { .name = "tps25990" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, tps25990_i2c_id);
 
index 7c9fedaa068c0b57feebb18f139a8c9ff2facdce..f7be075dc7070281be8dcec2bc95fdf4f0d203d5 100644 (file)
@@ -31,8 +31,8 @@ static int tps40422_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id tps40422_id[] = {
-       {"tps40422"},
-       {}
+       { .name = "tps40422" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, tps40422_id);
index 94258e8cfd903ba32bc1ebc3a28d00ccef180301..31e54608b3c9c0d6d33525457cc07bacb8af0c45 100644 (file)
@@ -291,15 +291,15 @@ static int tps53679_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id tps53679_id[] = {
-       {"bmr474", tps53676},
-       {"tps53647", tps53647},
-       {"tps53667", tps53667},
-       {"tps53676", tps53676},
-       {"tps53679", tps53679},
-       {"tps53681", tps53681},
-       {"tps53685", tps53685},
-       {"tps53688", tps53688},
-       {}
+       { .name = "bmr474", .driver_data = tps53676 },
+       { .name = "tps53647", .driver_data = tps53647 },
+       { .name = "tps53667", .driver_data = tps53667 },
+       { .name = "tps53676", .driver_data = tps53676 },
+       { .name = "tps53679", .driver_data = tps53679 },
+       { .name = "tps53681", .driver_data = tps53681 },
+       { .name = "tps53685", .driver_data = tps53685 },
+       { .name = "tps53688", .driver_data = tps53688 },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, tps53679_id);
index 44d7a6df1dbdfc9506359ea530842fbd2f07726b..4222ff355e02b48d8d3515bf34bfa47417601c46 100644 (file)
@@ -42,8 +42,8 @@ static int tps546d24_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id tps546d24_id[] = {
-       {"tps546d24"},
-       {}
+       { .name = "tps546d24" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, tps546d24_id);
 
index 9b5d34a110ba5eba9e3a2f23fd0a8f72831e7be2..f76c2913c9caec361ad185296e2aab06e7828a8e 100644 (file)
@@ -143,14 +143,14 @@ static int ucd9000_read_byte_data(struct i2c_client *client, int page, int reg)
 }
 
 static const struct i2c_device_id ucd9000_id[] = {
-       {"ucd9000", ucd9000},
-       {"ucd90120", ucd90120},
-       {"ucd90124", ucd90124},
-       {"ucd90160", ucd90160},
-       {"ucd90320", ucd90320},
-       {"ucd9090", ucd9090},
-       {"ucd90910", ucd90910},
-       {}
+       { .name = "ucd9000", .driver_data = ucd9000 },
+       { .name = "ucd90120", .driver_data = ucd90120 },
+       { .name = "ucd90124", .driver_data = ucd90124 },
+       { .name = "ucd90160", .driver_data = ucd90160 },
+       { .name = "ucd90320", .driver_data = ucd90320 },
+       { .name = "ucd9090", .driver_data = ucd9090 },
+       { .name = "ucd90910", .driver_data = ucd90910 },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, ucd9000_id);
 
index f68adaf4a110e006ae168e4d2f97eece8ec38700..5e07bba111a162d38217735f535bed38c0c9f4d6 100644 (file)
@@ -22,15 +22,15 @@ enum chips { ucd9200, ucd9220, ucd9222, ucd9224, ucd9240, ucd9244, ucd9246,
             ucd9248 };
 
 static const struct i2c_device_id ucd9200_id[] = {
-       {"ucd9200", ucd9200},
-       {"ucd9220", ucd9220},
-       {"ucd9222", ucd9222},
-       {"ucd9224", ucd9224},
-       {"ucd9240", ucd9240},
-       {"ucd9244", ucd9244},
-       {"ucd9246", ucd9246},
-       {"ucd9248", ucd9248},
-       {}
+       { .name = "ucd9200", .driver_data = ucd9200 },
+       { .name = "ucd9220", .driver_data = ucd9220 },
+       { .name = "ucd9222", .driver_data = ucd9222 },
+       { .name = "ucd9224", .driver_data = ucd9224 },
+       { .name = "ucd9240", .driver_data = ucd9240 },
+       { .name = "ucd9244", .driver_data = ucd9244 },
+       { .name = "ucd9246", .driver_data = ucd9246 },
+       { .name = "ucd9248", .driver_data = ucd9248 },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, ucd9200_id);
 
index 660bbfe16e1e9d8df254cefe10193fefc1dae82e..494dbe45ebc6b50450643fbf43b93c9c2640ff0a 100644 (file)
@@ -110,7 +110,7 @@ static const struct of_device_id xdp710_of_match[] = {
 };
 
 static const struct i2c_device_id xdp710_id[] = {
-       {"xdp710"},
+       { .name = "xdp710" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, xdp710_id);
index 8729a771f2166733a19a88ce0fccd9a997ba505f..60491e9217bfb9c1490db945385d85d2f75f646b 100644 (file)
@@ -106,8 +106,8 @@ static const struct of_device_id xdp720_of_match[] = {
 MODULE_DEVICE_TABLE(of, xdp720_of_match);
 
 static const struct i2c_device_id xdp720_id[] = {
-       { "xdp720" },
-       {}
+       { .name = "xdp720" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, xdp720_id);
 
index f3aa6339d60d0ff73a5a51ba9e65eb5e99922bcc..ed93e17ce8d5126f537f8ab338892e9a2d49d148 100644 (file)
@@ -164,10 +164,10 @@ static int xdpe122_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id xdpe122_id[] = {
-       {"xdpe11280"},
-       {"xdpe12254"},
-       {"xdpe12284"},
-       {}
+       { .name = "xdpe11280" },
+       { .name = "xdpe12254" },
+       { .name = "xdpe12284" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, xdpe122_id);
index 67a3d5fe1dafadfee45f1cbcb36690a31e1cb44e..b557d2971d5f24844d6e01bfc2d7b1278580e3e7 100644 (file)
@@ -44,9 +44,9 @@ static int xdpe152_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id xdpe152_id[] = {
-       {"xdpe152c4"},
-       {"xdpe15284"},
-       {}
+       { .name = "xdpe152c4" },
+       { .name = "xdpe15284" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, xdpe152_id);
index 1755e3522ede543ed869bcb67262c54e32f82263..971e7b73752ea11bdc388089086988d748725e78 100644 (file)
@@ -87,9 +87,9 @@ static int xdpe1a2g7b_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id xdpe1a2g7b_id[] = {
-       { "xdpe1a2g5b" },
-       { "xdpe1a2g7b" },
-       {}
+       { .name = "xdpe1a2g5b" },
+       { .name = "xdpe1a2g7b" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, xdpe1a2g7b_id);
index 97be69630cfbb46497a7876d9c8cd05adbf4253b..5db2a7818d165e38668a8a994c74e6230df61203 100644 (file)
@@ -250,28 +250,28 @@ static int zl6100_write_word_data(struct i2c_client *client, int page, int reg,
 }
 
 static const struct i2c_device_id zl6100_id[] = {
-       {"bmr450", zl2005},
-       {"bmr451", zl2005},
-       {"bmr462", zl2008},
-       {"bmr463", zl2008},
-       {"bmr464", zl2008},
-       {"bmr465", zls4009},
-       {"bmr466", zls1003},
-       {"bmr467", zls4009},
-       {"bmr469", zl8802},
-       {"zl2004", zl2004},
-       {"zl2005", zl2005},
-       {"zl2006", zl2006},
-       {"zl2008", zl2008},
-       {"zl2105", zl2105},
-       {"zl2106", zl2106},
-       {"zl6100", zl6100},
-       {"zl6105", zl6105},
-       {"zl8802", zl8802},
-       {"zl9101", zl9101},
-       {"zl9117", zl9117},
-       {"zls1003", zls1003},
-       {"zls4009", zls4009},
+       { .name = "bmr450", .driver_data = zl2005 },
+       { .name = "bmr451", .driver_data = zl2005 },
+       { .name = "bmr462", .driver_data = zl2008 },
+       { .name = "bmr463", .driver_data = zl2008 },
+       { .name = "bmr464", .driver_data = zl2008 },
+       { .name = "bmr465", .driver_data = zls4009 },
+       { .name = "bmr466", .driver_data = zls1003 },
+       { .name = "bmr467", .driver_data = zls4009 },
+       { .name = "bmr469", .driver_data = zl8802 },
+       { .name = "zl2004", .driver_data = zl2004 },
+       { .name = "zl2005", .driver_data = zl2005 },
+       { .name = "zl2006", .driver_data = zl2006 },
+       { .name = "zl2008", .driver_data = zl2008 },
+       { .name = "zl2105", .driver_data = zl2105 },
+       { .name = "zl2106", .driver_data = zl2106 },
+       { .name = "zl6100", .driver_data = zl6100 },
+       { .name = "zl6105", .driver_data = zl6105 },
+       { .name = "zl8802", .driver_data = zl8802 },
+       { .name = "zl9101", .driver_data = zl9101 },
+       { .name = "zl9117", .driver_data = zl9117 },
+       { .name = "zls1003", .driver_data = zls1003 },
+       { .name = "zls4009", .driver_data = zls4009 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, zl6100_id);
index 06a2c56016d11776327d5fea147eb287e57932d6..6e211601ea26b7226f3cde43c826381055e4d7d2 100644 (file)
@@ -306,8 +306,8 @@ static int powr1220_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id powr1220_ids[] = {
-       { "powr1014", powr1014, },
-       { "powr1220", powr1220, },
+       { .name = "powr1014", .driver_data = powr1014 },
+       { .name = "powr1220", .driver_data = powr1220 },
        { }
 };
 
index 89d4da8aa4c09339a6cf37edd1f605e5839514d4..2b408a69b085c12a27d49a3bc9e5d258c94f5435 100644 (file)
@@ -617,8 +617,8 @@ static const struct acpi_device_id __maybe_unused pt5161l_acpi_match[] = {
 MODULE_DEVICE_TABLE(acpi, pt5161l_acpi_match);
 
 static const struct i2c_device_id pt5161l_id[] = {
-       { "pt5161l" },
-       {}
+       { .name = "pt5161l" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, pt5161l_id);
 
index c5b2488c4c7f749e266488ec5d008025aa11a31a..c28f8625cd3a49831599a5bab97fcf656767dbbc 100644 (file)
@@ -221,8 +221,8 @@ static int sbtsi_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id sbtsi_id[] = {
-       {"sbtsi"},
-       {}
+       { .name = "sbtsi" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, sbtsi_id);
 
index 105131c4acf7872d2d3ff132ae9a90620265e21e..591f5f572fe4ce46e11a443a8bc0bd4ad4c67cba 100644 (file)
@@ -333,7 +333,7 @@ static int sg2042_mcu_i2c_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id sg2042_mcu_id[] = {
-       { "sg2042-hwmon-mcu" },
+       { .name = "sg2042-hwmon-mcu" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, sg2042_mcu_id);
index 627d35070a420ab9e51634bdc5cf5e3de3853326..085492669eeb99980ec3c67dd9555011f65066a1 100644 (file)
@@ -275,9 +275,9 @@ static int sht21_probe(struct i2c_client *client)
 
 /* Device ID table */
 static const struct i2c_device_id sht21_id[] = {
-       { "sht20" },
-       { "sht21" },
-       { "sht25" },
+       { .name = "sht20" },
+       { .name = "sht21" },
+       { .name = "sht25" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, sht21_id);
index 08306ccb6d0befbfe305566a2de2cff2c676b9e7..c2f6b73aa7f34a67257c60137c90acf14596c696 100644 (file)
@@ -931,10 +931,10 @@ static int sht3x_probe(struct i2c_client *client)
 
 /* device ID table */
 static const struct i2c_device_id sht3x_ids[] = {
-       {"sht3x", sht3x},
-       {"sts3x", sts3x},
-       {"sht85", sht3x},
-       {}
+       { .name = "sht3x", .driver_data = sht3x },
+       { .name = "sts3x", .driver_data = sts3x },
+       { .name = "sht85", .driver_data = sht3x },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, sht3x_ids);
index 5abe1227e109ed87e07295348014e1249aa821ee..9cace0e8acdabc77ee30a33001c0ca13e830680c 100644 (file)
@@ -424,8 +424,8 @@ static int sht4x_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id sht4x_id[] = {
-       { "sht4x" },
-       { },
+       { .name = "sht4x" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, sht4x_id);
 
index 2ac906e8e173328e9d7daa0b2e79cbeb98643a2b..362a73cf661b2049952c6fd8e0965308e05f7716 100644 (file)
@@ -257,9 +257,9 @@ static int shtc1_probe(struct i2c_client *client)
 
 /* device ID table */
 static const struct i2c_device_id shtc1_id[] = {
-       { "shtc1", shtc1 },
-       { "shtw1", shtc1 },
-       { "shtc3", shtc3 },
+       { .name = "shtc1", .driver_data = shtc1 },
+       { .name = "shtw1", .driver_data = shtc1 },
+       { .name = "shtc3", .driver_data = shtc3 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, shtc1_id);
index 21103af4e1395a0d782d1069d59736c161cdbbca..1429b66e09b07d1351a9c80b4097108fec0354ce 100644 (file)
@@ -618,7 +618,7 @@ static int smsc47m192_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id smsc47m192_id[] = {
-       { "smsc47m192" },
+       { .name = "smsc47m192" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, smsc47m192_id);
index 5da44571b6a0ce43b621faba9e67d81491ff0b28..cc40661cab211a650486c3d63f9877c2615855b9 100644 (file)
@@ -746,7 +746,7 @@ static int spd5118_i2c_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id spd5118_i2c_id[] = {
-       { "spd5118" },
+       { .name = "spd5118" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, spd5118_i2c_id);
index f9e8b2869164a3a35b291cee489e03278382ca81..ce23681f79810a47765649b24977ec7a5d71eeae 100644 (file)
@@ -72,7 +72,7 @@ static const int stts751_intervals[] = {
 };
 
 static const struct i2c_device_id stts751_id[] = {
-       { "stts751" },
+       { .name = "stts751" },
        { }
 };
 
index 39fe5836f237f2ce61c3f67ba83c3375dd688ace..4b22e305b203ead677ecb00c748767792363c4a0 100644 (file)
@@ -550,9 +550,9 @@ static int tc654_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id tc654_id[] = {
-       {"tc654"},
-       {"tc655"},
-       {}
+       { .name = "tc654" },
+       { .name = "tc655" },
+       { }
 };
 
 MODULE_DEVICE_TABLE(i2c, tc654_id);
index 7fb7b50ad1adbf57a13dd860764af71f895ac853..e9113519be53555f7326c61672c7e8c38b3dfc1a 100644 (file)
@@ -151,8 +151,8 @@ static int tc74_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id tc74_id[] = {
-       { "tc74" },
-       {}
+       { .name = "tc74" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, tc74_id);
 
index 0cbdb91698b1f7c05d11716d7a8110d830ce9fb2..b385ef64af75420e70a946814c6b1e42bd832569 100644 (file)
@@ -407,8 +407,8 @@ static int thmc50_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id thmc50_id[] = {
-       { "adm1022", adm1022 },
-       { "thmc50", thmc50 },
+       { .name = "adm1022", .driver_data = adm1022 },
+       { .name = "thmc50", .driver_data = thmc50 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, thmc50_id);
index ad525c55daf0f0aec05d3869ac1c73effa107d75..6bd1bed3cdb89d8f636a639be4928e090f88a362 100644 (file)
@@ -396,7 +396,7 @@ static int tmp102_resume(struct device *dev)
 static DEFINE_SIMPLE_DEV_PM_OPS(tmp102_dev_pm_ops, tmp102_suspend, tmp102_resume);
 
 static const struct i2c_device_id tmp102_id[] = {
-       { "tmp102" },
+       { .name = "tmp102" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, tmp102_id);
index 221bba8a215d837176dc8efd68758f3538ebde0b..f13d24767575140b86e0ee7627a4cc1e35d569aa 100644 (file)
@@ -194,7 +194,7 @@ static int tmp103_resume(struct device *dev)
 static DEFINE_SIMPLE_DEV_PM_OPS(tmp103_dev_pm_ops, tmp103_suspend, tmp103_resume);
 
 static const struct i2c_device_id tmp103_id[] = {
-       { "tmp103" },
+       { .name = "tmp103" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, tmp103_id);
index 3ea5f6485744d78ee0824be7d6c4374e1d8b3662..1c4a58855e2d2791874406e0590cfc88ed8bd9bb 100644 (file)
@@ -537,10 +537,10 @@ static int tmp108_resume(struct device *dev)
 static DEFINE_SIMPLE_DEV_PM_OPS(tmp108_dev_pm_ops, tmp108_suspend, tmp108_resume);
 
 static const struct i2c_device_id tmp108_i2c_ids[] = {
-       { "p3t1035", (unsigned long)&p3t1035_data },
-       { "p3t1085", (unsigned long)&tmp108_data },
-       { "tmp108", (unsigned long)&tmp108_data },
-       {}
+       { .name = "p3t1035", .driver_data = (unsigned long)&p3t1035_data },
+       { .name = "p3t1085", .driver_data = (unsigned long)&tmp108_data },
+       { .name = "tmp108", .driver_data = (unsigned long)&tmp108_data },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, tmp108_i2c_ids);
 
index 07f596581c6eb70d424ed777d5a526478e4a3211..a09225a87355dd907f778f5d94ef48896352efab 100644 (file)
@@ -90,11 +90,11 @@ static const u8 TMP432_STATUS_REG[] = {
  */
 
 static const struct i2c_device_id tmp401_id[] = {
-       { "tmp401", tmp401 },
-       { "tmp411", tmp411 },
-       { "tmp431", tmp431 },
-       { "tmp432", tmp432 },
-       { "tmp435", tmp435 },
+       { .name = "tmp401", .driver_data = tmp401 },
+       { .name = "tmp411", .driver_data = tmp411 },
+       { .name = "tmp431", .driver_data = tmp431 },
+       { .name = "tmp432", .driver_data = tmp432 },
+       { .name = "tmp435", .driver_data = tmp435 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, tmp401_id);
index 2ea9d3e9553db85c3a6f5ef36cd38c881bb164c9..ed00ccfdd7b3ee29aa82d15bda8c85da5c1fcce7 100644 (file)
@@ -56,11 +56,11 @@ static const u8 TMP421_TEMP_LSB[MAX_CHANNELS]       = { 0x10, 0x11, 0x12, 0x13 };
 #define TMP442_DEVICE_ID                       0x42
 
 static const struct i2c_device_id tmp421_id[] = {
-       { "tmp421", 2 },
-       { "tmp422", 3 },
-       { "tmp423", 4 },
-       { "tmp441", 2 },
-       { "tmp442", 3 },
+       { .name = "tmp421", .driver_data = 2 },
+       { .name = "tmp422", .driver_data = 3 },
+       { .name = "tmp423", .driver_data = 4 },
+       { .name = "tmp441", .driver_data = 2 },
+       { .name = "tmp442", .driver_data = 3 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, tmp421_id);
index 98f2576d94c6700fb4812e66e9cb1574f5b0eb2a..c3e031044d1e71976dcfc3d57b8b6c2024bfd717 100644 (file)
@@ -65,8 +65,8 @@ static const u8 TMP464_THERM2_LIMIT[MAX_CHANNELS] = {
 #define TMP468_DEVICE_ID                       0x0468
 
 static const struct i2c_device_id tmp464_id[] = {
-       { "tmp464", TMP464_NUM_CHANNELS },
-       { "tmp468", TMP468_NUM_CHANNELS },
+       { .name = "tmp464", .driver_data = TMP464_NUM_CHANNELS },
+       { .name = "tmp468", .driver_data = TMP468_NUM_CHANNELS },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, tmp464_id);
index 5acbfd7d088dd5bb43eca871bdf51c1ca20b45a9..b160aa045f89dd1ba1d3beb5c4bf38f0c22e6cb8 100644 (file)
@@ -611,8 +611,8 @@ static int tmp51x_init(struct tmp51x_data *data)
 }
 
 static const struct i2c_device_id tmp51x_id[] = {
-       { "tmp512", TMP512_MAX_CHANNELS },
-       { "tmp513", TMP513_MAX_CHANNELS },
+       { .name = "tmp512", .driver_data = TMP512_MAX_CHANNELS },
+       { .name = "tmp513", .driver_data = TMP513_MAX_CHANNELS },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, tmp51x_id);
index 401a28f55f931f938efe0278937c33a3f3bff0e7..54224dac10aef6239696b403232516d32f1aa478 100644 (file)
@@ -34,7 +34,7 @@ static const u8 W83773_OFFSET_MSB[2] = { 0x11, 0x15 };
 
 /* this is the number of sensors in the device */
 static const struct i2c_device_id w83773_id[] = {
-       { "w83773g" },
+       { .name = "w83773g" },
        { }
 };
 
index f664c2152a6deebc5e4fcd7adda2a090637cbc88..c40f84e5346964bf452eeb380a3147cc7a701fa7 100644 (file)
@@ -1559,10 +1559,10 @@ static struct w83781d_data *w83781d_update_device(struct device *dev)
 }
 
 static const struct i2c_device_id w83781d_ids[] = {
-       { "w83781d", w83781d, },
-       { "w83782d", w83782d, },
-       { "w83783s", w83783s, },
-       { "as99127f", as99127f },
+       { .name = "w83781d", .driver_data = w83781d },
+       { .name = "w83782d", .driver_data = w83782d },
+       { .name = "w83783s", .driver_data = w83783s },
+       { .name = "as99127f", .driver_data = as99127f },
        { /* LIST END */ }
 };
 MODULE_DEVICE_TABLE(i2c, w83781d_ids);
index 996e36951f9dad4a1f23e3205fe396721f346a34..4a777430af5cd4e729ff3e634f4ad5f84fbbaed2 100644 (file)
@@ -333,7 +333,7 @@ static void w83791d_print_debug(struct w83791d_data *data, struct device *dev);
 static void w83791d_init_client(struct i2c_client *client);
 
 static const struct i2c_device_id w83791d_id[] = {
-       { "w83791d" },
+       { .name = "w83791d" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, w83791d_id);
index b0b5f60eea53bc7548e997fa96a0fb6cafa478db..f715c79389a565712ad47ee084537962d40f0d42 100644 (file)
@@ -296,7 +296,7 @@ static void w83792d_print_debug(struct w83792d_data *data, struct device *dev);
 static void w83792d_init_client(struct i2c_client *client);
 
 static const struct i2c_device_id w83792d_id[] = {
-       { "w83792d" },
+       { .name = "w83792d" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, w83792d_id);
index 24772cfbecb32c02c13f22ef9d018eb5e9e9aa29..b1f906f06ab43f67bba4041bd7b1229967154f20 100644 (file)
@@ -291,7 +291,7 @@ static void w83793_update_nonvolatile(struct device *dev);
 static struct w83793_data *w83793_update_device(struct device *dev);
 
 static const struct i2c_device_id w83793_id[] = {
-       { "w83793" },
+       { .name = "w83793" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, w83793_id);
index 5174db69db5e1c4ae3b9260570386005e66a8ff9..c5ce0bf1b08ecf65d622242fe095a9cceb358c91 100644 (file)
@@ -2243,8 +2243,8 @@ static void w83795_remove(struct i2c_client *client)
 
 
 static const struct i2c_device_id w83795_id[] = {
-       { "w83795g", w83795g },
-       { "w83795adg", w83795adg },
+       { .name = "w83795g", .driver_data = w83795g },
+       { .name = "w83795adg", .driver_data = w83795adg },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, w83795_id);
index df77b53a1b2f9cfe184ff1a4a2d6104cdd6a6493..e42506a3bcbeca0561add52bc460b93d6aedb8f9 100644 (file)
@@ -74,7 +74,7 @@ static struct w83l785ts_data *w83l785ts_update_device(struct device *dev);
  */
 
 static const struct i2c_device_id w83l785ts_id[] = {
-       { "w83l785ts" },
+       { .name = "w83l785ts" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, w83l785ts_id);
index 1d9109ca1585e73156bf76e9ac69af39d5f76ebd..a72397083cc4fe8303038cc2840ce83c9eed36ba 100644 (file)
@@ -751,7 +751,7 @@ w83l786ng_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id w83l786ng_id[] = {
-       { "w83l786ng" },
+       { .name = "w83l786ng" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, w83l786ng_id);