From patchwork Fri Feb 23 16:23:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 129441 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp789815lja; Fri, 23 Feb 2018 08:24:59 -0800 (PST) X-Google-Smtp-Source: AH8x225NxQwJzprT+GMJxseOoalwlA66aoUYFW+/h1n1SMlHwlGabkPGBqMX655IUdK7AUQpl3tc X-Received: by 10.98.152.86 with SMTP id q83mr2291861pfd.218.1519403099490; Fri, 23 Feb 2018 08:24:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519403099; cv=none; d=google.com; s=arc-20160816; b=lLffZVqrIsILAb4lOEP50BjyUqM18Y3gceK6bRRsBy6hw/YNb32mXIbwmDpAZ816Ae 4MhslenNxx5Tnf6Z5GYzZ5h3W+D33Pkzg2fQVukMZTJfX6XMSBqBzR6FnYDLVKcQ6+BA IfuSoegCwQas79LMKOlwHTWiUXJ/PIYJIGmOvzAwE/pfp4Z5ajYV+E7MFpM90eS2QzBB QyMHXxTNSA6MjPMNwQMYKQyfeQI2erI38Zv5zbhf3JXPdxPH1c/qwVjOxS4Z1Y/aM64o H8spqnqZfG5obvST6zLxTGw2qA4/yNmTR+RsZYJeeVgk4AnzU55Gv9Ef1HJeL4/zyy6r qKGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=/i6TuDJNgj4250w3zm8wGHYhfNkmg8vX0SxWN/pRArc=; b=uN2f7EraR9yJUsiIBgjiAn5ITrHLxJ89JFBtv+UAq0GFdwYuqqV74wuhOlW/iAyV1u sT9UsZxaNLM21OS1wLFh810ldufi+OaflypckUhVKQMnYynobRR/dR8gQANUapLdCcwL rbKsmG77El1rbgJKOK2Gh12VzkEgpE3y/XD9NxcfFnCFF4jXZ0OkC8P5tnqaG2DAbCkJ ttTpr91kYyVAZJRZmroLAUjRaSmWjYhQBN0N3/PtJzTD5OtN354WKKCf7X6v3z99ZF3a 1FX8elOsG+vxvZrVvF8M/+3rZVi5NjNRh7wEv+KLqUOj3Qyk1HEfv97NLa/wYjuS0m54 qX/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9-v6si2077464plt.242.2018.02.23.08.24.59; Fri, 23 Feb 2018 08:24:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752040AbeBWQYk (ORCPT + 28 others); Fri, 23 Feb 2018 11:24:40 -0500 Received: from foss.arm.com ([217.140.101.70]:57392 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751899AbeBWQYg (ORCPT ); Fri, 23 Feb 2018 11:24:36 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1FFB716EA; Fri, 23 Feb 2018 08:24:36 -0800 (PST) Received: from e107155-lin.cambridge.arm.com (unknown [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 91F8D3F25C; Fri, 23 Feb 2018 08:24:34 -0800 (PST) From: Sudeep Holla To: ALKML , LKML , DTML Cc: Sudeep Holla , Alexey Klimov , Arnd Bergmann , Greg Kroah-Hartman , linux-hwmon@vger.kernel.org Subject: [PATCH v6 17/20] hwmon: (core) Add hwmon_max to hwmon_sensor_types enumeration Date: Fri, 23 Feb 2018 16:23:47 +0000 Message-Id: <1519403030-21189-18-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519403030-21189-1-git-send-email-sudeep.holla@arm.com> References: <1519403030-21189-1-git-send-email-sudeep.holla@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- include/linux/hwmon.h | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 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 {