power: smb1398: Update adapter_type in the work-queue's context
There is mutex deadlock where the adapter_type is read in the
context of a call-back from the main-charger driver. Fix it by
moving it to the status_change work and using a local variable
to hold the type.
Change-Id: Id112097f70fbfb13acc368e9787cf6a0c3a1acff
Signed-off-by:
Kiran Gunda <kgunda@codeaurora.org>
Loading
Please register or sign in to comment