Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1741542

[PATCH v3 19/22] hwmon: (core) Add hwmon_max to hwmon_sensor_types enumeration

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.datemas.de!news.albasani.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Sudeep Holla <sudeep.holla@arm.com>
Newsgroups linux.kernel
Subject [PATCH v3 19/22] hwmon: (core) Add hwmon_max to hwmon_sensor_types enumeration
Date Thu, 28 Sep 2017 15:20:03 +0200
Message-ID <uuGTp-10S-41@gated-at.bofh.it> (permalink)
References <uuGTn-10S-3@gated-at.bofh.it>
X-Mailer git-send-email 2.7.4
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 27
Organization linux.* mail to news gateway
X-Original-Cc Sudeep Holla <sudeep.holla@arm.com>, Roy Franz <roy.franz@cavium.com>, Harb Abdulhamid <harba@codeaurora.org>, Nishanth Menon <nm@ti.com>, Arnd Bergmann <arnd@arndb.de>, Loc Ho <lho@apm.com>, Alexey Klimov <alexey.klimov@arm.com>, Ryan Harkin <Ryan.Harkin@arm.com>, Jassi Brar <jassisinghbrar@gmail.com>, Guenter Roeck <linux@roeck-us.net>, linux-hwmon@vger.kernel.org
X-Original-Date Thu, 28 Sep 2017 14:11:43 +0100
X-Original-Message-ID <1506604306-20739-20-git-send-email-sudeep.holla@arm.com>
X-Original-References <1506604306-20739-1-git-send-email-sudeep.holla@arm.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1741542

Show key headers only | View raw


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: Guenter Roeck <linux@roeck-us.net>
Cc: linux-hwmon@vger.kernel.org
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
---
 include/linux/hwmon.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h
index ceb751987c40..e5fd2707b6df 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 {
-- 
2.7.4

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 19/22] hwmon: (core) Add hwmon_max to hwmon_sensor_types enumeration Sudeep Holla <sudeep.holla@arm.com> - 2017-09-28 15:20 +0200
  Re: [v3, 19/22] hwmon: (core) Add hwmon_max to hwmon_sensor_types  enumeration Guenter Roeck <linux@roeck-us.net> - 2017-10-01 16:30 +0200

csiph-web