hwmon: Use named initializers for arrays of i2c_device_data

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>
This commit is contained in:
Uwe Kleine-König (The Capable Hub) authored and Guenter Roeck committed 2026-06-09 08:22:59 -07:00
1 parent b3de407ae6
commit 4a9e6a9230
185 files changed
+682 -682

No files matched your search

+2 -2
View 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);
+3 -3
View 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);
+1 -1
View 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);
+2 -2
View 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);
+1 -1
View 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);
+1 -1
View 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);
+2 -2
View 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);
+2 -2
View 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);
+3 -3
View 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);
+2 -2
View 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);
+4 -4
View 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);
+1 -1
View 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);
+1 -1
View 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);
+1 -1
View 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);
+4 -4
View 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);
+4 -4
View File
@@ -55,10 +55,10 @@
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);
+1 -1
View File
@@ -1083,7 +1083,7 @@ static int amc6821_probe(struct i2c_client *client)
}
static const struct i2c_device_id amc6821_id[] = {
{ "amc6821" },
{ .name = "amc6821" },
{ }
};
+1 -1
View 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);
+3 -3
View 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);
+1 -1
View 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);
+8 -8
View 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);
+2 -2
View 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);
+5 -5
View 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);
+2 -2
View 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);
+12 -12
View 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);
+1 -1
View 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);
+4 -4
View 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);
+1 -1
View 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);
+3 -3
View 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);
+7 -7
View 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);
+1 -1
View 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);
+1 -1
View 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);
+3 -3
View 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);
+1 -1
View 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);
+1 -1
View 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);
+1 -1
View 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);
+2 -2
View 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);
+1 -1
View 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);
+1 -1
View 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);
+6 -6
View 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);
+8 -8
View 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);
+1 -1
View 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);
+1 -1
View 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);
+1 -1
View 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);
+2 -2
View 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);
+3 -3
View 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);
+1 -1
View 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);
+31 -31
View 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);
+1 -1
View 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);
+2 -2
View 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);
+2 -2
View 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);
+2 -2
View 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);
+12 -12
View 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);
+2 -2
View 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);
+48 -48
View 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);
+3 -3
View 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);
+2 -2
View 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);
+2 -2
View 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);
+2 -2
View 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);
+2 -2
View 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);
+1 -1
View File
@@ -508,7 +508,7 @@ static int ltc2945_probe(struct i2c_client *client)
}
static const struct i2c_device_id ltc2945_id[] = {
{"ltc2945"},
{ .name = "ltc2945" },
{ }
};
+2 -2
View 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);
+2 -2
View 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);
+2 -2
View 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);
+2 -2
View 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);
+1 -1
View 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);
+1 -1
View 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);
+1 -1
View File
@@ -200,7 +200,7 @@ static int ltc4222_probe(struct i2c_client *client)
}
static const struct i2c_device_id ltc4222_id[] = {
{"ltc4222"},
{ .name = "ltc4222" },
{ }
};
+1 -1
View 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);
+1 -1
View File
@@ -163,7 +163,7 @@ static int ltc4260_probe(struct i2c_client *client)
}
static const struct i2c_device_id ltc4260_id[] = {
{"ltc4260"},
{ .name = "ltc4260" },
{ }
};
+2 -2
View 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);
+1 -1
View 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);
+6 -6
View 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 },
{ }
};
+1 -1
View 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);
+3 -3
View 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);
+1 -1
View 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);
+1 -1
View 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);
+1 -1
View 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);
+3 -3
View 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);
+1 -1
View 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);
+1 -1
View 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);
+1 -1
View File
@@ -778,7 +778,7 @@ static int max6639_resume(struct device *dev)
}
static const struct i2c_device_id max6639_id[] = {
{"max6639"},
{ .name = "max6639" },
{ }
};
+2 -2
View 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);
+10 -10
View 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);
+2 -2
View 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);
+2 -2
View 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);
+13 -13
View 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);
+1 -1
View 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);
+2 -2
View 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);
+1 -1
View 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);
+2 -2
View 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 = {
+1 -1
View 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);
+10 -10
View 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);
+3 -3
View 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);
+3 -3
View 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);
+2 -2
View 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);
+1 -1
View 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);
+2 -2
View 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);
+2 -2
View 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);
+2 -2
View 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);
Loaded 100 of 185 files, more files were not shown because too many files have changed in this diff. Show more