History

hwmon: INA219 and INA226 support

Add support for the Texas Instruments INA219 and INA226 power monitors.

Felten, Lothar committed 14 years ago

Commit f7c2fe31 parent 9172b5d5 files · +430 −0Browse files

Showing the changes to include/linux/platform_data (1 of 5 files). Show all

Unified · Split

include/linux/platform_data/ina2xx.h+19−0
@@ -0,0 +1,19 @@
1+/*
2+ * Driver for Texas Instruments INA219, INA226 power monitor chips
3+ *
4+ * Copyright (C) 2012 Lothar Felten <l-felten@ti.com>
5+ *
6+ * This program is free software; you can redistribute it and/or modify
7+ * it under the terms of the GNU General Public License version 2 as
8+ * published by the Free Software Foundation.
9+ *
10+ * For further information, see the Documentation/hwmon/ina2xx file.
11+ */
12+
13+/**
14+ * struct ina2xx_platform_data - ina2xx info
15+ * @shunt_uohms shunt resistance in microohms
16+ */
17+struct ina2xx_platform_data {
18+ long shunt_uohms;
19+};