[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100517101407.193b93f2@hyperion.delvare>
Date: Mon, 17 May 2010 10:14:07 +0200
From: Jean Delvare <khali@...ux-fr.org>
To: Pavel Machek <pavel@....cz>
Cc: Benjamin Herrenschmidt <benh@...nel.crashing.org>,
lm-sensors@...sensors.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [lm-sensors] Simple fan question
Hi Pavel,
On Mon, 17 May 2010 09:46:21 +0200, Pavel Machek wrote:
> Hi!
>
> > Right.
> >
> > Now, maybe the best option is to have instead:
> >
> > fan[1-*]_discrete_value
> > Discrete value
> > RW
> >
> > fan[1-*]_supported values
> > List of supported discrete values
> > RO
>
> Hmm, for 100 different values, that will get ugly. What about simple
> fan_max file with values 0..fan_max being valid?
If you have 100 different values, you can map them to the standard
0..255 range of pwm[1-*] files.
> IIRC thinkpads have 8-or-so possible discrete cases...
Correct. And even these would map nicely to the 0..255 range IMHO.
--
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists