Re: [lm-sensors] hwmon/f75375s.c: buggy if()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mark M. Hoffman <mhoffman@...>
Cc: Riku Voipio <riku.voipio@...>, Adrian Bunk <bunk@...>, <linux-kernel@...>, <lm-sensors@...>
Date: Friday, October 19, 2007 - 8:37 am

Hi Mark, hi Riku,

On Thu, 18 Oct 2007 09:37:44 -0400, Mark M. Hoffman wrote:

BTW, that's the wrong way to do it. If the F75373S doesn't support
changing the PWM mode, then the sysfs attribute in question should be
read-only for this chip type. Making it writable and returning an error
on write is confusing.

Riku, can you please submit a patch fixing this? The attribute should
be declared read-only, and then you can use sysfs_chmod_file() to
change it to read-write where supported. Take a look at the w83781d
driver for an example.

Thanks,
-- 
Jean Delvare
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
hwmon/f75375s.c: buggy if(), Adrian Bunk, (Wed Oct 17, 3:54 pm)
Re: hwmon/f75375s.c: buggy if(), Riku Voipio, (Wed Oct 17, 4:45 pm)
Re: hwmon/f75375s.c: buggy if(), Mark M. Hoffman, (Thu Oct 18, 9:37 am)
Re: [lm-sensors] hwmon/f75375s.c: buggy if(), Jean Delvare, (Fri Oct 19, 8:37 am)
Re: [lm-sensors] hwmon/f75375s.c: buggy if(), Riku Voipio, (Wed Oct 24, 7:50 am)
Re: [lm-sensors] hwmon/f75375s.c: buggy if(), Jean Delvare, (Thu Oct 25, 7:09 am)
Re: [lm-sensors] hwmon/f75375s.c: buggy if(), Mark M. Hoffman, (Wed Oct 24, 10:25 pm)
Re: [lm-sensors] hwmon/f75375s.c: buggy if(), Riku Voipio, (Thu Oct 25, 7:48 am)
Re: [lm-sensors] hwmon/f75375s.c: buggy if(), Jean Delvare, (Fri Oct 26, 4:36 am)
Re: [lm-sensors] hwmon/f75375s.c: buggy if(), Riku Voipio, (Fri Oct 26, 7:14 am)
Re: [lm-sensors] hwmon/f75375s.c: buggy if(), Mark M. Hoffman, (Sun Oct 28, 1:33 pm)
Re: [lm-sensors] hwmon/f75375s.c: buggy if(), Jean Delvare, (Fri Oct 26, 5:15 pm)