Commit c41bdb52 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Greg Kroah-Hartman
Browse files

atxp1: Signed/unsigned char bug fix

vid_to_reg() can return -1 and char can be unsigned.
Signed-off-by: default avatarAlexey Dobriyan <>
Signed-off-by: default avatarJean Delvare <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 563daaf4
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment