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>
This commit is contained in:
Nuno Sá 2025-10-15 15:52:21 +01:00 committed by Guenter Roeck
parent 7b2a5a8469
commit ad1519d587
2 changed files with 5 additions and 3 deletions

View File

@ -175,7 +175,7 @@ config SENSORS_ADT7X10
select REGMAP select REGMAP
help help
This module contains common code shared by the ADT7310/ADT7320 and 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. If built as a module, the module will be called adt7x10.
@ -191,12 +191,12 @@ config SENSORS_ADT7310
will be called adt7310. will be called adt7310.
config SENSORS_ADT7410 config SENSORS_ADT7410
tristate "Analog Devices ADT7410/ADT7420" tristate "Analog Devices ADT7410/ADT7420/ADT7422"
depends on I2C depends on I2C
select SENSORS_ADT7X10 select SENSORS_ADT7X10
help help
If you say yes here you get support for the Analog Devices 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 This driver can also be built as a module. If so, the module
will be called adt7410. will be called adt7410.

View File

@ -91,6 +91,7 @@ static int adt7410_i2c_probe(struct i2c_client *client)
static const struct i2c_device_id adt7410_ids[] = { static const struct i2c_device_id adt7410_ids[] = {
{ "adt7410" }, { "adt7410" },
{ "adt7420" }, { "adt7420" },
{ "adt7422" },
{} {}
}; };
MODULE_DEVICE_TABLE(i2c, adt7410_ids); 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[] = { static const struct of_device_id adt7410_of_match[] = {
{ .compatible = "adi,adt7410" }, { .compatible = "adi,adt7410" },
{ .compatible = "adi,adt7420" }, { .compatible = "adi,adt7420" },
{ .compatible = "adi,adt7422" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, adt7410_of_match); MODULE_DEVICE_TABLE(of, adt7410_of_match);