From patchwork Tue Jan 2 14:42:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 123139 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp9043105qgn; Tue, 2 Jan 2018 06:44:53 -0800 (PST) X-Google-Smtp-Source: ACJfBotTRIArd1VUvwiqTKms+8W/gw+0cRpguklcJYHiFPK4gw3zFIOHzPOd0vROVfimg4Uz/Gzj X-Received: by 10.98.247.16 with SMTP id h16mr45308864pfi.242.1514904292871; Tue, 02 Jan 2018 06:44:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514904292; cv=none; d=google.com; s=arc-20160816; b=uej3NKcbh+e/s4d8w6VF4+Eq9MB6x8dqxAV/7i/44cVqDhcuh3gWBLzHhMemVNKKdc Xb3zgxTLo6ksFNrT364CF/bbvvB5jIaC8iUlW8Yx5ejoj5tBSlJbiWbcSVRHv4l+9GDA 46p66EPVD6p4TuAyhqMCT6iyYg1eN5pJfLtXHUYgN40x6rDHMXS6CsMVX2VOg0/4PFwt PxxkVDt2t2eoypOFF5hEzykxMCBtjisqUKubXMFU0M4LVn0+RAuJm/RDpZiFD8Fq+w7/ 2cxNHPKbQOLblNrzJzKuC+/XbaDkaSLGJ3KAYCHM8r/oYfQ1LFmxtEYgydvrM4TI4e3I vHbA== 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=v/UB30Vv+frmN+9HgY5pacP1p3YEf5qJve2u57VbrgS8ejfEgLrrxVLpOAxuqWJYm/ Sdgds9Fd7hW7GnNkc1iXfv8m22MfIfUjBtUZLt6Up9GmOdCelXjh0atcYz8BXUY6oXVt yg+PI/49VZMXfGHRFDJJ7doC6RZhAmZeS1K7M1oUwapxy0+rrdbMRxttB7q2NsgTgiqF 6asBPMsvgroOZrk+sEXgugk9NlGDvsnWzbYZi3nLw3DyTtL4nJkYQse7KZd+heZSjWG5 MKQk6i8/V5sz+auW6a2bd+o58gBQpg8guoi4lK3vZuxmOiWdfcEbBBwB7v3CmVM8K31s lMIg== 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 g9si34096487plk.170.2018.01.02.06.44.52; Tue, 02 Jan 2018 06:44:52 -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 S1753759AbeABOot (ORCPT + 28 others); Tue, 2 Jan 2018 09:44:49 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39888 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753526AbeABOnj (ORCPT ); Tue, 2 Jan 2018 09:43:39 -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 1249019F6; Tue, 2 Jan 2018 06:43:38 -0800 (PST) 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 C792D3F703; Tue, 2 Jan 2018 06:43:35 -0800 (PST) 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 , linux-hwmon@vger.kernel.org Subject: [PATCH v5 17/20] hwmon: (core) Add hwmon_max to hwmon_sensor_types enumeration Date: Tue, 2 Jan 2018 14:42:39 +0000 Message-Id: <1514904162-11201-18-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514904162-11201-1-git-send-email-sudeep.holla@arm.com> References: <1514904162-11201-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 {