From patchwork Fri Nov 3 14:47:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 117922 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp3402014edm; Fri, 3 Nov 2017 07:49:35 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TwkcrYzq7dA3PkDRDnuo94SjlHlUvtiwwslJfPfkvku1ubIXwTK3Kqq6mMrrsEO3DhqDb3 X-Received: by 10.84.136.135 with SMTP id 7mr7110338pll.392.1509720575316; Fri, 03 Nov 2017 07:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509720575; cv=none; d=google.com; s=arc-20160816; b=BT6CDJkzz8+L3h2S5Ci8hhrStVfCZEOmC09XbgMiRRN3mt4mnyWW8aUVNdXgJMq7kl OAd56oTr6KUNIkQlwjSQXfv4915mDOkMHI6TvmqDi543iBnCYY2Wu2COEpbbrerOXFtz wNnADO32TLWJBM3oOZUhnVZJafEGEunvzvVmFEzCfZX0XktJzDBzQqk4+xhFQApcJqdi FuvnPWTJQeDBW/mJQdqC70pwW3GGAbaijR5FUMYu+imlj620ZFamqSPaWu4fjwd35VWc tSK6qJxfM+ZXsL/Mo0Mj//z7AbOvZXXitgAMtorHzSWuTeDLozl7QtPffqUH6UwXz0b9 d+dA== 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=BDecsbYnOjJ7ZtdYI6bq87bJLKnhCJexy7kbJ62qSjHBWboKSkEYSe4g7x4FUL9zCm LXrOgC9iY02wXEtPgIUCnjgJytAMqVXBGb5x1RTWdNkELGRMNqYjYbXW581bx+KzDwA2 J1UkU75HK4kx+maRpdZdII797URHnMhor4ECcSx3mPvla+DxWavd6zZw3Z8cdmKTPf7E XgmE19Xhhk8pzj/H0gLvk4uzsGljvH1K/9vVpHCRuRMfIqWj8G4+GTdDtY/eozrnXdkC Gq5zq3KZS9FHHvT8ok8TZqEBnGI7W6UlMwdlPAPuEJbjO7ZsNSfb+fsrcAflnUOFM5yi ARCg== 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 3si4811637plx.791.2017.11.03.07.49.35; Fri, 03 Nov 2017 07:49:35 -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 S933737AbdKCOtc (ORCPT + 26 others); Fri, 3 Nov 2017 10:49:32 -0400 Received: from foss.arm.com ([217.140.101.70]:44504 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933646AbdKCOt2 (ORCPT ); Fri, 3 Nov 2017 10:49:28 -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 9553D1682; Fri, 3 Nov 2017 07:49:28 -0700 (PDT) Received: from e107155-lin.cambridge.arm.com (e107155-lin.cambridge.arm.com [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 79C283F3DF; Fri, 3 Nov 2017 07:49:26 -0700 (PDT) From: Sudeep Holla To: ALKML , LKML , DTML Cc: Sudeep Holla , Roy Franz , Harb Abdulhamid , Nishanth Menon , Arnd Bergmann , Loc Ho , Ryan Harkin , Jassi Brar , linux-hwmon@vger.kernel.org Subject: [PATCH v4 17/20] hwmon: (core) Add hwmon_max to hwmon_sensor_types enumeration Date: Fri, 3 Nov 2017 14:47:54 +0000 Message-Id: <1509720477-18936-18-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509720477-18936-1-git-send-email-sudeep.holla@arm.com> References: <1509720477-18936-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 {