summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adm1177.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2024-01-27 16:02:54 +0100
committerGuenter Roeck <linux@roeck-us.net>2024-02-11 22:43:08 +0100
commite7b631d798716bba5cf1499caf62c548c7905439 (patch)
treea64629f3d48fde6d934923e2f0c58ca91be297fd /drivers/hwmon/adm1177.c
parentdt-bindings: hwmon: ina2xx: Describe ina260 chip (diff)
downloadlinux-e7b631d798716bba5cf1499caf62c548c7905439.tar.xz
linux-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/adm1177.c')
-rw-r--r--drivers/hwmon/adm1177.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/adm1177.c b/drivers/hwmon/adm1177.c
index 60a893f27159..3390102d2d4a 100644
--- a/drivers/hwmon/adm1177.c
+++ b/drivers/hwmon/adm1177.c
@@ -250,7 +250,6 @@ static const struct of_device_id adm1177_dt_ids[] = {
MODULE_DEVICE_TABLE(of, adm1177_dt_ids);
static struct i2c_driver adm1177_driver = {
- .class = I2C_CLASS_HWMON,
.driver = {
.name = "adm1177",
.of_match_table = adm1177_dt_ids,