[PATCH] atxp1: signed/unsigned char bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alexey,

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

What does it take for char be unsigned? Never seen that.

> Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
> ---
> 
>  drivers/hwmon/atxp1.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> --- a/drivers/hwmon/atxp1.c
> +++ b/drivers/hwmon/atxp1.c
> @@ -116,8 +116,7 @@ static ssize_t atxp1_storevcore(struct d
>  {
>  	struct atxp1_data *data;
>  	struct i2c_client *client;
> -	char vid;
> -	char cvid;
> +	int vid, cvid;
>  	unsigned int vcore;
>  
>  	client = to_i2c_client(dev);

Whatever, this looks better with ints, I agree. I'll take that patch,
unless Sebastian objects.

-- 
Jean Delvare




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux