Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (adt7410): Support adt7422 chip

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>

authored by

Nuno Sá and committed by
Guenter Roeck
ad1519d5 7b2a5a84

+5 -3
+3 -3
drivers/hwmon/Kconfig
··· 175 175 select REGMAP 176 176 help 177 177 This module contains common code shared by the ADT7310/ADT7320 and 178 - ADT7410/ADT7420 temperature monitoring chip drivers. 178 + ADT7410/ADT7420/ADT7422 temperature monitoring chip drivers. 179 179 180 180 If built as a module, the module will be called adt7x10. 181 181 ··· 191 191 will be called adt7310. 192 192 193 193 config SENSORS_ADT7410 194 - tristate "Analog Devices ADT7410/ADT7420" 194 + tristate "Analog Devices ADT7410/ADT7420/ADT7422" 195 195 depends on I2C 196 196 select SENSORS_ADT7X10 197 197 help 198 198 If you say yes here you get support for the Analog Devices 199 - ADT7410 and ADT7420 temperature monitoring chips. 199 + ADT7410, ADT7420 and ADT7422 temperature monitoring chips. 200 200 201 201 This driver can also be built as a module. If so, the module 202 202 will be called adt7410.
+2
drivers/hwmon/adt7410.c
··· 91 91 static const struct i2c_device_id adt7410_ids[] = { 92 92 { "adt7410" }, 93 93 { "adt7420" }, 94 + { "adt7422" }, 94 95 {} 95 96 }; 96 97 MODULE_DEVICE_TABLE(i2c, adt7410_ids); ··· 99 98 static const struct of_device_id adt7410_of_match[] = { 100 99 { .compatible = "adi,adt7410" }, 101 100 { .compatible = "adi,adt7420" }, 101 + { .compatible = "adi,adt7422" }, 102 102 { } 103 103 }; 104 104 MODULE_DEVICE_TABLE(of, adt7410_of_match);