Commit 911b8b42 authored by Aidan MacDonald's avatar Aidan MacDonald Committed by Lee Jones

mfd: max14577: 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: default avatarAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Acked-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221112151835.39059-6-aidanmacdonald.0x0@gmail.com
parent 3576fc04
...@@ -209,8 +209,7 @@ static const struct regmap_irq max14577_irqs[] = { ...@@ -209,8 +209,7 @@ static const struct regmap_irq max14577_irqs[] = {
static const struct regmap_irq_chip max14577_irq_chip = { static const struct regmap_irq_chip max14577_irq_chip = {
.name = "max14577", .name = "max14577",
.status_base = MAX14577_REG_INT1, .status_base = MAX14577_REG_INT1,
.mask_base = MAX14577_REG_INTMASK1, .unmask_base = MAX14577_REG_INTMASK1,
.mask_invert = true,
.num_regs = 3, .num_regs = 3,
.irqs = max14577_irqs, .irqs = max14577_irqs,
.num_irqs = ARRAY_SIZE(max14577_irqs), .num_irqs = ARRAY_SIZE(max14577_irqs),
...@@ -239,8 +238,7 @@ static const struct regmap_irq max77836_muic_irqs[] = { ...@@ -239,8 +238,7 @@ static const struct regmap_irq max77836_muic_irqs[] = {
static const struct regmap_irq_chip max77836_muic_irq_chip = { static const struct regmap_irq_chip max77836_muic_irq_chip = {
.name = "max77836-muic", .name = "max77836-muic",
.status_base = MAX14577_REG_INT1, .status_base = MAX14577_REG_INT1,
.mask_base = MAX14577_REG_INTMASK1, .unmask_base = MAX14577_REG_INTMASK1,
.mask_invert = true,
.num_regs = 3, .num_regs = 3,
.irqs = max77836_muic_irqs, .irqs = max77836_muic_irqs,
.num_irqs = ARRAY_SIZE(max77836_muic_irqs), .num_irqs = ARRAY_SIZE(max77836_muic_irqs),
...@@ -255,7 +253,6 @@ static const struct regmap_irq_chip max77836_pmic_irq_chip = { ...@@ -255,7 +253,6 @@ static const struct regmap_irq_chip max77836_pmic_irq_chip = {
.name = "max77836-pmic", .name = "max77836-pmic",
.status_base = MAX77836_PMIC_REG_TOPSYS_INT, .status_base = MAX77836_PMIC_REG_TOPSYS_INT,
.mask_base = MAX77836_PMIC_REG_TOPSYS_INT_MASK, .mask_base = MAX77836_PMIC_REG_TOPSYS_INT_MASK,
.mask_invert = false,
.num_regs = 1, .num_regs = 1,
.irqs = max77836_pmic_irqs, .irqs = max77836_pmic_irqs,
.num_irqs = ARRAY_SIZE(max77836_pmic_irqs), .num_irqs = ARRAY_SIZE(max77836_pmic_irqs),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment