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: NDavid Heidelberg <david@ixit.cz> Signed-off-by: NDmitry Osipenko <digetx@gmail.com> Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.com>
Showing
想要评论请 注册 或 登录