drivers: misc: nct: fix integer overflow in temperature set/get
authorLucas Dai <lucasd@nvidia.com>
Tue, 15 Jan 2013 08:40:25 +0000 (16:40 +0800)
committerRiham Haidar <rhaidar@nvidia.com>
Wed, 16 Jan 2013 22:14:48 +0000 (14:14 -0800)
commitf79ce6a5504472b16a5bd159b420da40b6039881
tree8eab7b8636b45912ea7f188d05c33bca66dd4480
parente503a08b809844b53b7737e504e9f376f4a8a1eb
drivers: misc: nct: fix integer overflow in temperature set/get

change temperature type size from s8 to s16 to support
wider measurement range of −64C to +191C in extended mode

Bug 1217620

Change-Id: I2163d6a0752de7982cf48b987b871e1596f1ee54
Signed-off-by: Lucas Dai <lucasd@nvidia.com>
Reviewed-on: http://git-master/r/190948
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
drivers/misc/nct1008.c
include/linux/nct1008.h