All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] Add temperature-tracking mode to f71805f
Date: Wed, 27 Jun 2007 19:05:44 +0000	[thread overview]
Message-ID: <20070627210544.7519348d@hyperion.delvare> (raw)
In-Reply-To: <1182285507009@dmwebmail.belize.chezphil.org>

Hi Juerg,

On Tue, 26 Jun 2007 15:54:55 -0700, Juerg Haefliger wrote:
> On 6/25/07, Jean Delvare <khali@linux-fr.org> wrote:
> > > @@ -931,6 +1029,58 @@
> > >                         show_pwm_freq, set_pwm_freq, 2);
> > >  static SENSOR_DEVICE_ATTR(pwm3_mode, S_IRUGO, show_pwm_mode, NULL, 2);
> > >
> > > +static SENSOR_DEVICE_ATTR(pwm1_auto_channels_temp, S_IRUGO,
> > > +                                     show_pwm_auto_channels, NULL, 0);
> > > +static SENSOR_DEVICE_ATTR(pwm2_auto_channels_temp, S_IRUGO,
> > > +                                     show_pwm_auto_channels, NULL, 1);
> > > +static SENSOR_DEVICE_ATTR(pwm3_auto_channels_temp, S_IRUGO,
> > > +                                     show_pwm_auto_channels, NULL, 2);
> > > +static SENSOR_DEVICE_ATTR(pwm1_auto_channels_fan, S_IRUGO,
> > > +                                     show_pwm_auto_channels, NULL, 0);
> > > +static SENSOR_DEVICE_ATTR(pwm2_auto_channels_fan, S_IRUGO,
> > > +                                     show_pwm_auto_channels, NULL, 1);
> > > +static SENSOR_DEVICE_ATTR(pwm3_auto_channels_fan, S_IRUGO,
> > > +                                     show_pwm_auto_channels, NULL, 2);
> >
> > Not sure what others think about this (Mark? Juerg?) but this (pwm1 to
> > fan1 and to temp1, etc.) seems to be the usual mapping for chips where
> > the mappings can't be changed, so I wonder what's the benefit of
> > creating read-only sysfs files to express it. I think I'd be just as
> > happy with no channel files at all (and it's cheaper.) No strong
> > opinion though.
> 
> I don't find them particularly useful.

So we agree. Good. 

>                                         The static mapping should be
> documented in the chip doc.

Yes, and they already are.

Phil, please exclude the channel sysfs files from the next iteration of
your patch.

Thanks,
-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  parent reply	other threads:[~2007-06-27 19:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19 20:38 [lm-sensors] [PATCH] Add temperature-tracking mode to f71805f Phil Endecott
2007-06-24  9:54 ` Jean Delvare
2007-06-24 13:02 ` Mark M. Hoffman
2007-06-25 21:33 ` Jean Delvare
2007-06-26 20:41 ` Jean Delvare
2007-06-26 22:54 ` Juerg Haefliger
2007-06-27 19:05 ` Jean Delvare [this message]
2007-06-27 20:32 ` Phil Endecott
2007-06-29  7:17 ` 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=20070627210544.7519348d@hyperion.delvare \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.