diff mbox series

[2/4] pinctrl: mediatek: add no eint function for pin define

Message ID 554196e837f622eea62d11602b7c88721d6a776d.1537502494.git.sean.wang@mediatek.com (mailing list archive)
State New, archived
Headers show
Series [1/4] pinctrl: mediatek: fix static checker warning caused by EINT_NA | expand

Commit Message

Sean Wang Sept. 21, 2018, 4:07 a.m. UTC
From: Mars Cheng <mars.cheng@mediatek.com>

Add NO_EINT_SUPPORT back to pinctrl-mtk-common-v2.h as the alias of
EINT_NA to indicate that some pin not capable of being controlled as eint
and that is required by pinctrl-paris based driver as old
pinctrl-mtk-common.h already had.

Signed-off-by: Mars Cheng <mars.cheng@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
---
 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Linus Walleij Sept. 21, 2018, 4:12 p.m. UTC | #1
On Thu, Sep 20, 2018 at 9:07 PM <sean.wang@mediatek.com> wrote:

> From: Mars Cheng <mars.cheng@mediatek.com>
>
> Add NO_EINT_SUPPORT back to pinctrl-mtk-common-v2.h as the alias of
> EINT_NA to indicate that some pin not capable of being controlled as eint
> and that is required by pinctrl-paris based driver as old
> pinctrl-mtk-common.h already had.
>
> Signed-off-by: Mars Cheng <mars.cheng@mediatek.com>
> Signed-off-by: Sean Wang <sean.wang@mediatek.com>

Patch applied.

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h
index b618042..991c1c5 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h
+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h
@@ -19,6 +19,7 @@ 
 #define MTK_PULLUP     1
 
 #define EINT_NA	U16_MAX
+#define NO_EINT_SUPPORT	EINT_NA
 
 #define PIN_FIELD_CALC(_s_pin, _e_pin, _i_base, _s_addr, _x_addrs,      \
 		       _s_bit, _x_bits, _sz_reg, _fixed) {		\