misc: nct1008: modify shutdown functionality
authorSri Krishna chowdary <schowdary@nvidia.com>
Tue, 22 Jan 2013 14:03:14 +0000 (19:03 +0530)
committerMandar Padmawar <mpadmawar@nvidia.com>
Wed, 30 Jan 2013 11:46:25 +0000 (03:46 -0800)
commit87458dcf18aa894243e67bb8ac0b02abeededa51
tree7aadb94c25f80c3fc245e066fea83b692a0f98bf
parent4d5dde0a4ac6d60329a7dd23ab0bb2e1dd1b9387
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
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
drivers/misc/nct1008.c