lkml.org 
[lkml]   [2010]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] hwmon: (adm1031) Replace update_rate sysfs attribute with update_interval
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.

> + Unit: milliseconds

Why change? All other units are singular in the file.

> RW
> - Some devices have a variable update rate. This attribute
> - can be used to change the update rate to the desired
> - frequency.
> -

Killing an innocent blank line ;)

> + Some devices have a variable update rate or interval.
> + Some drivers may want to make the update interval configurable
> + instead of using a hardcoded value. This attribute can be used
> + to change the update interval to the desired value.
>
> ************
> * Voltages *

I'm fine with all the rest.

--
Jean Delvare


\
 
 \ /
  Last update: 2010-09-16 17:17    [W:0.063 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site