Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: max77759: Drop use of irqd_get_trigger_type

irqd_get_trigger_type() is meant for cases where the driver needs to
know the configured IRQ trigger type and e.g. wants to change its
behaviour accordingly. Furthermore, platform support code, e.g. DT
handling, will configure the hardware based on that, and drivers don't
need to pass the trigger type into request_irq() and friends.

Drop the use from this driver, as it doesn't need to know the trigger
type.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://patch.msgid.link/20251217-max77759-mfd-irq-trigger-v1-1-e7d29f84d34f@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

André Draszik and committed by
Lee Jones
1c378a4c 0ec4122f

+1 -11
+1 -11
drivers/mfd/max77759.c
··· 587 587 static int max77759_probe(struct i2c_client *client) 588 588 { 589 589 struct regmap_irq_chip_data *irq_chip_data_pmic; 590 - struct irq_data *irq_data; 591 590 struct max77759 *max77759; 592 - unsigned long irq_flags; 593 591 unsigned int pmic_id; 594 592 int ret; 595 593 ··· 626 628 return ret; 627 629 } 628 630 629 - irq_data = irq_get_irq_data(client->irq); 630 - if (!irq_data) 631 - return dev_err_probe(&client->dev, -EINVAL, 632 - "invalid IRQ: %d\n", client->irq); 633 - 634 - irq_flags = IRQF_ONESHOT | IRQF_SHARED; 635 - irq_flags |= irqd_get_trigger_type(irq_data); 636 - 637 631 ret = devm_regmap_add_irq_chip(&client->dev, max77759->regmap_top, 638 - client->irq, irq_flags, 0, 632 + client->irq, IRQF_ONESHOT | IRQF_SHARED, 0, 639 633 &max77759_pmic_irq_chip, 640 634 &irq_chip_data_pmic); 641 635 if (ret)