Skip to contentSkip to conversation

hwmon: Add humidity attribute to sysfs ABI

PATCH Superseded Guenter Roeck 3 participants 7 messages Jan 6, 2011

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: Add humidity attribute to sysfs ABI

The humidity attribute is already supported by the sht15 driver, and another driver supporting it is about to be added. Make it official.

---
 Documentation/hwmon/sysfs-interface |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Documentation/hwmon/sysfs-interface +9 -0
index 5997b5e..033fe76 100644
@@ -505,6 +505,15 @@ energy[1-*]_input		Cumulative energy use
 				RO
 
 
+************
+* Humidity *
+************
+
+humidity[1-*]_input		Humidity
+				Unit: percent
+				RO
+
+
 **********
 * Alarms *
 **********
Signature · 7 lines
1.7.3.1


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Guenter Roeck

The humidity attribute is already supported by the sht15 driver, and another driver supporting it is about to be added. Make it official.

Quoted 14 lines
---
 Documentation/hwmon/sysfs-interface |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Documentation/hwmon/sysfs-interface +2 -0
index 5997b5e..033fe76 100644
@@ -505,6 +505,15 @@ energy[1-*]_input		Cumulative energy use
 				RO
 
 
+************
+* Humidity *

Documentation/hwmon/sysfs-interface energy[1-*]_input Cumulative energy use · line 519

Quoted 10 lines
Documentation/hwmon/sysfs-interface +7 -0
+************
+
+humidity[1-*]_input		Humidity
+				Unit: percent
+				RO
+
+
 **********
 * Alarms *
 **********

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Guenter Roeck
Quoted 13 lines · Guenter Roeck

The humidity attribute is already supported by the sht15 driver, and another driver supporting it is about to be added. Make it official.

---
 Documentation/hwmon/sysfs-interface |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Documentation/hwmon/sysfs-interface +0 -0
index 5997b5e..033fe76 100644

Documentation/hwmon/sysfs-interface energy[1-*]_input Cumulative energy use · line 513

Quoted 9 lines
Documentation/hwmon/sysfs-interface +6 -0
@@ -505,6 +505,15 @@ energy[1-*]_input		Cumulative energy use
 				RO
 
 
+************
+* Humidity *
+************
+
+humidity[1-*]_input		Humidity
+				Unit: percent

Are you sure? The sht15 driver source code suggests millipercent. Jonathan?

Quoted 6 lines
Documentation/hwmon/sysfs-interface +3 -0
+				RO
+
+
 **********
 * Alarms *
 **********
Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#3 lore raw
In reply to Guenter Roeck
Quoted 17 lines · Jean Delvare
Quoted 16 lines · Guenter Roeck

The humidity attribute is already supported by the sht15 driver, and another driver supporting it is about to be added. Make it official.

---
 Documentation/hwmon/sysfs-interface |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Documentation/hwmon/sysfs-interface +0 -0
index 5997b5e..033fe76 100644
@@ -505,6 +505,15 @@ energy[1-*]_input		Cumulative energy use
 				RO
 
 
Quoted 10 lines

Documentation/hwmon/sysfs-interface energy[1-*]_input Cumulative energy use · line 513

Quoted 6 lines
Documentation/hwmon/sysfs-interface +6 -0
+************
+* Humidity *
+************
+
+humidity[1-*]_input		Humidity
+				Unit: percent

Are you sure? The sht15 driver source code suggests millipercent. Jonathan?

Yes, you are right. Just noticed that as well.

What would be the best term to use ? millipercent ? milli-percent ? per cent mille ? The latter is the official term. How about
Unit: per cent mille (pcm, milli-percent)

Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#4 lore raw
In reply to Guenter Roeck
Quoted 28 lines · Guenter Roeck
Quoted 17 lines · Jean Delvare
Quoted 16 lines · Guenter Roeck

The humidity attribute is already supported by the sht15 driver, and another driver supporting it is about to be added. Make it official.

