From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Jean Delvare <khali@linux-fr.org>
Cc: Randy Dunlap <rdunlap@xenotime.net>,
"lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] hwmon: (adm1031) Replace update_rate sysfs attribute with update_interval
Date: Thu, 16 Sep 2010 12:43:15 -0700 [thread overview]
Message-ID: <1284666195.15696.35.camel@groeck-laptop> (raw)
In-Reply-To: <20100916184237.3be9250d@hyperion.delvare>
On Thu, 2010-09-16 at 12:42 -0400, Jean Delvare wrote:
> On Thu, 16 Sep 2010 08:37:15 -0700, Guenter Roeck wrote:
> > On Thu, Sep 16, 2010 at 11:14:43AM -0400, Jean Delvare wrote:
> > > On Wed, 15 Sep 2010 19:07:14 -0700, Guenter Roeck wrote:
> > > > The attribute reflects an interval, not a rate.
> > > >
> > > > Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
> > > > ---
> > > > Documentation/hwmon/sysfs-interface | 12 +++++-----
> > > > drivers/hwmon/adm1031.c | 43 +++++++++++++++++++---------------
> > > > 2 files changed, 30 insertions(+), 25 deletions(-)
> > > >
> > > > diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface
> > > > index ff45d1f..df0cdd2 100644
> > > > --- a/Documentation/hwmon/sysfs-interface
> > > > +++ b/Documentation/hwmon/sysfs-interface
> > > > @@ -91,13 +91,13 @@ name The chip name.
> > > > I2C devices get this attribute created automatically.
> > > > RO
> > > >
> > > > -update_rate The rate at which the chip will update readings.
> > > > - Unit: millisecond
> > > > +update_interval The interval at which the chip or driver will update readings.
> > >
> > > I think I prefer the original wording. The attribute is really about
> > > setting the register refresh rate at the hardware level. The fact that
> > > register cache lifetime in the driver can be adjusted accordingly is an
> > > optional implementation detail IMHO.
> > >
> > Ok, no problem.
> >
> > > > + Unit: milliseconds
> > >
> > > Why change? All other units are singular in the file.
> > >
> > Correct for anything but "milliseconds".
> >
> > I changed it to milliseconds because all other attributes specify
> > "milliseconds". No other reason. Am I missing something ?
>
> I'd rather change all these to "millisecond", so that the document
> consistently uses singular for all units.
>
> I also see that the indentation isn't consistent, with power and energy
> having 4 tabs where the rest has only 2. Bah.
>
To get beyond this ... how about you apply my rev2, and I make the other
changes (formatting and milliseconds --> millisecond) in a subsequent
patch ?
Guenter
next prev parent reply other threads:[~2010-09-16 19:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-16 2:07 [PATCH 0/2] hwmon: " Guenter Roeck
2010-09-16 2:07 ` [PATCH 1/2] hwmon: (adm1031) " Guenter Roeck
2010-09-16 15:14 ` Jean Delvare
2010-09-16 15:37 ` Guenter Roeck
2010-09-16 16:42 ` Jean Delvare
2010-09-16 19:43 ` Guenter Roeck [this message]
2010-09-16 21:02 ` Jean Delvare
2010-09-16 21:39 ` Guenter Roeck
2010-09-16 15:42 ` [lm-sensors] " Henrique de Moraes Holschuh
2010-09-16 16:01 ` Jean Delvare
2010-09-16 16:54 ` Henrique de Moraes Holschuh
2010-09-16 15:14 ` Ira W. Snyder
2010-09-16 2:07 ` [PATCH 2/2] hwmon: (lm95241) Replace rate " Guenter Roeck
2010-09-16 15:19 ` 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=1284666195.15696.35.camel@groeck-laptop \
--to=guenter.roeck@ericsson.com \
--cc=khali@linux-fr.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=rdunlap@xenotime.net \
/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
all inboxes | Powered by JetHome®