]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpio: mxc: use BIT() macro
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 26 May 2026 06:35:02 +0000 (08:35 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Thu, 28 May 2026 13:22:59 +0000 (15:22 +0200)
Replace the open-code with the BIT() macro.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260526063504.25916-2-alexander.stein@ew.tq-group.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-mxc.c

index 647b6f4861b74416abc564430c57c672f813f6bd..c7a5e039e926a0fbc15fc00858ede29de378a5b7 100644 (file)
@@ -330,13 +330,13 @@ static int gpio_set_wake_irq(struct irq_data *d, u32 enable)
                        ret = enable_irq_wake(port->irq_high);
                else
                        ret = enable_irq_wake(port->irq);
-               port->wakeup_pads |= (1 << gpio_idx);
+               port->wakeup_pads |= BIT(gpio_idx);
        } else {
                if (port->irq_high && (gpio_idx >= 16))
                        ret = disable_irq_wake(port->irq_high);
                else
                        ret = disable_irq_wake(port->irq);
-               port->wakeup_pads &= ~(1 << gpio_idx);
+               port->wakeup_pads &= ~BIT(gpio_idx);
        }
 
        return ret;