summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLizhe <sensor1010@163.com>2023-05-19 19:07:16 +0200
committerLinus Walleij <linus.walleij@linaro.org>2023-05-29 15:07:27 +0200
commit6171212e9fc7b45a4c4f4736896f590389b95150 (patch)
treeedb2b5050ff3f336e52f06029b0018d91987a59d
parentpinctrl: axp209: Add support for GPIO3 on the AXP209 (diff)
downloadlinux-6171212e9fc7b45a4c4f4736896f590389b95150.tar.xz
linux-6171212e9fc7b45a4c4f4736896f590389b95150.zip
pinctrl: microchip: Remove redundant clearing of IRQ_TYPE_SENSE_MASK
Before executing microchip_sgpio_irq_set_type(), type has already been cleared IRQ_TYPE_SENSE_MASK, see __irq_set_trigger(). Signed-off-by: Lizhe <sensor1010@163.com> Link: https://lore.kernel.org/r/20230519170716.3459-1-sensor1010@163.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/pinctrl/pinctrl-microchip-sgpio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-microchip-sgpio.c b/drivers/pinctrl/pinctrl-microchip-sgpio.c
index 4794602316e7..59f232a68b5a 100644
--- a/drivers/pinctrl/pinctrl-microchip-sgpio.c
+++ b/drivers/pinctrl/pinctrl-microchip-sgpio.c
@@ -719,8 +719,6 @@ static void microchip_sgpio_irq_ack(struct irq_data *data)
static int microchip_sgpio_irq_set_type(struct irq_data *data, unsigned int type)
{
- type &= IRQ_TYPE_SENSE_MASK;
-
switch (type) {
case IRQ_TYPE_EDGE_BOTH:
irq_set_handler_locked(data, handle_edge_irq);