Skip to contentSkip to conversation

include/linux/mfd/intel_soc_pmic.h: add new data structures

PATCH In review Bin Gao 2 participants 3 messages Jun 11, 2016 – Jun 16, 2016

Subsystems (2)
lore
Share & tools
lore

Bin Gao

author
#0 lore raw

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

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.

---
 include/linux/mfd/intel_soc_pmic.h | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
include/linux/mfd/intel_soc_pmic.h +21 -0
index cf619db..7df4302 100644
@@ -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;
Signature · 1 line
1.9.1
#1 lore raw
Quoted 9 lines · Bin Gao

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.

---
 include/linux/mfd/intel_soc_pmic.h | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

Please place the addition of the structs into the patches which use them first.

Quoted 32 lines
include/linux/mfd/intel_soc_pmic.h +21 -0
index cf619db..7df4302 100644
@@ -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;
Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
#2 lore raw
Quoted 6 lines · Lee Jones
Quoted 4 lines · Bin Gao

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.

Quoted 8 lines
Quoted 5 lines
---
 include/linux/mfd/intel_soc_pmic.h | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

Please place the addition of the structs into the patches which use them first.

Oh, and when you submit patch-sets, please ensure they are 'threaded'. Or else they have a tendency to spread themselves to the four winds in people's Inboxes.

Please fix the subject line too (in all of your patches). To help with this you should always do a:

  `git log --oneline -- <subsystem>`
Quoted 33 lines
Quoted 32 lines
include/linux/mfd/intel_soc_pmic.h +21 -0
index cf619db..7df4302 100644
@@ -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;
Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog