[PATCH] Update: Add driver for AD7414 i2c temperature sensor

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

 



Jean Delvare wrote:
>
>> +	/* Register values */
>> +	u16			temp_input;
>> +	u8			temp_max;
>> +	u8			temp_min;
>>     
>
> Temperature values can be negative, so these should be s16 and s8
> respectively.
>
>   
I think these are fine as is. They are the raw values back from the chip 
and are always passed through  AD7414_TEMP_FROM_REG.

Good catch on the simple_strtoul. I only tested positive values since 
the taco will only be dealing in positive values.

Cheers,
   Sean




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

  Powered by Linux