diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-02-01 16:27:16 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:59:43 -0700 |
commit | 055cce0a6fba742a4cde4c590e9d488ba7243027 (patch) | |
tree | 7f52aa1c65f4ed60b64fe0b7daa7173eec00943c /drivers/hwmon | |
parent | 7656e8ccc1ace14de2ef320d20552ae04c39433b (diff) |
hwmon: ina230: add support for HPA02149
The TI current/power monitor device INA230 is compatible with the
HAP02149. Add module ID for the HPA02149.
This device is also compatible with INA226 and hence adding ina226
as module-id.
In this way, this driver can regsitered with the name as "ina226" or
"ina230" or "hpa02149".
bug 1218687
(CherrChange-Id: Ic67227bc6d415fd559d804f4bd97e4ea4018d872)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/196411
Change-Id: Ic67227bc6d415fd559d804f4bd97e4ea4018d872
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/199104
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/Kconfig | 5 | ||||
-rw-r--r-- | drivers/hwmon/ina230.c | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 35d8e9acf722..de606cc1e50c 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -1565,11 +1565,10 @@ config SENSORS_INA219 Support for the TI INA219 power monitor sensor. config SENSORS_INA230 - tristate "Texas Instruments INA230 POWER MONITOR SENSOR DRIVER" + tristate "TI INA230/INA226/HPA02149 POWER MONITOR SENSOR DRIVER" depends on I2C help - Support for the TI INA230 power monitor sensor. - (also works for TI INA226) + Support for the TI INA230/INA226/HPA02149 power monitor sensor. config SENSORS_INA3221 tristate "Texas Instruments INA3221 POWER MONITOR SENSOR DRIVER" diff --git a/drivers/hwmon/ina230.c b/drivers/hwmon/ina230.c index 58cfab6743e2..deb4f2902f4b 100644 --- a/drivers/hwmon/ina230.c +++ b/drivers/hwmon/ina230.c @@ -1,6 +1,5 @@ /* - * ina230.c - driver for TI INA230 current / power monitor sensor - * (also compatible with TI INA226) + * ina230.c - driver for TI INA230/INA226/HPA02149 current/power monitor sensor * * * Copyright (c) 2011-2013, NVIDIA Corporation. All rights reserved. @@ -598,7 +597,9 @@ static int ina230_resume(struct i2c_client *client) static const struct i2c_device_id ina230_id[] = { - {DRIVER_NAME, 0 }, + {"ina226", 0 }, + {"ina230", 0 }, + {"hpa02149", 0 }, {} }; MODULE_DEVICE_TABLE(i2c, ina230_id); |