Avoid setting signed temperature value into unsigned long pointer
Bug
1454792
Change-Id: I583f2296c294b6d499fcdf8e1b9338cce5b8344d
Reviewed-on: http://git-master/r/384655
(cherry picked from commit
72ccbb69fcf0375ce7a26db7c32dd3dd925a6f26)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/392044
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
}
static int nct1008_ext_get_temp_common(struct nct1008_data *data,
- unsigned long *temp)
+ long *temp)
{
struct i2c_client *client = data->client;
struct nct1008_platform_data *pdata = client->dev.platform_data;
{
struct nct1008_data *data = cdev->devdata;
long ext_limit = data->plat_data.shutdown_ext_limit * 1000;
- unsigned long temp;
+ long temp;
if (nct1008_ext_get_temp_common(data, &temp))
return -1;
static long temp_sav;
struct nct1008_data *data = cdev->devdata;
long ext_limit = data->plat_data.shutdown_ext_limit * 1000;
- unsigned long temp;
+ long temp;
if (nct1008_ext_get_temp_common(data, &temp))
return -1;