aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorKevin Hilman <khilman@linaro.org>2015-01-14 20:34:58 -0500
committerGuenter Roeck <linux@roeck-us.net>2015-01-26 00:23:59 -0500
commitadd513be1c47b3b2765c3f618a69c9db26d8dc27 (patch)
tree60b7025ed1f4cc6f838ccdb963f6664b2d25107e /drivers/hwmon
parentb721fe2a3a92b896ba1b41e338471dfef672052a (diff)
hwmon: (ina2xx) Add ina231 compatible string
Add support for "ina231" as compatible string, and update Documentation and Kconfig accordingly. Tested with the Exynos5422-based odroid-xu3 board which has on-board INA231 sensors. Signed-off-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/Kconfig4
-rw-r--r--drivers/hwmon/ina2xx.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index a7de26d1ac80..c24394086b40 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -1430,8 +1430,8 @@ config SENSORS_INA2XX
1430 tristate "Texas Instruments INA219 and compatibles" 1430 tristate "Texas Instruments INA219 and compatibles"
1431 depends on I2C 1431 depends on I2C
1432 help 1432 help
1433 If you say yes here you get support for INA219, INA220, INA226, and 1433 If you say yes here you get support for INA219, INA220, INA226,
1434 INA230 power monitor chips. 1434 INA230, and INA231 power monitor chips.
1435 1435
1436 The INA2xx driver is configured for the default configuration of 1436 The INA2xx driver is configured for the default configuration of
1437 the part as described in the datasheet. 1437 the part as described in the datasheet.
diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c
index 611ec4edd979..d1542b7d4bc3 100644
--- a/drivers/hwmon/ina2xx.c
+++ b/drivers/hwmon/ina2xx.c
@@ -538,6 +538,7 @@ static const struct i2c_device_id ina2xx_id[] = {
538 { "ina220", ina219 }, 538 { "ina220", ina219 },
539 { "ina226", ina226 }, 539 { "ina226", ina226 },
540 { "ina230", ina226 }, 540 { "ina230", ina226 },
541 { "ina231", ina226 },
541 { } 542 { }
542}; 543};
543MODULE_DEVICE_TABLE(i2c, ina2xx_id); 544MODULE_DEVICE_TABLE(i2c, ina2xx_id);