diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-08-28 08:18:14 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-28 18:31:12 -0400 |
commit | c41bdb526bca5cda5be3de8c112f63c400bf990f (patch) | |
tree | 8a1cd935598c827baa83cbbefbc532cca6e0f7ea /drivers/hwmon/atxp1.c | |
parent | 563daaf4047464eef5ffcb46194a99c1a8f2260e (diff) |
atxp1: Signed/unsigned char bug fix
vid_to_reg() can return -1 and char can be unsigned.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/hwmon/atxp1.c')
-rw-r--r-- | drivers/hwmon/atxp1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hwmon/atxp1.c b/drivers/hwmon/atxp1.c index 728a1e8b9190..ba843f8c4cef 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 | |||
116 | { | 116 | { |
117 | struct atxp1_data *data; | 117 | struct atxp1_data *data; |
118 | struct i2c_client *client; | 118 | struct i2c_client *client; |
119 | char vid; | 119 | int vid, cvid; |
120 | char cvid; | ||
121 | unsigned int vcore; | 120 | unsigned int vcore; |
122 | 121 | ||
123 | client = to_i2c_client(dev); | 122 | client = to_i2c_client(dev); |