hwmon: Drop explicit initialization of struct i2c_device_id::driver_data to 0

These drivers don't use the driver_data member of struct i2c_device_id,
so don't explicitly initialize this member.

This prepares putting driver_data in an anonymous union which requires
either no initialization or named designators. But it's also a nice
cleanup on its own.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20240430085654.1028864-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Uwe Kleine-König 2024-04-30 10:56:53 +02:00 committed by Guenter Roeck
parent 801fec8df5
commit d8a66f3621
100 changed files with 119 additions and 119 deletions

View File

@ -152,7 +152,7 @@ Emerson DS1200 power modules might look as follows::
}
static const struct i2c_device_id ds1200_id[] = {
{"ds1200", 0},
{"ds1200"},
{}
};

View File

@ -205,7 +205,7 @@ static int ad7414_probe(struct i2c_client *client)
}
static const struct i2c_device_id ad7414_id[] = {
{ "ad7414", 0 },
{ "ad7414" },
{}
};
MODULE_DEVICE_TABLE(i2c, ad7414_id);

View File

@ -504,7 +504,7 @@ static void adc128_remove(struct i2c_client *client)
}
static const struct i2c_device_id adc128_id[] = {
{ "adc128d818", 0 },
{ "adc128d818" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adc128_id);

View File

@ -1849,7 +1849,7 @@ static int adm1026_probe(struct i2c_client *client)
}
static const struct i2c_device_id adm1026_id[] = {
{ "adm1026", 0 },
{ "adm1026" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adm1026_id);

View File

@ -379,7 +379,7 @@ static int adm1029_probe(struct i2c_client *client)
}
static const struct i2c_device_id adm1029_id[] = {
{ "adm1029", 0 },
{ "adm1029" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adm1029_id);

View File

@ -238,7 +238,7 @@ static int adm1177_probe(struct i2c_client *client)
}
static const struct i2c_device_id adm1177_id[] = {
{"adm1177", 0},
{"adm1177"},
{}
};
MODULE_DEVICE_TABLE(i2c, adm1177_id);

View File

@ -88,8 +88,8 @@ static int adt7410_i2c_probe(struct i2c_client *client)
}
static const struct i2c_device_id adt7410_ids[] = {
{ "adt7410", 0 },
{ "adt7420", 0 },
{ "adt7410" },
{ "adt7420" },
{}
};
MODULE_DEVICE_TABLE(i2c, adt7410_ids);

View File

@ -697,7 +697,7 @@ static int adt7411_probe(struct i2c_client *client)
}
static const struct i2c_device_id adt7411_id[] = {
{ "adt7411", 0 },
{ "adt7411" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adt7411_id);

View File

@ -1809,7 +1809,7 @@ static int adt7462_probe(struct i2c_client *client)
}
static const struct i2c_device_id adt7462_id[] = {
{ "adt7462", 0 },
{ "adt7462" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adt7462_id);

View File

@ -1304,7 +1304,7 @@ static void adt7470_remove(struct i2c_client *client)
}
static const struct i2c_device_id adt7470_id[] = {
{ "adt7470", 0 },
{ "adt7470" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adt7470_id);

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", 0 },
{ "asb100" },
{ }
};
MODULE_DEVICE_TABLE(i2c, asb100_id);

View File

@ -278,7 +278,7 @@ static int atxp1_probe(struct i2c_client *client)
};
static const struct i2c_device_id atxp1_id[] = {
{ "atxp1", 0 },
{ "atxp1" },
{ }
};
MODULE_DEVICE_TABLE(i2c, atxp1_id);

View File

@ -233,7 +233,7 @@ static int ds620_probe(struct i2c_client *client)
}
static const struct i2c_device_id ds620_id[] = {
{"ds620", 0},
{"ds620"},
{}
};

View File

@ -620,7 +620,7 @@ emc2103_probe(struct i2c_client *client)
}
static const struct i2c_device_id emc2103_ids[] = {
{ "emc2103", 0, },
{ "emc2103" },
{ /* LIST END */ }
};
MODULE_DEVICE_TABLE(i2c, emc2103_ids);

View File

@ -47,10 +47,10 @@ enum emc230x_product_id {
};
static const struct i2c_device_id emc2305_ids[] = {
{ "emc2305", 0 },
{ "emc2303", 0 },
{ "emc2302", 0 },
{ "emc2301", 0 },
{ "emc2305" },
{ "emc2303" },
{ "emc2302" },
{ "emc2301" },
{ }
};
MODULE_DEVICE_TABLE(i2c, emc2305_ids);

