From: Alexey Dobriyan Date: Mon, 28 Aug 2006 12:18:14 +0000 (+0200) Subject: atxp1: Signed/unsigned char bug fix X-Git-Tag: v2.6.19-rc1~860^2~36 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c41bdb526bca5cda5be3de8c112f63c400bf990f;p=linux-2.6-omap-h63xx.git atxp1: Signed/unsigned char bug fix vid_to_reg() can return -1 and char can be unsigned. Signed-off-by: Alexey Dobriyan Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwmon/atxp1.c b/drivers/hwmon/atxp1.c index 728a1e8b919..ba843f8c4ce 100644 --- a/drivers/hwmon/atxp1.c +++ b/drivers/hwmon/atxp1.c @@ -116,8 +116,7 @@ static ssize_t atxp1_storevcore(struct device *dev, struct device_attribute *att { struct atxp1_data *data; struct i2c_client *client; - char vid; - char cvid; + int vid, cvid; unsigned int vcore; client = to_i2c_client(dev);