summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelten, Lothar <l-felten@ti.com>2012-05-12 04:36:38 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-05-22 06:48:02 -0700
commitf7c2fe386ae92b471a0edd4fa4bed7033224b9bf (patch)
tree8cb48fef02388eb5e64314aeb10143e5c20833cc /include
parent9172b5d124c2f54374d8cc5ed6098ecd8fb988cd (diff)
hwmon: INA219 and INA226 support
Add support for the Texas Instruments INA219 and INA226 power monitors. Signed-off-by: Lothar Felten <l-felten@ti.com> [guenter.roeck@ericsson.com: formatting cleanup; check for smbus word data; select PGA=8 for INA219] Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/ina2xx.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/platform_data/ina2xx.h b/include/linux/platform_data/ina2xx.h
new file mode 100644
index 000000000000..9abc0ca7259b
--- /dev/null
+++ b/include/linux/platform_data/ina2xx.h
@@ -0,0 +1,19 @@
+/*
+ * Driver for Texas Instruments INA219, INA226 power monitor chips
+ *
+ * Copyright (C) 2012 Lothar Felten <l-felten@ti.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * For further information, see the Documentation/hwmon/ina2xx file.
+ */
+
+/**
+ * struct ina2xx_platform_data - ina2xx info
+ * @shunt_uohms shunt resistance in microohms
+ */
+struct ina2xx_platform_data {
+ long shunt_uohms;
+};