Skip to contentSkip to conversation

extcon: max77843: Replace irqchip mask_invert with unmask_base

PATCH Applied Aidan MacDonald 3 participants 4 messages Nov 12, 2022 – Nov 20, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extcon: max77843: 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.

---
 drivers/extcon/extcon-max77843.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/extcon/extcon-max77843.c +1 -2
index 8e6e97ec65a8..1bc0426ce3f1 100644
@@ -189,8 +189,7 @@ static const struct regmap_irq max77843_muic_irq[] = {
 static const struct regmap_irq_chip max77843_muic_irq_chip = {
 	.name           = "max77843-muic",
 	.status_base    = MAX77843_MUIC_REG_INT1,
-	.mask_base      = MAX77843_MUIC_REG_INTMASK1,
-	.mask_invert    = true,
+	.unmask_base    = MAX77843_MUIC_REG_INTMASK1,
 	.num_regs       = 3,
 	.irqs           = max77843_muic_irq,
 	.num_irqs       = ARRAY_SIZE(max77843_muic_irq),
Signature · 1 line
2.38.1
#2 lore raw
Quoted 5 lines · Krzysztof Kozlowski
Quoted 4 lines · Aidan MacDonald

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.

Quoted 8 lines
Quoted 1 line

This is a resend? Or v2?

Best regards,
Krzysztof

It's a resend. The last submission couldn't be applied at the time because of dependency troubles.

Applied
#3 lore raw
In reply to Aidan MacDonald
Quoted 14 lines · Aidan MacDonald

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.

---
 drivers/extcon/extcon-max77843.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/extcon/extcon-max77843.c +0 -0
index 8e6e97ec65a8..1bc0426ce3f1 100644

drivers/extcon/extcon-max77843.c static const struct regmap_irq max77843_muic_irq[] = { · line 195

Quoted 9 lines
drivers/extcon/extcon-max77843.c +1 -2
@@ -189,8 +189,7 @@ static const struct regmap_irq max77843_muic_irq[] = {
 static const struct regmap_irq_chip max77843_muic_irq_chip = {
 	.name           = "max77843-muic",
 	.status_base    = MAX77843_MUIC_REG_INT1,
-	.mask_base      = MAX77843_MUIC_REG_INTMASK1,
-	.mask_invert    = true,
+	.unmask_base    = MAX77843_MUIC_REG_INTMASK1,
 	.num_regs       = 3,
 	.irqs           = max77843_muic_irq,
 	.num_irqs       = ARRAY_SIZE(max77843_muic_irq),

Applied it. Thanks.

Signature · 3 lines
Best Regards,
Samsung Electronics
Chanwoo Choi