Skip to content

Commit 342d669

Browse files
Robert BaldygaLee Jones
authored andcommitted
mfd: max77693: Handle IRQs using regmap
This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which use interrupts. Signed-off-by: Robert Baldyga <r.baldyga@samsung.com> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent d0540f9 commit 342d669

6 files changed

Lines changed: 195 additions & 361 deletions

File tree

‎drivers/extcon/extcon-max77693.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,8 @@ static int max77693_muic_probe(struct platform_device *pdev)
11541154
struct max77693_muic_irq *muic_irq = &muic_irqs[i];
11551155
unsigned int virq = 0;
11561156

1157-
virq = irq_create_mapping(max77693->irq_domain, muic_irq->irq);
1157+
virq = regmap_irq_get_virq(max77693->irq_data_muic,
1158+
muic_irq->irq);
11581159
if (!virq) {
11591160
ret = -EINVAL;
11601161
goto err_irq;

‎drivers/mfd/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ config MFD_MAX77693
384384
depends on I2C=y
385385
select MFD_CORE
386386
select REGMAP_I2C
387+
select REGMAP_IRQ
387388
help
388389
Say yes here to add support for Maxim Semiconductor MAX77693.
389390
This is a companion Power Management IC with Flash, Haptic, Charger,

‎drivers/mfd/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ obj-$(CONFIG_MFD_DA9063) += da9063.o
116116

117117
obj-$(CONFIG_MFD_MAX14577) += max14577.o
118118
obj-$(CONFIG_MFD_MAX77686) += max77686.o max77686-irq.o
119-
obj-$(CONFIG_MFD_MAX77693) += max77693.o max77693-irq.o
119+
obj-$(CONFIG_MFD_MAX77693) += max77693.o
120120
obj-$(CONFIG_MFD_MAX8907) += max8907.o
121121
max8925-objs := max8925-core.o max8925-i2c.o
122122
obj-$(CONFIG_MFD_MAX8925) += max8925.o

‎drivers/mfd/max77693-irq.c‎

Lines changed: 0 additions & 346 deletions
This file was deleted.

0 commit comments

Comments
 (0)