]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
hwmon: (adt7410): Support adt7422 chip
authorNuno Sá <nuno.sa@analog.com>
Wed, 15 Oct 2025 14:52:21 +0000 (15:52 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 16 Oct 2025 20:46:06 +0000 (13:46 -0700)
Add support for the ADT7422 high accuracy digital temperature sensor. It's
identical to the other chips supported in the driver so we just need to
add it to the ID tables.

Co-developed-by: Cosmin Tanislav <demonsingur@gmail.com>
Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20251015-dev-add-adt7422-v1-3-7cf72d3253ad@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/Kconfig
drivers/hwmon/adt7410.c

index 2760feb9f83b5d3b990b27acff572e587b373e9d..aa783be9b73d20283d4ca72c61fd35568ade5b05 100644 (file)
@@ -175,7 +175,7 @@ config SENSORS_ADT7X10
        select REGMAP
        help
          This module contains common code shared by the ADT7310/ADT7320 and
-         ADT7410/ADT7420 temperature monitoring chip drivers.
+         ADT7410/ADT7420/ADT7422 temperature monitoring chip drivers.
 
          If built as a module, the module will be called adt7x10.
 
@@ -191,12 +191,12 @@ config SENSORS_ADT7310
          will be called adt7310.
 
 config SENSORS_ADT7410
-       tristate "Analog Devices ADT7410/ADT7420"
+       tristate "Analog Devices ADT7410/ADT7420/ADT7422"
        depends on I2C
        select SENSORS_ADT7X10
        help
          If you say yes here you get support for the Analog Devices
-         ADT7410 and ADT7420 temperature monitoring chips.
+         ADT7410, ADT7420 and ADT7422 temperature monitoring chips.
 
          This driver can also be built as a module. If so, the module
          will be called adt7410.
index 79952866a4db48f0dbc6aabcf56558209c9ecf6a..73b196a78f3a09afe378dd6816b7288de005f123 100644 (file)
@@ -91,6 +91,7 @@ static int adt7410_i2c_probe(struct i2c_client *client)
 static const struct i2c_device_id adt7410_ids[] = {
        { "adt7410" },
        { "adt7420" },
+       { "adt7422" },
        {}
 };
 MODULE_DEVICE_TABLE(i2c, adt7410_ids);
@@ -98,6 +99,7 @@ MODULE_DEVICE_TABLE(i2c, adt7410_ids);
 static const struct of_device_id adt7410_of_match[] = {
        { .compatible = "adi,adt7410" },
        { .compatible = "adi,adt7420" },
+       { .compatible = "adi,adt7422" },
        { }
 };
 MODULE_DEVICE_TABLE(of, adt7410_of_match);