View File

@ -464,7 +464,7 @@ static int emc6w201_probe(struct i2c_client *client)
}
static const struct i2c_device_id emc6w201_id[] = {
{ "emc6w201", 0 },
{ "emc6w201" },
{ }
};
MODULE_DEVICE_TABLE(i2c, emc6w201_id);

View File

@ -50,7 +50,7 @@
static const unsigned short normal_i2c[] = { 0x73, I2C_CLIENT_END };
static const struct i2c_device_id fts_id[] = {
{ "ftsteutates", 0 },
{ "ftsteutates" },
{ }
};
MODULE_DEVICE_TABLE(i2c, fts_id);

View File

@ -197,7 +197,7 @@ static int g760a_probe(struct i2c_client *client)
}
static const struct i2c_device_id g760a_id[] = {
{ "g760a", 0 },
{ "g760a" },
{ }
};
MODULE_DEVICE_TABLE(i2c, g760a_id);

View File

@ -44,8 +44,8 @@
#define DRVNAME "g762"
static const struct i2c_device_id g762_id[] = {
{ "g762", 0 },
{ "g763", 0 },
{ "g762" },
{ "g763" },
{ }
};
MODULE_DEVICE_TABLE(i2c, g762_id);

View File

@ -642,7 +642,7 @@ static int gl518_probe(struct i2c_client *client)
}
static const struct i2c_device_id gl518_id[] = {
{ "gl518sm", 0 },
{ "gl518sm" },
{ }
};
MODULE_DEVICE_TABLE(i2c, gl518_id);

View File

@ -885,7 +885,7 @@ static int gl520_probe(struct i2c_client *client)
}
static const struct i2c_device_id gl520_id[] = {
{ "gl520sm", 0 },
{ "gl520sm" },
{ }
};
MODULE_DEVICE_TABLE(i2c, gl520_id);

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", 0 },
{ "hih6130" },
{ }
};
MODULE_DEVICE_TABLE(i2c, hih6130_id);

View File

@ -175,7 +175,7 @@ static const struct hwmon_chip_info hs3001_chip_info = {
/* device ID table */
static const struct i2c_device_id hs3001_ids[] = {
{ "hs3001", 0 },
{ "hs3001" },
{ },
};

View File

@ -576,7 +576,7 @@ static void ina209_remove(struct i2c_client *client)
}
static const struct i2c_device_id ina209_id[] = {
{ "ina209", 0 },
{ "ina209" },
{ }
};
MODULE_DEVICE_TABLE(i2c, ina209_id);

View File

@ -616,7 +616,7 @@ static int ina238_probe(struct i2c_client *client)
}
static const struct i2c_device_id ina238_id[] = {
{ "ina238", 0 },
{ "ina238" },
{ }
};
MODULE_DEVICE_TABLE(i2c, ina238_id);

View File

@ -1031,7 +1031,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", 0 },
{ "ina3221" },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(i2c, ina3221_ids);

View File

@ -609,7 +609,7 @@ static const struct dev_pm_ops jc42_dev_pm_ops = {
#endif /* CONFIG_PM */
static const struct i2c_device_id jc42_id[] = {
{ "jc42", 0 },
{ "jc42" },
{ }
};
MODULE_DEVICE_TABLE(i2c, jc42_id);

View File

@ -502,7 +502,7 @@ static int pem_probe(struct i2c_client *client)
}
static const struct i2c_device_id pem_id[] = {
{"lineage_pem", 0},
{"lineage_pem"},
{}
};
MODULE_DEVICE_TABLE(i2c, pem_id);

View File

@ -220,7 +220,7 @@ lm73_probe(struct i2c_client *client)
}
static const struct i2c_device_id lm73_ids[] = {
{ "lm73", 0 },
{ "lm73" },
{ /* LIST END */ }
};
MODULE_DEVICE_TABLE(i2c, lm73_ids);

View File

