mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
gpio: mxc: use BIT() macro
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>
This commit is contained in:
parent
5974454ab2
commit
9de94681ee
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user