projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d6a1d8
)
hwmon: (core) Add hwmon_max to hwmon_sensor_types enumeration
author
Sudeep Holla
<sudeep.holla@arm.com>
Wed, 27 Sep 2017 15:20:50 +0000
(16:20 +0100)
committer
Sudeep Holla
<sudeep.holla@arm.com>
Wed, 28 Feb 2018 16:37:57 +0000
(16:37 +0000)
It's useful to know the maximum types of sensor supported by hwmon
framework. It can be used to allocate some data structures when sorting
the monitors based on their type.
This will be used by scmi hwmon support.
Cc: linux-hwmon@vger.kernel.org
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
include/linux/hwmon.h
patch
|
blob
|
history
diff --git
a/include/linux/hwmon.h
b/include/linux/hwmon.h
index ceb751987c401e4015fc0c70ffb13d8d5b3eef27..e5fd2707b6df79f4b8d1d6bb4bf01e981e379f3a 100644
(file)
--- a/
include/linux/hwmon.h
+++ b/
include/linux/hwmon.h
@@
-29,6
+29,7
@@
enum hwmon_sensor_types {
hwmon_humidity,
hwmon_fan,
hwmon_pwm,
+ hwmon_max,
};
enum hwmon_chip_attributes {