diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2021-01-22 20:17:34 +0100 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2021-01-25 00:51:13 +0100 |
commit | 6996312642d2dad3070c3d276c7621f35e721f30 (patch) | |
tree | 64ebedc62a78e641ca142cee4c73304f2938d79f /tools | |
parent | power: supply: axp20x_usb_power: Init work before enabling IRQs (diff) | |
download | linux-6996312642d2dad3070c3d276c7621f35e721f30.tar.xz linux-6996312642d2dad3070c3d276c7621f35e721f30.zip |
power: supply: smb347-charger: Fix interrupt usage if interrupt is unavailable
The IRQ=0 could be a valid interrupt number in kernel because interrupt
numbers are virtual in a modern kernel. Hence fix the interrupt usage in
a case if interrupt is unavailable by not overriding the interrupt number
which is used by the driver.
Note that currently Nexus 7 is the only know device which uses SMB347
kernel diver and it has a properly working interrupt, hence this patch
doesn't fix any real problems, it's a minor cleanup/improvement.
Fixes: 99298de5df92 ("power: supply: smb347-charger: Replace mutex with IRQ disable/enable")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions