misc: nct1008: error handling change
authorBitan Biswas <bbiswas@nvidia.com>
Mon, 12 Sep 2011 19:41:16 +0000 (00:41 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Fri, 23 Mar 2012 07:53:10 +0000 (00:53 -0700)
commit1b28d33fdd8a5222ab5d789c1d0bd67c0ee7abcd
tree8d424f60ee12bb4d8fe33564bccb2dbd4a7ce600
parent2e49444bdba6355f324da4d34e766f51407f58ee
misc: nct1008: error handling change

Error handling in the driver was not correctly done earlier. Changes
done are as follows:
- error returned stored in int data type instead of u8 or s8
- few places error was not checked, added the checks needed.

Reviewed-on: http://git-master/r/51855
(cherry picked from commit c8e014fa9d8a7cad2d78d91fad8fe056b4ea0714)

Reviewed-on: http://git-master/r/54990
(cherry picked from commit 8f9f4a8e72998fef8bea9aa00e9ac136920f8dc0)

Change-Id: Id6da54e8d6d39d47962fa8e74ac91934788267fa
Reviewed-on: http://git-master/r/57365
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R2fd8ef10485da58395e352974384e3f20e913d38
drivers/misc/nct1008.c