From patchwork Thu Sep 28 13:11:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 114436 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp729202qgf; Thu, 28 Sep 2017 06:15:48 -0700 (PDT) X-Google-Smtp-Source: AOwi7QC9hm8Tm6pg/Y0/f65g6IXRNAmay5MyLtdKnEzotf3fyWGLY6C1RSfMxEaTxjuCoEKY2/jp X-Received: by 10.84.216.75 with SMTP id f11mr4159063plj.236.1506604548301; Thu, 28 Sep 2017 06:15:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506604548; cv=none; d=google.com; s=arc-20160816; b=VIebvaO1qotg2Ez9ZOAUwfB5SS12KrIRPEE90Q2htF+lbp5u04qaIAk/vY6sDcHVBz bV5fdc6/SduJJbV/dSn5bpnJhvqSQFVM4NZZeFIIrZ15n+GHMPaRGkEg9LJiEH9KQJKC b4/rv8b/XvpQfIOYBVhgtrLAA2Z9G9vHWEt8qTIdLD2xmDBrZFsnq+L9pzfgeTT3L4pf xsKsWO9P8Qa231SRZopSYH4AdghLwClZH9oigbr1epSw+LNPyLEaNoBz0l5qGMkTSssQ zlkDThkc6o1ciVbEZjJlca8I3vn1paSJ5Ub0xLNYeVnh94Ybaoet8ifT4HIuNutaoSCT 3z2w== 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=XE2JM44Xtb0rEp6sPK51yp57aXtsYqkdj2uH0m6ZGt0=; b=E13uINJAfek/1nsu/+aoxrxN2VTWCLntuLLLfzmCH5qsacag9uKDW7xJA8s2canAWv DHGvP5kMLjAkptZ22dccdyiWCaxMMdFUJOcOXWqskOxteiy/k/V0AQUDqXEMM4qYPz0/ aDBc8clSqAfVuiJK6N/Xv05f6pv2R1hUqycVmBoACZ50forsaONxLiwJbx9xHxE9hxPv TrHkpcxuz9rCOoTE83qch5SjbyQAHmTd1D6KJixzHW3LmFxDmqo+TUPsQz4ZIJwuFUhc Lfh/nBiZQPahjFj9CfcHo3y5hpBWJ1HTfhGdRw1Ea0R7KyQt/OfBG6i6pXBGSeBGnCIM SM6A== 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 62si1416636plc.742.2017.09.28.06.15.48; Thu, 28 Sep 2017 06:15:48 -0700 (PDT) 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 S932135AbdI1NPq (ORCPT + 26 others); Thu, 28 Sep 2017 09:15:46 -0400 Received: from foss.arm.com ([217.140.101.70]:57262 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752079AbdI1NOu (ORCPT ); Thu, 28 Sep 2017 09:14:50 -0400 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 5706619E8; Thu, 28 Sep 2017 06:14:50 -0700 (PDT) Received: from e107155-lin.cambridge.arm.com (unknown [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E84BB3F483; Thu, 28 Sep 2017 06:14:47 -0700 (PDT) From: Sudeep Holla To: ALKML , LKML , DTML Cc: Sudeep Holla , Roy Franz , Harb Abdulhamid , Nishanth Menon , Arnd Bergmann , Loc Ho , Alexey Klimov , Ryan Harkin , Jassi Brar , Guenter Roeck , linux-hwmon@vger.kernel.org Subject: [PATCH v3 19/22] hwmon: (core) Add hwmon_max to hwmon_sensor_types enumeration Date: Thu, 28 Sep 2017 14:11:43 +0100 Message-Id: <1506604306-20739-20-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506604306-20739-1-git-send-email-sudeep.holla@arm.com> References: <1506604306-20739-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: Guenter Roeck Cc: linux-hwmon@vger.kernel.org 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 {