Skip to content

Commit 739be9b

Browse files
Aidan MacDonaldBartosz Golaszewski
authored andcommitted
gpio: sl28cpld: Replace irqchip mask_invert with unmask_base
Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent ddf07bd commit 739be9b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpio/gpio-sl28cpld.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ static int sl28cpld_gpio_irq_init(struct platform_device *pdev,
7070
irq_chip->num_irqs = ARRAY_SIZE(sl28cpld_gpio_irqs);
7171
irq_chip->num_regs = 1;
7272
irq_chip->status_base = base + GPIO_REG_IP;
73-
irq_chip->mask_base = base + GPIO_REG_IE;
74-
irq_chip->mask_invert = true;
73+
irq_chip->unmask_base = base + GPIO_REG_IE;
7574
irq_chip->ack_base = base + GPIO_REG_IP;
7675

7776
ret = devm_regmap_add_irq_chip_fwnode(dev, dev_fwnode(dev),

0 commit comments

Comments
 (0)