Skip to content

Commit

Permalink
irqchip/sl28cpld: Replace irqchip mask_invert with unmask_base
Browse files Browse the repository at this point in the history
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 <aidanmacdonald.0x0@gmail.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221112152701.41990-1-aidanmacdonald.0x0@gmail.com
  • Loading branch information
Aidan MacDonald authored and Marc Zyngier committed Nov 26, 2022
1 parent 4208d4f commit d502c55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/irqchip/irq-sl28cpld.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ static int sl28cpld_intc_probe(struct platform_device *pdev)
irqchip->chip.num_irqs = ARRAY_SIZE(sl28cpld_irqs);
irqchip->chip.num_regs = 1;
irqchip->chip.status_base = base + INTC_IP;
irqchip->chip.mask_base = base + INTC_IE;
irqchip->chip.mask_invert = true;
irqchip->chip.unmask_base = base + INTC_IE;
irqchip->chip.ack_base = base + INTC_IP;

return devm_regmap_add_irq_chip_fwnode(dev, dev_fwnode(dev),
Expand Down

0 comments on commit d502c55

Please sign in to comment.