diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2017-09-27 16:20:50 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2018-02-28 16:37:57 +0000 |
commit | d57538004b2e57be6a5d8583b65d1b049245abf7 (patch) | |
tree | 1ef931d3146d4604962ee091fe45acf2ad8bad88 /include/linux/hwmon.h | |
parent | 6d6a1d82eaef705f150c441350559bf5daccb533 (diff) | |
download | op-kernel-dev-d57538004b2e57be6a5d8583b65d1b049245abf7.zip op-kernel-dev-d57538004b2e57be6a5d8583b65d1b049245abf7.tar.gz |
hwmon: (core) Add hwmon_max to hwmon_sensor_types enumeration
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>
Diffstat (limited to 'include/linux/hwmon.h')
-rw-r--r-- | include/linux/hwmon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h index ceb7519..e5fd270 100644 --- 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 { |