[PATCH] Add driver for AD7414 i2c temperature sensor

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

 



Hi Sean,

Sorry for the late reply, your reply got lost in my mailbox.

On Wed, 30 Apr 2008 00:41:01 -0400, Sean MacLennan wrote:
> Here is a rework based on Jean Delvare's suggestions.
> 
> One change that may not be apparent is that the alert bit is active
> low. I feel that it reads wrong to have "cat temp_alert" return 1
> when the alert is off. So I invert this bit. Let me know how you feel
> about this.

I agree with you that 1 should mean "on" in sysfs, regardless of the
physical polarity. However, it seems to me that the ALERT polarity can
be changed (bit 4 of configuration register) so you shouldn't always
invert the bit in sysfs, only when the polarity is actually inverted.

That being said... After reading the datasheet, I am under the
impression that temp1_alert and temp1_max_alarm will trigger on the
same condition (temp1 > temp1_max). So having both files doesn't look
terribly useful to me. Especially when "temp1_alert" is not a standard
feature name, so libsensors will no pick it.

-- 
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