@ -337,7 +337,7 @@ static int lm77_probe(struct i2c_client *client)
}
static const struct i2c_device_id lm77_id[] = {
{ "lm77", 0 },
{ "lm77" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lm77_id);

View File

@ -975,7 +975,7 @@ static int lm87_probe(struct i2c_client *client)
*/
static const struct i2c_device_id lm87_id[] = {
{ "lm87", 0 },
{ "lm87" },
{ "adm1024", 0 },
{ }
};

View File

@ -2624,8 +2624,8 @@ static int lm93_probe(struct i2c_client *client)
}
static const struct i2c_device_id lm93_id[] = {
{ "lm93", 0 },
{ "lm94", 0 },
{ "lm93" },
{ "lm94" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lm93_id);

View File

@ -457,7 +457,7 @@ static int lm95241_probe(struct i2c_client *client)
/* Driver data (common to all clients) */
static const struct i2c_device_id lm95241_id[] = {
{ "lm95231", 0 },
{ "lm95231" },
{ "lm95241", 0 },
{ }
};

View File

@ -578,8 +578,8 @@ static int lm95245_probe(struct i2c_client *client)
/* Driver data (common to all clients) */
static const struct i2c_device_id lm95245_id[] = {
{ "lm95235", 0 },
{ "lm95245", 0 },
{ "lm95235" },
{ "lm95245" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lm95245_id);

View File

@ -508,7 +508,7 @@ static int ltc2945_probe(struct i2c_client *client)
}
static const struct i2c_device_id ltc2945_id[] = {
{"ltc2945", 0},
{"ltc2945"},
{ }
};

View File

@ -27,7 +27,7 @@ static int ltc2947_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id ltc2947_id[] = {
{"ltc2947", 0},
{"ltc2947"},
{}
};
MODULE_DEVICE_TABLE(i2c, ltc2947_id);

View File

@ -259,7 +259,7 @@ static int ltc2990_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id ltc2990_i2c_id[] = {
{ "ltc2990", 0 },
{ "ltc2990" },
{}
};
MODULE_DEVICE_TABLE(i2c, ltc2990_i2c_id);

View File

@ -414,7 +414,7 @@ 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", 0 },
{ "ltc2991" },
{}
};
MODULE_DEVICE_TABLE(i2c, ltc2991_i2c_id);

View File

@ -922,7 +922,7 @@ 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", 0},
{"ltc2992"},
{}
};
MODULE_DEVICE_TABLE(i2c, ltc2992_i2c_id);

View File

@ -188,7 +188,7 @@ static int ltc4151_probe(struct i2c_client *client)
}
static const struct i2c_device_id ltc4151_id[] = {
{ "ltc4151", 0 },
{ "ltc4151" },
{ }
};
MODULE_DEVICE_TABLE(i2c, ltc4151_id);

View File

@ -245,7 +245,7 @@ static int ltc4215_probe(struct i2c_client *client)
}
static const struct i2c_device_id ltc4215_id[] = {
{ "ltc4215", 0 },
{ "ltc4215" },
{ }
};
MODULE_DEVICE_TABLE(i2c, ltc4215_id);

View File

@ -200,7 +200,7 @@ static int ltc4222_probe(struct i2c_client *client)
}
static const struct i2c_device_id ltc4222_id[] = {
{"ltc4222", 0},
{"ltc4222"},
{ }
};

View File

@ -469,7 +469,7 @@ static int ltc4245_probe(struct i2c_client *client)
}
static const struct i2c_device_id ltc4245_id[] = {
{ "ltc4245", 0 },
{ "ltc4245" },
{ }
};
MODULE_DEVICE_TABLE(i2c, ltc4245_id);

View File

@ -163,7 +163,7 @@ static int ltc4260_probe(struct i2c_client *client)
}
static const struct i2c_device_id ltc4260_id[] = {
{"ltc4260", 0},
{"ltc4260"},
{ }
};

View File

@ -222,7 +222,7 @@ static int ltc4261_probe(struct i2c_client *client)
}
static const struct i2c_device_id ltc4261_id[] = {
{"ltc4261", 0},
{"ltc4261"},
{}
};

View File

@ -329,7 +329,7 @@ static int max127_probe(struct i2c_client *client)
}
static const struct i2c_device_id max127_id[] = {
{ "max127", 0 },
{ "max127" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max127_id);

View File

@ -285,7 +285,7 @@ static int max1619_probe(struct i2c_client *new_client)
}
static const struct i2c_device_id max1619_id[] = {
{ "max1619", 0 },
{ "max1619" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max1619_id);

View File

@ -345,7 +345,7 @@ max31730_probe(struct i2c_client *client)
}
static const struct i2c_device_id max31730_ids[] = {
{ "max31730", 0, },
{ "max31730" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max31730_ids);

View File

@ -543,7 +543,7 @@ static int max31790_probe(struct i2c_client *client)
}
static const struct i2c_device_id max31790_id[] = {
{ "max31790", 0 },
{ "max31790" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max31790_id);

View File

@ -493,7 +493,7 @@ static int max6620_probe(struct i2c_client *client)
}
static const struct i2c_device_id max6620_id[] = {
{ "max6620", 0 },
{ "max6620" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max6620_id);

View File

@ -610,7 +610,7 @@ static int max6639_resume(struct device *dev)
}
static const struct i2c_device_id max6639_id[] = {
{"max6639", 0},
{"max6639"},
{ }
};

View File

@ -291,7 +291,7 @@ static int max6642_probe(struct i2c_client *client)
*/
static const struct i2c_device_id max6642_id[] = {
{ "max6642", 0 },
{ "max6642" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max6642_id);

View File

@ -235,7 +235,7 @@ static int mc34vr500_probe(struct i2c_client *client)
}
static const struct i2c_device_id mc34vr500_id[] = {
{ "mc34vr500", 0 },
{ "mc34vr500" },
{ },
};
MODULE_DEVICE_TABLE(i2c, mc34vr500_id);

View File

@ -1212,7 +1212,7 @@ static const unsigned short nct7802_address_list[] = {
};
static const struct i2c_device_id nct7802_idtable[] = {
{ "nct7802", 0 },
{ "nct7802" },
{ }
};
MODULE_DEVICE_TABLE(i2c, nct7802_idtable);

View File

@ -1161,7 +1161,7 @@ static int nct7904_probe(struct i2c_client *client)
}
static const struct i2c_device_id nct7904_id[] = {
{"nct7904", 0},
{"nct7904"},
{}
};
MODULE_DEVICE_TABLE(i2c, nct7904_id);

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", 0 },
{ "pcf8591" },
{ }
};
MODULE_DEVICE_TABLE(i2c, pcf8591_id);

View File

@ -490,7 +490,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", 0 },
{ "adm1266" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adm1266_id);

View File

@ -29,7 +29,7 @@ static int adp1050_probe(struct i2c_client *client)
}
static const struct i2c_device_id adp1050_id[] = {
{"adp1050", 0},
{"adp1050"},
{}
};
MODULE_DEVICE_TABLE(i2c, adp1050_id);

View File

@ -197,7 +197,7 @@ static int ipsps_probe(struct i2c_client *client)
}
static const struct i2c_device_id ipsps_id[] = {
{ "ipsps1", 0 },
{ "ipsps1" },
{}
};
MODULE_DEVICE_TABLE(i2c, ipsps_id);

View File

@ -126,7 +126,7 @@ static int ir35221_probe(struct i2c_client *client)
}
static const struct i2c_device_id ir35221_id[] = {
{"ir35221", 0},
{"ir35221"},
{}
};

View File

@ -51,7 +51,7 @@ static int ir36021_probe(struct i2c_client *client)
}
static const struct i2c_device_id ir36021_id[] = {
{ "ir36021", 0 },
{ "ir36021" },
{},
};
MODULE_DEVICE_TABLE(i2c, ir36021_id);

View File

@ -53,10 +53,10 @@ static int ir38064_probe(struct i2c_client *client)
}
static const struct i2c_device_id ir38064_id[] = {
{"ir38060", 0},
{"ir38064", 0},
{"ir38164", 0},
{"ir38263", 0},
{"ir38060"},
{"ir38064"},
{"ir38164"},
{"ir38263"},
{}
};

View File

@ -44,7 +44,7 @@ static int irps5401_probe(struct i2c_client *client)
}
static const struct i2c_device_id irps5401_id[] = {
{"irps5401", 0},
{"irps5401"},
{}
};

View File

@ -168,7 +168,7 @@ static int lt7182s_probe(struct i2c_client *client)
}
static const struct i2c_device_id lt7182s_id[] = {
{ "lt7182s", 0 },
{ "lt7182s" },
{}
};
MODULE_DEVICE_TABLE(i2c, lt7182s_id);

View 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", 0},
{"ltc3815"},
{ }
};
MODULE_DEVICE_TABLE(i2c, ltc3815_id);

View File

@ -23,7 +23,7 @@
#include "pmbus.h"
static const struct i2c_device_id max15301_id[] = {
{"bmr461", 0},
{"bmr461"},
{"max15301", 0},
{}
};

View File

@ -91,7 +91,7 @@ static int max16064_probe(struct i2c_client *client)
}
static const struct i2c_device_id max16064_id[] = {
{"max16064", 0},
{"max16064"},
{}
};

