aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ina2xx.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2012-05-12 14:33:11 -0400
committerGuenter Roeck <linux@roeck-us.net>2012-09-24 00:08:35 -0400
commitdc92cd0c13e0dbe2201fdececbb43c74af05da70 (patch)
treea95e6a5f4cb219bccf876b3e13c34c50906a2b85 /drivers/hwmon/ina2xx.c
parent6106db25c27550337a1d701631093cdfc645aa7b (diff)
hwmon: (ina2xx) Add support for INA220 and INA230
INA220 is register compatible to INA219, and INA230 is register compatible to INA226, so all we need to do is to add name aliases for those two chips. Cc: Lothar Felten <l-felten@ti.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/ina2xx.c')
-rw-r--r--drivers/hwmon/ina2xx.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c
index de8f2c6c6b66..70717d4a5e89 100644
--- a/drivers/hwmon/ina2xx.c
+++ b/drivers/hwmon/ina2xx.c
@@ -5,10 +5,18 @@
5 * Zero Drift Bi-Directional Current/Power Monitor with I2C Interface 5 * Zero Drift Bi-Directional Current/Power Monitor with I2C Interface
6 * Datasheet: http://www.ti.com/product/ina219 6 * Datasheet: http://www.ti.com/product/ina219
7 * 7 *
8 * INA220:
9 * Bi-Directional Current/Power Monitor with I2C Interface
10 * Datasheet: http://www.ti.com/product/ina220
11 *
8 * INA226: 12 * INA226:
9 * Bi-Directional Current/Power Monitor with I2C Interface 13 * Bi-Directional Current/Power Monitor with I2C Interface
10 * Datasheet: http://www.ti.com/product/ina226 14 * Datasheet: http://www.ti.com/product/ina226
11 * 15 *
16 * INA230:
17 * Bi-directional Current/Power Monitor with I2C Interface
18 * Datasheet: http://www.ti.com/product/ina230
19 *
12 * Copyright (C) 2012 Lothar Felten <l-felten@ti.com> 20 * Copyright (C) 2012 Lothar Felten <l-felten@ti.com>
13 * Thanks to Jan Volkering 21 * Thanks to Jan Volkering
14 * 22 *
@@ -277,7 +285,9 @@ static int ina2xx_remove(struct i2c_client *client)
277 285
278static const struct i2c_device_id ina2xx_id[] = { 286static const struct i2c_device_id ina2xx_id[] = {
279 { "ina219", ina219 }, 287 { "ina219", ina219 },
288 { "ina220", ina219 },
280 { "ina226", ina226 }, 289 { "ina226", ina226 },
290 { "ina230", ina226 },
281 { } 291 { }
282}; 292};
283MODULE_DEVICE_TABLE(i2c, ina2xx_id); 293MODULE_DEVICE_TABLE(i2c, ina2xx_id);