misc: nct1008: modify shutdown functionality
authorSri Krishna chowdary <schowdary@nvidia.com>
Tue, 22 Jan 2013 14:03:14 +0000 (19:03 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:00:10 +0000 (13:00 -0700)
commit9e048af18ebef794136d450e43d9e245c9a316ac
tree3537ea8f6671ecb394454c1479256caa82eae1e5
parent6bddbafb08c9da07e137ff19ae632558357e73de
misc: nct1008: modify shutdown functionality

i2c transation can happen through means other than
work_func. Wait for any ongoing i2c transaction and
then shutdown.

Bug 1202277

Change-Id: I8e89ee5aec170cae3897e45ddd7379e8d12eace2
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/193058
(cherry picked from commit 87458dcf18aa894243e67bb8ac0b02abeededa51)
Reviewed-on: http://git-master/r/195913
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
drivers/misc/nct1008.c