From: Qipeng Zha <qipeng.zha@intel.com>
To: linux-kernel@vger.kernel.org
Cc: broonie@kernel.org, lee.jones@linaro.org, samuel.ortiz@intel.com,
qipeng.zha@intel.com
Subject: [PATCH v6 1/3] regmap: add generic macro to define regmap_irq
Date: Tue, 15 Sep 2015 00:39:17 +0800 [thread overview]
Message-ID: <1442248759-124102-1-git-send-email-qipeng.zha@intel.com> (raw)
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
next reply other threads:[~2015-09-14 8:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-14 16:39 Qipeng Zha [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1442248759-124102-1-git-send-email-qipeng.zha@intel.com \
--to=qipeng.zha@intel.com \
--cc=broonie@kernel.org \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=samuel.ortiz@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®