All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH 09/15] hwmon: Add new attributes to sysfs ABI
@ 2011-07-12 15:41 Guenter Roeck
  2011-07-14  1:54 ` Guenter Roeck
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Guenter Roeck @ 2011-07-12 15:41 UTC (permalink / raw)
  To: lm-sensors

Add the following attributes to the sysfs ABI.

in[0-*]_average
in[0-*]_lowest
in[0-*]_highest
in[0-*]_reset_history
in_reset_history

curr[1-*]_average
curr[1-*]_lowest
curr[1-*]_highest
curr[1-*]_reset_history
curr_reset_history

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
---
 Documentation/hwmon/sysfs-interface |   46 +++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface
index 8f63c24..a4aa8f6 100644
--- a/Documentation/hwmon/sysfs-interface
+++ b/Documentation/hwmon/sysfs-interface
@@ -139,6 +139,29 @@ in[0-*]_input	Voltage input value.
 		thumb: drivers should report the voltage values at the
 		"pins" of the chip.
 
+in[0-*]_average
+		Average voltage
+		Unit: millivolt
+		RO
+
+in[0-*]_lowest
+		Historical minimum voltage
+		Unit: millivolt
+		RO
+
+in[0-*]_highest
+		Historical maximum voltage
+		Unit: millivolt
+		RO
+
+in[0-*]_reset_history
+		Reset inX_lowest and inX_highest
+		WO
+
+in_reset_history
+		Reset inX_lowest and inX_highest for all sensors
+		WO
+
 in[0-*]_label	Suggested voltage channel label.
 		Text string
 		Should only be created if the driver has hints about what
@@ -407,6 +430,29 @@ curr[1-*]_input	Current input value
 		Unit: milliampere
 		RO
 
+curr[1-*]_average
+		Average current use
+		Unit: milliampere
+		RO
+
+curr[1-*]_lowest
+		Historical minimum current
+		Unit: milliampere
+		RO
+
+curr[1-*]_highest
+		Historical maximum current
+		Unit: milliampere
+		RO
+
+curr[1-*]_reset_history
+		Reset currX_lowest and currX_highest
+		WO
+
+curr_reset_history
+		Reset currX_lowest and currX_highest for all sensors
+		WO
+
 Also see the Alarms section for status flags associated with currents.
 
 *********
-- 
1.7.3.1


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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [lm-sensors] [PATCH 09/15] hwmon: Add new attributes to sysfs ABI
  2011-07-12 15:41 [lm-sensors] [PATCH 09/15] hwmon: Add new attributes to sysfs ABI Guenter Roeck
@ 2011-07-14  1:54 ` Guenter Roeck
  2011-07-28  6:35 ` [lm-sensors] [PATCH 09/15] hwmon: Add new attributes to sysfs Guenter Roeck
  2011-08-16 14:29 ` Jean Delvare
  2 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2011-07-14  1:54 UTC (permalink / raw)
  To: lm-sensors

Add the following attributes to the sysfs ABI.

in[0-*]_average
in[0-*]_lowest
in[0-*]_highest
in[0-*]_reset_history
in_reset_history

curr[1-*]_average
curr[1-*]_lowest
curr[1-*]_highest
curr[1-*]_reset_history
curr_reset_history

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
---
 Documentation/hwmon/sysfs-interface |   46 +++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface
index 8f63c24..a4aa8f6 100644
--- a/Documentation/hwmon/sysfs-interface
+++ b/Documentation/hwmon/sysfs-interface
@@ -139,6 +139,29 @@ in[0-*]_input	Voltage input value.
 		thumb: drivers should report the voltage values at the
 		"pins" of the chip.
 
+in[0-*]_average
+		Average voltage
+		Unit: millivolt
+		RO
+
+in[0-*]_lowest
+		Historical minimum voltage
+		Unit: millivolt
+		RO
+
+in[0-*]_highest
+		Historical maximum voltage
+		Unit: millivolt
+		RO
+
+in[0-*]_reset_history
+		Reset inX_lowest and inX_highest
+		WO
+
+in_reset_history
+		Reset inX_lowest and inX_highest for all sensors
+		WO
+
 in[0-*]_label	Suggested voltage channel label.
 		Text string
 		Should only be created if the driver has hints about what
@@ -407,6 +430,29 @@ curr[1-*]_input	Current input value
 		Unit: milliampere
 		RO
 
+curr[1-*]_average
+		Average current use
+		Unit: milliampere
+		RO
+
+curr[1-*]_lowest
+		Historical minimum current
+		Unit: milliampere
+		RO
+
+curr[1-*]_highest
+		Historical maximum current
+		Unit: milliampere
+		RO
+
+curr[1-*]_reset_history
+		Reset currX_lowest and currX_highest
+		WO
+
+curr_reset_history
+		Reset currX_lowest and currX_highest for all sensors
+		WO
+
 Also see the Alarms section for status flags associated with currents.
 
 *********
-- 
1.7.3.1


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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] [PATCH 09/15] hwmon: Add new attributes to sysfs
  2011-07-12 15:41 [lm-sensors] [PATCH 09/15] hwmon: Add new attributes to sysfs ABI Guenter Roeck
  2011-07-14  1:54 ` Guenter Roeck
@ 2011-07-28  6:35 ` Guenter Roeck
  2011-08-16 14:29 ` Jean Delvare
  2 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2011-07-28  6:35 UTC (permalink / raw)
  To: lm-sensors

On Wed, Jul 13, 2011 at 06:54:38PM -0700, Guenter Roeck wrote:
> Add the following attributes to the sysfs ABI.
> 
> in[0-*]_average
> in[0-*]_lowest
> in[0-*]_highest
> in[0-*]_reset_history
> in_reset_history
> 
> curr[1-*]_average
> curr[1-*]_lowest
> curr[1-*]_highest
> curr[1-*]_reset_history
> curr_reset_history
> 
> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>

Jean,

any comments on this patch ?

Thanks,
Guenter

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] [PATCH 09/15] hwmon: Add new attributes to sysfs
  2011-07-12 15:41 [lm-sensors] [PATCH 09/15] hwmon: Add new attributes to sysfs ABI Guenter Roeck
  2011-07-14  1:54 ` Guenter Roeck
  2011-07-28  6:35 ` [lm-sensors] [PATCH 09/15] hwmon: Add new attributes to sysfs Guenter Roeck
@ 2011-08-16 14:29 ` Jean Delvare
  2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2011-08-16 14:29 UTC (permalink / raw)
  To: lm-sensors

Hi Guenter,

On Wed, 27 Jul 2011 23:35:38 -0700, Guenter Roeck wrote:
> On Wed, Jul 13, 2011 at 06:54:38PM -0700, Guenter Roeck wrote:
> > Add the following attributes to the sysfs ABI.
> > 
> > in[0-*]_average
> > in[0-*]_lowest
> > in[0-*]_highest
> > in[0-*]_reset_history
> > in_reset_history
> > 
> > curr[1-*]_average
> > curr[1-*]_lowest
> > curr[1-*]_highest
> > curr[1-*]_reset_history
> > curr_reset_history
> > 
> > Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
> 
> Jean,
> 
> any comments on this patch ?

I am just back from vacation. I'm adding this task to my to-do list,
but beware I need to go through all the incoming mail (~700 non-spam)
first.

-- 
Jean Delvare

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-16 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-12 15:41 [lm-sensors] [PATCH 09/15] hwmon: Add new attributes to sysfs ABI Guenter Roeck
2011-07-14  1:54 ` Guenter Roeck
2011-07-28  6:35 ` [lm-sensors] [PATCH 09/15] hwmon: Add new attributes to sysfs Guenter Roeck
2011-08-16 14:29 ` Jean Delvare

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.