From patchwork Thu Mar 16 23:28:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Huewe X-Patchwork-Id: 9629443 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AB28460249 for ; Thu, 16 Mar 2017 23:27:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C01F28654 for ; Thu, 16 Mar 2017 23:27:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8FF5A2867F; Thu, 16 Mar 2017 23:27:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04EC728654 for ; Thu, 16 Mar 2017 23:27:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754327AbdCPX1k (ORCPT ); Thu, 16 Mar 2017 19:27:40 -0400 Received: from mout.gmx.net ([212.227.17.22]:64772 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752075AbdCPX1j (ORCPT ); Thu, 16 Mar 2017 19:27:39 -0400 Received: from lamerx.fritz.box ([79.249.187.171]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MJFBe-1cltdd1ip8-002mD1; Fri, 17 Mar 2017 00:26:47 +0100 From: Peter Huewe To: Guenter Roeck Cc: Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Huewe Subject: [PATCH] hwmon: Add missing HWMON_T_ALARM Date: Fri, 17 Mar 2017 00:28:56 +0100 Message-Id: <1489706936-26535-1-git-send-email-peterhuewe@gmx.de> X-Mailer: git-send-email 2.7.3 X-Provags-ID: V03:K0:/d1AQJL0D2HCmVxU/wDHuUzE7NyjSn2CQ5ISS/e8wZJDJSmLqbA wSN7N64w6gFn0h6vs2rzTfKz3rnnJiuKktdu7I/5C6Iy6VEOkTGA2Ya4tbsAsmDPr7ASlmP jrKQ/phKiIZKvKvJ4LScTysfqiQNnBGEH6KeS9eEOk5ttc0whzv5RMi3E9d92Oq5XZCNOQ0 bn07DYrvrUOxbg07zMzNQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:WDTDmHY7zsc=:PDOlj2ALSiUcXNEMXl0nwG p2BtwyV/4vmsUf7DYKv5W+xcPacFG+IvAzTq0JcEH1RZ+Rc+sdvj9PAjMsC8SMPP3nl2A//ce Spc7E07fuCOOCMIXdnESu556he3imlFo5cJFTCNxMMRVb4nyCu8vutyApcWEOlDmalPrIoEy4 F0gOGk2ndMjDQDy0eDwmS8d84FjJE8n/JwmLW4ywpXlIY2cp4Zkj5QHCZFjbI0YyWz7ncJJgS 9/cih2Xvpa5vyHastfjHcVv/nHGAutAJtkA+gEjKjwpEfV9jVpaX/7Xi4hoZamwtiA36T1RKK rZ3snt7tuyzuH278D5+lZCn3sIMhTv0EBMmRhKCz0HclFeafLDEAfVxIj2iBdTVjnx6iNWQde P0MptbY8Rpp2jgZ5UqJW/LMlwRIS+3NcFAZ6ElH43lfGaUVQI/O9eXJEG/NEoLzEvIHslWtkE hT9uGGzAH4SsSkRxCqRonpB+kFTNOtjkkbm7cT8UF85wScKWuxcbSsftdF1e2qHT4xaPb7e+d SXmUZa7UKGLP3LBfmvSCxMibHImYLZ1x2a0FZhpyPq5Zl5XdXNO7vKZ0r1LfO/QBwC1D5MjDn dRIlAXvyPJxAipbss8w6tWOU9N/778xkn2Dp4m4YMztvgNMc0GCTUNED9nKgDvckHOK7zDjPW M1NCuaumdHyuuajdtojKCDq77TPgCqH7Gp8gMx98gpD/+u4R5A1JTLralDctCxrFBUxPyqb7V tuENMkqjb/HV1J5LOagDSeyWYTKumOBRkSUSv554XHroJJLhWUNhWa7YgkQ= Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Unfortunately the HWMON_T_ALARM define was missing, although the associated entry was present in hwmon_temp_attributes. This is needed to convert drivers to the new interface which use channel based alarms. Signed-off-by: Peter Huewe --- include/linux/hwmon.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h index 78d59dba563e..88b673749121 100644 --- a/include/linux/hwmon.h +++ b/include/linux/hwmon.h @@ -88,6 +88,7 @@ enum hwmon_temp_attributes { #define HWMON_T_CRIT_HYST BIT(hwmon_temp_crit_hyst) #define HWMON_T_EMERGENCY BIT(hwmon_temp_emergency) #define HWMON_T_EMERGENCY_HYST BIT(hwmon_temp_emergency_hyst) +#define HWMON_T_ALARM BIT(hwmon_temp_alarm) #define HWMON_T_MIN_ALARM BIT(hwmon_temp_min_alarm) #define HWMON_T_MAX_ALARM BIT(hwmon_temp_max_alarm) #define HWMON_T_CRIT_ALARM BIT(hwmon_temp_crit_alarm)