View File

@ -32,7 +32,7 @@ static int max20751_probe(struct i2c_client *client)
}
static const struct i2c_device_id max20751_id[] = {
{"max20751", 0},
{"max20751"},
{}
};

View File

@ -518,9 +518,9 @@ static int max31785_probe(struct i2c_client *client)
}
static const struct i2c_device_id max31785_id[] = {
{ "max31785", 0 },
{ "max31785a", 0 },
{ "max31785b", 0 },
{ "max31785" },
{ "max31785a" },
{ "max31785b" },
{ },
};

View File

@ -171,7 +171,7 @@ static int max8688_probe(struct i2c_client *client)
}
static const struct i2c_device_id max8688_id[] = {
{"max8688", 0},
{"max8688"},
{ }
};

View File

@ -378,7 +378,7 @@ static int mp2888_probe(struct i2c_client *client)
}
static const struct i2c_device_id mp2888_id[] = {
{"mp2888", 0},
{"mp2888"},
{}
};

View File

@ -158,7 +158,7 @@ static const struct of_device_id mp5990_of_match[] = {
};
static const struct i2c_device_id mp5990_id[] = {
{"mp5990", 0},
{"mp5990"},
{ }
};
MODULE_DEVICE_TABLE(i2c, mp5990_id);

View File

@ -62,7 +62,7 @@ static int mpq8785_probe(struct i2c_client *client)
};
static const struct i2c_device_id mpq8785_id[] = {
{ "mpq8785", 0 },
{ "mpq8785" },
{ },
};
MODULE_DEVICE_TABLE(i2c, mpq8785_id);

View File

@ -141,7 +141,7 @@ static int pli1209bc_probe(struct i2c_client *client)
}
static const struct i2c_device_id pli1209bc_id[] = {
{"pli1209bc", 0},
{"pli1209bc"},
{}
};

View File

@ -48,7 +48,7 @@ static int pm6764tr_probe(struct i2c_client *client)
}
static const struct i2c_device_id pm6764tr_id[] = {
{"pm6764tr", 0},
{"pm6764tr"},
{}
};
MODULE_DEVICE_TABLE(i2c, pm6764tr_id);

View File

@ -127,9 +127,9 @@ static int pxe1610_probe(struct i2c_client *client)
}
static const struct i2c_device_id pxe1610_id[] = {
{"pxe1610", 0},
{"pxe1110", 0},
{"pxm1310", 0},
{"pxe1610"},
{"pxe1110"},
{"pxm1310"},
{}
};

View File

@ -18,8 +18,8 @@
#define STPDDC60_MFR_UV_LIMIT_OFFSET 0xe6
static const struct i2c_device_id stpddc60_id[] = {
{"stpddc60", 0},
{"bmr481", 0},
{"stpddc60"},
{"bmr481"},
{}
};
MODULE_DEVICE_TABLE(i2c, stpddc60_id);

View File

@ -195,7 +195,7 @@ static int tda38640_probe(struct i2c_client *client)
}
static const struct i2c_device_id tda38640_id[] = {
{"tda38640", 0},
{"tda38640"},
{}
};
MODULE_DEVICE_TABLE(i2c, tda38640_id);

View File

@ -31,7 +31,7 @@ static int tps40422_probe(struct i2c_client *client)
}
static const struct i2c_device_id tps40422_id[] = {
{"tps40422", 0},
{"tps40422"},
{}
};

View File

@ -42,7 +42,7 @@ static int tps546d24_probe(struct i2c_client *client)
}
static const struct i2c_device_id tps546d24_id[] = {
{"tps546d24", 0},
{"tps546d24"},
{}
};
MODULE_DEVICE_TABLE(i2c, tps546d24_id);

View File

@ -110,7 +110,7 @@ static const struct of_device_id xdp710_of_match[] = {
};
static const struct i2c_device_id xdp710_id[] = {
{"xdp710", 0},
{"xdp710"},
{ }
};
MODULE_DEVICE_TABLE(i2c, xdp710_id);

View File

@ -164,9 +164,9 @@ static int xdpe122_probe(struct i2c_client *client)
}
static const struct i2c_device_id xdpe122_id[] = {
{"xdpe11280", 0},
{"xdpe12254", 0},
{"xdpe12284", 0},
{"xdpe11280"},
{"xdpe12254"},
{"xdpe12284"},
{}
};

