Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1419946

[PATCH 1/3] include/linux/mfd/intel_soc_pmic.h: add new data structures

From Bin Gao <bin.gao@linux.intel.com>
Newsgroups linux.kernel
Subject [PATCH 1/3] include/linux/mfd/intel_soc_pmic.h: add new data structures
Date 2016-06-11 10:10 +0200
Message-ID <rIM9s-xo-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


This patch adds three new data structures: struct trip_config_map {},
struct thermal_irq_map {} and struct pmic_thermal_data {} which are
required by some new drivers.

Signed-off-by: ysiyer <yegnesh.s.iyer@intel.com>
Signed-off-by: Bin Gao <bin.gao@intel.com>
---
 include/linux/mfd/intel_soc_pmic.h | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/include/linux/mfd/intel_soc_pmic.h b/include/linux/mfd/intel_soc_pmic.h
index cf619db..7df4302 100644
--- a/include/linux/mfd/intel_soc_pmic.h
+++ b/include/linux/mfd/intel_soc_pmic.h
@@ -21,6 +21,27 @@
 
 #include <linux/regmap.h>
 
+struct trip_config_map {
+	u16 irq_reg;
+	u16 irq_en;
+	u16 evt_stat;
+	u8 irq_mask;
+	u8 irq_en_mask;
+	u8 evt_mask;
+	u8 trip_num;
+};
+
+struct thermal_irq_map {
+	char handle[20];
+	int num_trips;
+	struct trip_config_map *trip_config;
+};
+
+struct pmic_thermal_data {
+	struct thermal_irq_map *maps;
+	int num_maps;
+};
+
 struct intel_soc_pmic {
 	int irq;
 	struct regmap *regmap;
-- 
1.9.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] include/linux/mfd/intel_soc_pmic.h: add new data  structures Bin Gao <bin.gao@linux.intel.com> - 2016-06-11 10:10 +0200
  Re: [PATCH 1/3] include/linux/mfd/intel_soc_pmic.h: add new data  structures Lee Jones <lee.jones@linaro.org> - 2016-06-16 16:30 +0200
    Re: [PATCH 1/3] include/linux/mfd/intel_soc_pmic.h: add new data  structures Lee Jones <lee.jones@linaro.org> - 2016-06-16 16:40 +0200

csiph-web