Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1345586ybp; Thu, 17 Oct 2019 11:22:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuYGHGM3PDvuS+brLsRx3stLkPcUblDUi5hvcL6sXXLxxOtdV9/uQtGzb5DZVzSyencDIk X-Received: by 2002:a17:906:4a95:: with SMTP id x21mr4993622eju.18.1571336550441; Thu, 17 Oct 2019 11:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571336550; cv=none; d=google.com; s=arc-20160816; b=bN3+eqx+jrC2t+5qZDutT3Ak+h9lbG6YDcNsD5Epn1faECSMzLXmuDQTuBYuL3n3n8 v1rgFmyEa+cFo/O1zoeHGzmSaP30EezCeX3jwg+zE4ZIfiDrPsv2YKOMFL09bQC+2mf3 wnp1AMvopuV2uq5QWWbaQb5/9VcfjCW2QFi/on77htSejZO/PB9phAq6FcyjM4PDUJ/g cQSkJlHiV1spcah4t84ofUMUFzDKqg9L1wdAV/DzGbFcuwNKCZqGgMGUqn4oM9jMsPan dinIoyLd/o0dBzDl5mt39NboaHmXgeW61DrSYnbMxQiLVGqSdapeh/hQS9kq211fkuet 5qgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VAMOeiMjNeevvVJnnHk/I7t3893HU0solxCqBOJTYJ0=; b=XyhIBsrwVoOUMH512fdfz49kJcXDz723Nm8uJzcJLmmIlNmDPySojjbmPiekqeZ2eM VbdqTmbEQwFuuwoRfg70Fn4BD7zqvrqudK2DbZC/VWXtiPs5DRj26oHlRLVfLs/hpqAi 31DtuNDOSNDP9xij2IdqQR4AjJS3qBESFA332gYFT+RI/fxuejz6TeHM0K+91lH4d/Uq kioynb20vr3MAF0cAM2BEcY7sHf3meVOg2e0J/k8v6RoVlIw+U4QRn8hKfxQYdNKQ6E6 RwEltHE82ubNJEN8vnzRgXVwtTsIuXudOyyZWxNSZoaLOmio2pe38nwrLUe0lz+4+x0r TiGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1Rc86efd; 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 f35si2161285eda.415.2019.10.17.11.22.06; Thu, 17 Oct 2019 11:22:30 -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; dkim=pass header.i=@kernel.org header.s=default header.b=1Rc86efd; 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 S2438895AbfJPWAs (ORCPT + 99 others); Wed, 16 Oct 2019 18:00:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:54716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438584AbfJPV7k (ORCPT ); Wed, 16 Oct 2019 17:59:40 -0400 Received: from localhost (unknown [192.55.54.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7BB01222BD; Wed, 16 Oct 2019 21:59:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571263179; bh=yLdyqNRs0OaeMc4Wvc+EGhk7FX3SMfpxKJbHsx81qjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1Rc86efdeEHrpgU91npmsP95ZB6kgomo7aj4d5O4IG8i8p5isnLn/7bM0Q0VqOM31 4lcfY92w4TR0naCuNff+cR/g1SryWJeMOtp+aLadu0AAhVcSG2U3ZwEux2/hg2yjbw mUzchyyJpl5vkznf3zhxIKw7ea9BnzfH0pOo+L2c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Nuno=20S=C3=A1?= , Guenter Roeck Subject: [PATCH 5.3 107/112] hwmon: Fix HWMON_P_MIN_ALARM mask Date: Wed, 16 Oct 2019 14:51:39 -0700 Message-Id: <20191016214907.196006194@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191016214844.038848564@linuxfoundation.org> References: <20191016214844.038848564@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nuno Sá commit 30945d31e5761436d9eba6b8cff468a5f7c9c266 upstream. Both HWMON_P_MIN_ALARM and HWMON_P_MAX_ALARM were using BIT(hwmon_power_max_alarm). Fixes: aa7f29b07c870 ("hwmon: Add support for power min, lcrit, min_alarm and lcrit_alarm") CC: Signed-off-by: Nuno Sá Link: https://lore.kernel.org/r/20190924124945.491326-2-nuno.sa@analog.com Signed-off-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- include/linux/hwmon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/hwmon.h +++ b/include/linux/hwmon.h @@ -235,7 +235,7 @@ enum hwmon_power_attributes { #define HWMON_P_LABEL BIT(hwmon_power_label) #define HWMON_P_ALARM BIT(hwmon_power_alarm) #define HWMON_P_CAP_ALARM BIT(hwmon_power_cap_alarm) -#define HWMON_P_MIN_ALARM BIT(hwmon_power_max_alarm) +#define HWMON_P_MIN_ALARM BIT(hwmon_power_min_alarm) #define HWMON_P_MAX_ALARM BIT(hwmon_power_max_alarm) #define HWMON_P_LCRIT_ALARM BIT(hwmon_power_lcrit_alarm) #define HWMON_P_CRIT_ALARM BIT(hwmon_power_crit_alarm)