提交 c41bdb52 编写于 作者: A Alexey Dobriyan 提交者: Greg Kroah-Hartman

atxp1: Signed/unsigned char bug fix

vid_to_reg() can return -1 and char can be unsigned.
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NJean Delvare <khali@linux-fr.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册