View File

@ -44,8 +44,8 @@ static int xdpe152_probe(struct i2c_client *client)
}
static const struct i2c_device_id xdpe152_id[] = {
{"xdpe152c4", 0},
{"xdpe15284", 0},
{"xdpe152c4"},
{"xdpe15284"},
{}
};

View File

@ -630,7 +630,7 @@ 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", 0 },
{ "pt5161l" },
{}
};
MODULE_DEVICE_TABLE(i2c, pt5161l_id);

View File

@ -328,7 +328,7 @@ static int sbrmi_probe(struct i2c_client *client)
}
static const struct i2c_device_id sbrmi_id[] = {
{"sbrmi", 0},
{"sbrmi"},
{}
};
MODULE_DEVICE_TABLE(i2c, sbrmi_id);

View File

@ -218,7 +218,7 @@ static int sbtsi_probe(struct i2c_client *client)
}
static const struct i2c_device_id sbtsi_id[] = {
{"sbtsi", 0},
{"sbtsi"},
{}
};
MODULE_DEVICE_TABLE(i2c, sbtsi_id);

View File

@ -278,7 +278,7 @@ static int sht21_probe(struct i2c_client *client)
/* Device ID table */
static const struct i2c_device_id sht21_id[] = {
{ "sht21", 0 },
{ "sht21" },
{ }
};
MODULE_DEVICE_TABLE(i2c, sht21_id);

View File

@ -276,7 +276,7 @@ static int sht4x_probe(struct i2c_client *client)
}
static const struct i2c_device_id sht4x_id[] = {
{ "sht4x", 0 },
{ "sht4x" },
{ },
};
MODULE_DEVICE_TABLE(i2c, sht4x_id);

View File

@ -618,7 +618,7 @@ static int smsc47m192_probe(struct i2c_client *client)
}
static const struct i2c_device_id smsc47m192_id[] = {
{ "smsc47m192", 0 },
{ "smsc47m192" },
{ }
};
MODULE_DEVICE_TABLE(i2c, smsc47m192_id);

View File

@ -72,7 +72,7 @@ static const int stts751_intervals[] = {
};
static const struct i2c_device_id stts751_id[] = {
{ "stts751", 0 },
{ "stts751" },
{ }
};

View File

@ -550,8 +550,8 @@ static int tc654_probe(struct i2c_client *client)
}
static const struct i2c_device_id tc654_id[] = {
{"tc654", 0},
{"tc655", 0},
{"tc654"},
{"tc655"},
{}
};

View File

@ -151,7 +151,7 @@ static int tc74_probe(struct i2c_client *client)
}
static const struct i2c_device_id tc74_id[] = {
{ "tc74", 0 },
{ "tc74" },
{}
};
MODULE_DEVICE_TABLE(i2c, tc74_id);

View File

@ -286,7 +286,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", 0 },
{ "tmp102" },
{ }
};
MODULE_DEVICE_TABLE(i2c, tmp102_id);

View File

@ -197,7 +197,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", 0 },
{ "tmp103" },
{ }
};
MODULE_DEVICE_TABLE(i2c, tmp103_id);

View File

@ -413,7 +413,7 @@ 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[] = {
{ "tmp108", 0 },
{ "tmp108" },
{ }
};
MODULE_DEVICE_TABLE(i2c, tmp108_i2c_ids);

View File

@ -328,7 +328,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", 0 },
{ "w83791d" },
{ }
};
MODULE_DEVICE_TABLE(i2c, w83791d_id);

View 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", 0 },
{ "w83792d" },
{ }
};
MODULE_DEVICE_TABLE(i2c, w83792d_id);

View 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", 0 },
{ "w83793" },
{ }
};
MODULE_DEVICE_TABLE(i2c, w83793_id);

View File

@ -74,7 +74,7 @@ static struct w83l785ts_data *w83l785ts_update_device(struct device *dev);
*/
static const struct i2c_device_id w83l785ts_id[] = {
{ "w83l785ts", 0 },
{ "w83l785ts" },
{ }
};
MODULE_DEVICE_TABLE(i2c, w83l785ts_id);

View File

@ -741,7 +741,7 @@ w83l786ng_probe(struct i2c_client *client)
}
static const struct i2c_device_id w83l786ng_id[] = {
{ "w83l786ng", 0 },
{ "w83l786ng" },
{ }
};
MODULE_DEVICE_TABLE(i2c, w83l786ng_id);