Skip to contentSkip to conversation

atxp1: Signed/unsigned char bug fix

PATCH New Jean Delvare 1 participant 1 message Aug 28, 2006 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/14 atxp1: Signed/unsigned char bug fix

From: Alexey Dobriyan <adobriyan at gmail.com>
Content-Disposition: inline; filename=hwmon-atxp1-signed-unsigned-char-bug.patch

vid_to_reg() can return -1 and char can be unsigned.

Signed-off-by Alexey Dobriyan <adobriyan at gmail.com>
Signed-off-by Jean Delvare <khali at linux-fr.org>

---

 drivers/hwmon/atxp1.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/hwmon/atxp1.c +1 -2
@@ -116,8 +116,7 @@
 {
 	struct atxp1_data *data;
 	struct i2c_client *client;
-	char vid;
-	char cvid;
+	int vid, cvid;
 	unsigned int vcore;
 
 	client = to_i2c_client(dev);
Signature · 1 line
Jean Delvare