---
 Documentation/hwmon/sysfs-interface |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Documentation/hwmon/sysfs-interface +0 -0
index 5997b5e..033fe76 100644
@@ -505,6 +505,15 @@ energy[1-*]_input		Cumulative energy use
 				RO
 
 
Quoted 10 lines

Documentation/hwmon/sysfs-interface energy[1-*]_input Cumulative energy use · line 513

Quoted 6 lines
Documentation/hwmon/sysfs-interface +6 -0
+************
+* Humidity *
+************
+
+humidity[1-*]_input		Humidity
+				Unit: percent

Are you sure? The sht15 driver source code suggests millipercent. Jonathan?

Quoted 5 lines

Yes, you are right. Just noticed that as well.

What would be the best term to use ? millipercent ? milli-percent ? per cent mille ? The latter is the official term. How about
Unit: per cent mille (pcm, milli-percent)

I'm fine either way.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#5 lore raw
In reply to Guenter Roeck
Quoted 18 lines · Guenter Roeck
Quoted 17 lines · Jean Delvare
Quoted 16 lines · Guenter Roeck

The humidity attribute is already supported by the sht15 driver, and another driver supporting it is about to be added. Make it official.

---
 Documentation/hwmon/sysfs-interface |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Documentation/hwmon/sysfs-interface +0 -0
index 5997b5e..033fe76 100644
@@ -505,6 +505,15 @@ energy[1-*]_input		Cumulative energy use
 				RO
 
 
Quoted 9 lines
Quoted 9 lines

Documentation/hwmon/sysfs-interface energy[1-*]_input Cumulative energy use · line 513

Quoted 6 lines
Documentation/hwmon/sysfs-interface +6 -0
+************
+* Humidity *
+************
+
+humidity[1-*]_input		Humidity
+				Unit: percent

Are you sure? The sht15 driver source code suggests millipercent. Jonathan?

Oops, not one of my better bits of reviewing...

Quoted 6 lines
Quoted 1 line

Yes, you are right. Just noticed that as well.

What would be the best term to use ? millipercent ? milli-percent ? per cent mille ? The latter is the official term. How about
Unit: per cent mille (pcm, milli-percent)

could multiply values by 10 then use Permyriad :)
Otherwise maybe just write it out clearly as 'thousandth of a percent'?

Quoted 2 lines

Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#6 lore raw
In reply to Guenter Roeck
Quoted 30 lines · Jonathan Cameron
Quoted 18 lines · Guenter Roeck
Quoted 17 lines · Jean Delvare
Quoted 16 lines · Guenter Roeck

The humidity attribute is already supported by the sht15 driver, and another driver supporting it is about to be added. Make it official.

---
 Documentation/hwmon/sysfs-interface |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Documentation/hwmon/sysfs-interface +0 -0
index 5997b5e..033fe76 100644
@@ -505,6 +505,15 @@ energy[1-*]_input		Cumulative energy use
 				RO
 
 
Quoted 9 lines
Quoted 9 lines

Documentation/hwmon/sysfs-interface energy[1-*]_input Cumulative energy use · line 513

Quoted 6 lines
Documentation/hwmon/sysfs-interface +6 -0
+************
+* Humidity *
+************
+
+humidity[1-*]_input		Humidity
+				Unit: percent

Are you sure? The sht15 driver source code suggests millipercent. Jonathan?

Oops, not one of my better bits of reviewing...

Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 5 lines

Yes, you are right. Just noticed that as well.

What would be the best term to use ? millipercent ? milli-percent ? per cent mille ? The latter is the official term. How about
Unit: per cent mille (pcm, milli-percent)

could multiply values by 10 then use Permyriad :)
Otherwise maybe just write it out clearly as 'thousandth of a percent'?

Thought about that, but "a percent" sounds odd (what is "a percent" ?), and "thousandth of percent" may be confused with "thousands of percent". I think I'll go with "milli-percent (per cent mille, pcm)".

Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors