power: supply: smb347-charger: Replace mutex with IRQ disable/enable
authorDmitry Osipenko <digetx@gmail.com>
Thu, 13 Aug 2020 21:34:07 +0000 (00:34 +0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 26 Aug 2020 12:41:32 +0000 (14:41 +0200)
commit99298de5df92699b1f709dc35c8636d15be21e2e
tree6bc4f49d2dd72f96570ed42642b91d5c48b02918
parentdb14d3b45b4da39a02746237d6006fddc3bf241b
power: supply: smb347-charger: Replace mutex with IRQ disable/enable

Let's simply disable/enable IRQ rather than use a mutex that protects from
racing with the interrupt handler. The result of this patch is that it's a
bit easier now to follow the driver's code.

Tested-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/smb347-charger.c