public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: Pavel Machek <pavel@ucw.cz>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	lm-sensors@lm-sensors.org,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [lm-sensors] Simple fan question
Date: Mon, 17 May 2010 10:14:07 +0200	[thread overview]
Message-ID: <20100517101407.193b93f2@hyperion.delvare> (raw)
In-Reply-To: <20100517074621.GA14520@ucw.cz>

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

  reply	other threads:[~2010-05-17  8:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-29  5:21 Simple fan question Benjamin Herrenschmidt
2010-04-29  8:57 ` [lm-sensors] " Jean Delvare
2010-04-29 22:56   ` Benjamin Herrenschmidt
2010-05-06 16:40     ` Jean Delvare
2010-05-17  7:46     ` Pavel Machek
2010-05-17  8:14       ` Jean Delvare [this message]
2010-05-17  8:30         ` Benjamin Herrenschmidt
     [not found]     ` <AANLkTilRvyWK-SEp2pgVAosaJ8GQUbbXsP4BkZBxGphU@mail.gmail.com>
2010-05-20 11:57       ` Jean Delvare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100517101407.193b93f2@hyperion.delvare \
    --to=khali@linux-fr.org \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox