Commit e7b631d7 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Guenter Roeck

hwmon: Remove I2C_CLASS_HWMON from drivers w/o detect() and address_list

Class-based I2C probing requires detect() and address_list to be
set in the I2C client driver, see checks in i2c_detect().
It's misleading to declare I2C_CLASS_HWMON support if this
precondition isn't met.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/75747c6a-d414-4b07-8f66-5a5cdddc3c36@gmail.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent f7ab2d18
...@@ -250,7 +250,6 @@ static const struct of_device_id adm1177_dt_ids[] = { ...@@ -250,7 +250,6 @@ static const struct of_device_id adm1177_dt_ids[] = {
MODULE_DEVICE_TABLE(of, adm1177_dt_ids); MODULE_DEVICE_TABLE(of, adm1177_dt_ids);
static struct i2c_driver adm1177_driver = { static struct i2c_driver adm1177_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "adm1177", .name = "adm1177",
.of_match_table = adm1177_dt_ids, .of_match_table = adm1177_dt_ids,
......
...@@ -380,7 +380,6 @@ MODULE_DEVICE_TABLE(i2c, ds1621_id); ...@@ -380,7 +380,6 @@ MODULE_DEVICE_TABLE(i2c, ds1621_id);
/* This is the driver that will be inserted */ /* This is the driver that will be inserted */
static struct i2c_driver ds1621_driver = { static struct i2c_driver ds1621_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "ds1621", .name = "ds1621",
}, },
......
...@@ -241,7 +241,6 @@ MODULE_DEVICE_TABLE(i2c, ds620_id); ...@@ -241,7 +241,6 @@ MODULE_DEVICE_TABLE(i2c, ds620_id);
/* This is the driver that will be inserted */ /* This is the driver that will be inserted */
static struct i2c_driver ds620_driver = { static struct i2c_driver ds620_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "ds620", .name = "ds620",
}, },
......
...@@ -589,7 +589,6 @@ MODULE_DEVICE_TABLE(of, ina209_of_match); ...@@ -589,7 +589,6 @@ MODULE_DEVICE_TABLE(of, ina209_of_match);
/* This is the driver that will be inserted */ /* This is the driver that will be inserted */
static struct i2c_driver ina209_driver = { static struct i2c_driver ina209_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "ina209", .name = "ina209",
.of_match_table = of_match_ptr(ina209_of_match), .of_match_table = of_match_ptr(ina209_of_match),
......
...@@ -629,7 +629,6 @@ static const struct of_device_id __maybe_unused ina238_of_match[] = { ...@@ -629,7 +629,6 @@ static const struct of_device_id __maybe_unused ina238_of_match[] = {
MODULE_DEVICE_TABLE(of, ina238_of_match); MODULE_DEVICE_TABLE(of, ina238_of_match);
static struct i2c_driver ina238_driver = { static struct i2c_driver ina238_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "ina238", .name = "ina238",
.of_match_table = of_match_ptr(ina238_of_match), .of_match_table = of_match_ptr(ina238_of_match),
......
...@@ -335,7 +335,6 @@ static const struct i2c_device_id max127_id[] = { ...@@ -335,7 +335,6 @@ static const struct i2c_device_id max127_id[] = {
MODULE_DEVICE_TABLE(i2c, max127_id); MODULE_DEVICE_TABLE(i2c, max127_id);
static struct i2c_driver max127_driver = { static struct i2c_driver max127_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "max127", .name = "max127",
}, },
......
...@@ -578,7 +578,6 @@ static DEFINE_SIMPLE_DEV_PM_OPS(max31760_pm_ops, max31760_suspend, ...@@ -578,7 +578,6 @@ static DEFINE_SIMPLE_DEV_PM_OPS(max31760_pm_ops, max31760_suspend,
max31760_resume); max31760_resume);
static struct i2c_driver max31760_driver = { static struct i2c_driver max31760_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "max31760", .name = "max31760",
.of_match_table = max31760_of_match, .of_match_table = max31760_of_match,
......
...@@ -543,7 +543,6 @@ static const struct i2c_device_id max31790_id[] = { ...@@ -543,7 +543,6 @@ static const struct i2c_device_id max31790_id[] = {
MODULE_DEVICE_TABLE(i2c, max31790_id); MODULE_DEVICE_TABLE(i2c, max31790_id);
static struct i2c_driver max31790_driver = { static struct i2c_driver max31790_driver = {
.class = I2C_CLASS_HWMON,
.probe = max31790_probe, .probe = max31790_probe,
.driver = { .driver = {
.name = "max31790", .name = "max31790",
......
...@@ -652,7 +652,6 @@ static const struct of_device_id max31827_of_match[] = { ...@@ -652,7 +652,6 @@ static const struct of_device_id max31827_of_match[] = {
MODULE_DEVICE_TABLE(of, max31827_of_match); MODULE_DEVICE_TABLE(of, max31827_of_match);
static struct i2c_driver max31827_driver = { static struct i2c_driver max31827_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "max31827", .name = "max31827",
.of_match_table = max31827_of_match, .of_match_table = max31827_of_match,
......
...@@ -549,7 +549,6 @@ static const struct of_device_id __maybe_unused max6621_of_match[] = { ...@@ -549,7 +549,6 @@ static const struct of_device_id __maybe_unused max6621_of_match[] = {
MODULE_DEVICE_TABLE(of, max6621_of_match); MODULE_DEVICE_TABLE(of, max6621_of_match);
static struct i2c_driver max6621_driver = { static struct i2c_driver max6621_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = MAX6621_DRV_NAME, .name = MAX6621_DRV_NAME,
.of_match_table = of_match_ptr(max6621_of_match), .of_match_table = of_match_ptr(max6621_of_match),
......
...@@ -780,7 +780,6 @@ static const struct of_device_id __maybe_unused max6697_of_match[] = { ...@@ -780,7 +780,6 @@ static const struct of_device_id __maybe_unused max6697_of_match[] = {
MODULE_DEVICE_TABLE(of, max6697_of_match); MODULE_DEVICE_TABLE(of, max6697_of_match);
static struct i2c_driver max6697_driver = { static struct i2c_driver max6697_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "max6697", .name = "max6697",
.of_match_table = of_match_ptr(max6697_of_match), .of_match_table = of_match_ptr(max6697_of_match),
......
...@@ -241,7 +241,6 @@ static const struct of_device_id p8_i2c_occ_of_match[] = { ...@@ -241,7 +241,6 @@ static const struct of_device_id p8_i2c_occ_of_match[] = {
MODULE_DEVICE_TABLE(of, p8_i2c_occ_of_match); MODULE_DEVICE_TABLE(of, p8_i2c_occ_of_match);
static struct i2c_driver p8_i2c_occ_driver = { static struct i2c_driver p8_i2c_occ_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "occ-hwmon", .name = "occ-hwmon",
.of_match_table = p8_i2c_occ_of_match, .of_match_table = p8_i2c_occ_of_match,
......
...@@ -63,7 +63,6 @@ static const struct of_device_id __maybe_unused ir36021_of_id[] = { ...@@ -63,7 +63,6 @@ static const struct of_device_id __maybe_unused ir36021_of_id[] = {
MODULE_DEVICE_TABLE(of, ir36021_of_id); MODULE_DEVICE_TABLE(of, ir36021_of_id);
static struct i2c_driver ir36021_driver = { static struct i2c_driver ir36021_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "ir36021", .name = "ir36021",
.of_match_table = of_match_ptr(ir36021_of_id), .of_match_table = of_match_ptr(ir36021_of_id),
......
...@@ -323,7 +323,6 @@ static const struct i2c_device_id powr1220_ids[] = { ...@@ -323,7 +323,6 @@ static const struct i2c_device_id powr1220_ids[] = {
MODULE_DEVICE_TABLE(i2c, powr1220_ids); MODULE_DEVICE_TABLE(i2c, powr1220_ids);
static struct i2c_driver powr1220_driver = { static struct i2c_driver powr1220_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "powr1220", .name = "powr1220",
}, },
......
...@@ -342,7 +342,6 @@ static const struct of_device_id __maybe_unused sbrmi_of_match[] = { ...@@ -342,7 +342,6 @@ static const struct of_device_id __maybe_unused sbrmi_of_match[] = {
MODULE_DEVICE_TABLE(of, sbrmi_of_match); MODULE_DEVICE_TABLE(of, sbrmi_of_match);
static struct i2c_driver sbrmi_driver = { static struct i2c_driver sbrmi_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "sbrmi", .name = "sbrmi",
.of_match_table = of_match_ptr(sbrmi_of_match), .of_match_table = of_match_ptr(sbrmi_of_match),
......
...@@ -232,7 +232,6 @@ static const struct of_device_id __maybe_unused sbtsi_of_match[] = { ...@@ -232,7 +232,6 @@ static const struct of_device_id __maybe_unused sbtsi_of_match[] = {
MODULE_DEVICE_TABLE(of, sbtsi_of_match); MODULE_DEVICE_TABLE(of, sbtsi_of_match);
static struct i2c_driver sbtsi_driver = { static struct i2c_driver sbtsi_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "sbtsi", .name = "sbtsi",
.of_match_table = of_match_ptr(sbtsi_of_match), .of_match_table = of_match_ptr(sbtsi_of_match),
......
...@@ -290,7 +290,6 @@ static int w83773_probe(struct i2c_client *client) ...@@ -290,7 +290,6 @@ static int w83773_probe(struct i2c_client *client)
} }
static struct i2c_driver w83773_driver = { static struct i2c_driver w83773_driver = {
.class = I2C_CLASS_HWMON,
.driver = { .driver = {
.name = "w83773g", .name = "w83773g",
.of_match_table = of_match_ptr(w83773_of_match), .of_match_table = of_match_ptr(w83773_of_match),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment