summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorvenu byravarasu <vbyravarasu@nvidia.com>2011-06-16 11:45:35 +0530
committerNiket Sirsi <nsirsi@nvidia.com>2011-06-17 13:46:32 -0700
commit6e97ede383458edfcc30afdb13ac3d818c9c3ef7 (patch)
tree8065edd710348cdcaa5e28605fdb7d3ebbcf90fb /include
parent081c1bf3b1d77e808742741ea2977034eba23382 (diff)
hwmon: ina219: powermon driver for TI ina219
checking in hwmon driver for TI power monitor device INA219 bug 808311 Change-Id: Idc7a4d6b4fd867db5dc64dc09d6b1f847f9276f4 Reviewed-on: http://git-master/r/34293 Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ina219.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/linux/ina219.h b/include/linux/ina219.h
new file mode 100644
index 000000000000..c27fa26c5759
--- /dev/null
+++ b/include/linux/ina219.h
@@ -0,0 +1,34 @@
+/*
+ * linux/include/linux/ina219.h
+ *
+ * Copyright (c) 2011, NVIDIA Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef _INA219_H
+#define _INA219_H
+
+#include <linux/types.h>
+
+struct ina219_platform_data {
+ u8 divisor; /*divisor needed to get current value */
+ u32 calibration_data;
+ u32 power_lsb;
+ char rail_name[20];
+};
+
+#endif /* _LINUX_INA219_H */
+