public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 1/3] regmap: add generic macro to define regmap_irq
@ 2015-09-14 16:39 Qipeng Zha
  2015-09-14 16:39 ` [PATCH v6 2/3] mfd: update intel_soc_pmic structure to support Broxton WC PMIC Qipeng Zha
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Qipeng Zha @ 2015-09-14 16:39 UTC (permalink / raw)
  To: linux-kernel; +Cc: broonie, lee.jones, samuel.ortiz, qipeng.zha

Add REGMAP_IRQ_REG macro in regmap.h to define regmap_irq
structure easily for other driver module.

Signed-off-by: Qipeng Zha <qipeng.zha@intel.com>
---
 include/linux/regmap.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 116655d..0d1ee0a 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -517,6 +517,9 @@ struct regmap_irq {
 	unsigned int mask;
 };
 
+#define REGMAP_IRQ_REG(_irq, _off, _mask)		\
+	[_irq] = { .reg_offset = (_off), .mask = (_mask) }
+
 /**
  * Description of a generic regmap irq_chip.  This is not intended to
  * handle every possible interrupt controller, but it should handle a
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-09-24 17:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-14 16:39 [PATCH v6 1/3] regmap: add generic macro to define regmap_irq Qipeng Zha
2015-09-14 16:39 ` [PATCH v6 2/3] mfd: update intel_soc_pmic structure to support Broxton WC PMIC Qipeng Zha
2015-09-20  4:18   ` Lee Jones
2015-09-22 22:05   ` Lee Jones
2015-09-14 16:39 ` [PATCH v6 3/3] mfd: add Intel Broxton Whiskey Cove PMIC driver Qipeng Zha
2015-09-20  4:18   ` Lee Jones
2015-09-21  1:51     ` Zha, Qipeng
2015-09-22 22:05   ` Lee Jones
2015-09-19 18:22 ` [PATCH v6 1/3] regmap: add generic macro to define regmap_irq Mark Brown
2015-09-22 22:04   ` Lee Jones
2015-09-23 17:58     ` Mark Brown
2015-09-24 17:20       ` [GIT PULL] mfd: Immutable branch between MFD and Regmap due for v4.3 Lee Jones
2015-09-20  4:18 ` [PATCH v6 1/3] regmap: add generic macro to define regmap_irq Lee Jones
2015-09-22 22:04 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox