Received: by 10.223.185.116 with SMTP id b49csp893402wrg; Fri, 23 Feb 2018 08:25:29 -0800 (PST) X-Google-Smtp-Source: AH8x227TO6nzSYfiXD3H6TuukXe2Kwxegf5DdzAATD5n7QtEm6Xen3x6ziVK+jl9nV8a6IvIWIyy X-Received: by 10.99.95.201 with SMTP id t192mr1881141pgb.313.1519403129583; Fri, 23 Feb 2018 08:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519403129; cv=none; d=google.com; s=arc-20160816; b=pdHQ9NwjJENBjybg62N6YUpzIVqWlHAaEWy6LRss7YJQowlDSdHM8lsEwHleRJ7AsI 7Im9ZAI6jxD4sCB642MfoASYUC7i5fgtV9W+5hTZFADXCIG3aAuGtFBIPot6d/bowwtZ 9M77W7kDuu52pe6WDK8RAHsvO3a/v2z/UPOrivqhqlgUTmrhG7qHCvgfZhgoXa/y51Tw FzEAIye7hDzuFYkdHMmA0P81filJoxg2Xe9ncvhwz9rPxC5yWnRqm2bxv1ML/ZGEfZTs nJ7huFQ3kOM5QKZzFWhEeljw1wpFV/CCkL8ZkOXPPlXfSp4zPf5pEj/NDD75Quy+Feoi NWnw== 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 ay4-v6si1361426plb.443.2018.02.23.08.25.14; Fri, 23 Feb 2018 08:25:29 -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 S1752031AbeBWQYj (ORCPT + 99 others); Fri, 23 Feb 2018 11:24:39 -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(+) 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