diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2024-01-27 16:02:54 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-02-11 13:43:08 -0800 |
commit | e7b631d798716bba5cf1499caf62c548c7905439 (patch) | |
tree | a64629f3d48fde6d934923e2f0c58ca91be297fd /drivers/hwmon/max31760.c | |
parent | f7ab2d180e6a312b885d1aadb8ca6ea0933a55df (diff) | |
download | linux-stable-e7b631d798716bba5cf1499caf62c548c7905439.tar.gz linux-stable-e7b631d798716bba5cf1499caf62c548c7905439.tar.bz2 linux-stable-e7b631d798716bba5cf1499caf62c548c7905439.zip |
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: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/75747c6a-d414-4b07-8f66-5a5cdddc3c36@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/max31760.c')
-rw-r--r-- | drivers/hwmon/max31760.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/max31760.c b/drivers/hwmon/max31760.c index 79945eb466ae..1b6f71bc61cb 100644 --- a/drivers/hwmon/max31760.c +++ b/drivers/hwmon/max31760.c @@ -578,7 +578,6 @@ static DEFINE_SIMPLE_DEV_PM_OPS(max31760_pm_ops, max31760_suspend, max31760_resume); static struct i2c_driver max31760_driver = { - .class = I2C_CLASS_HWMON, .driver = { .name = "max31760", .of_match_table = max31760_of_match, |