diff mbox

[RFT] pinctrl: mediatek: mtk-common: Fix a typo in mtk_eint_set_type

Message ID 1426317318.15425.1.camel@phoenix
State New
Headers show

Commit Message

Axel Lin March 14, 2015, 7:15 a.m. UTC
Fix a typo when checking level trigger irq type.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
Hi Hongzhou,
This looks like a typo, but I don't have the datasheet so please confirm if
this patch is correct or not.
 drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Axel Lin March 14, 2015, 7:33 a.m. UTC | #1
2015-03-14 15:15 GMT+08:00 Axel Lin <axel.lin@ingics.com>:
> Fix a typo when checking level trigger irq type.
Sorry. I take it back, current code should be correct.

Regards,
Axel
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
index 493294c..cc27929 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
@@ -934,7 +934,7 @@  static int mtk_eint_set_type(struct irq_data *d,
 	else
 		pctl->eint_dual_edges[d->hwirq] = 0;
 
-	if (type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_EDGE_FALLING)) {
+	if (type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) {
 		reg = mtk_eint_get_offset(pctl, d->hwirq,
 			eint_offsets->pol_clr);
 		writel(mask, reg);