Skip to content

Commit bed41f0

Browse files
Dzmitry Sankouskisre
authored andcommitted
power: supply: max17042: make interrupt shared
Fuelgauge blocks often are incorporated in bigger chip, which may use only 1 line for interrupts. Make interrupt shared. Reviewed-by: Hans de Goede <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Dzmitry Sankouski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 81312ea commit bed41f0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

drivers/power/supply/max17042_battery.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,14 +1103,7 @@ static int max17042_probe(struct i2c_client *client)
11031103
}
11041104

11051105
if (client->irq) {
1106-
unsigned int flags = IRQF_ONESHOT;
1107-
1108-
/*
1109-
* On ACPI systems the IRQ may be handled by ACPI-event code,
1110-
* so we need to share (if the ACPI code is willing to share).
1111-
*/
1112-
if (acpi_id)
1113-
flags |= IRQF_SHARED | IRQF_PROBE_SHARED;
1106+
unsigned int flags = IRQF_ONESHOT | IRQF_SHARED | IRQF_PROBE_SHARED;
11141107

11151108
ret = devm_request_threaded_irq(&client->dev, client->irq,
11161109
NULL,

0 commit comments

Comments
 (0)