From: Sudeep Holla Date: Wed, 27 Sep 2017 15:20:50 +0000 (+0100) Subject: hwmon: (core) Add hwmon_max to hwmon_sensor_types enumeration X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d57538004b2e57be6a5d8583b65d1b049245abf7;p=linux.git 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 Signed-off-by: Sudeep Holla --- diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h index ceb751987c401..e5fd2707b6df7 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 {