Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7317288rwd; Tue, 6 Jun 2023 09:04:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7AQh53g69ZrtH5cSnT/MkFR1YOse69bGQP1H+NjkK3ZgzYqzGVUxCyA2ry1cIXqC/BgkGv X-Received: by 2002:a17:902:868c:b0:1b1:80ba:39d2 with SMTP id g12-20020a170902868c00b001b180ba39d2mr1041964plo.58.1686067460294; Tue, 06 Jun 2023 09:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686067460; cv=none; d=google.com; s=arc-20160816; b=JOExHkJvI/bt2EB60ssYTQz1EMZVfw2OXIYYnnFV45L91hUY7UJKCH7ipiLsnPXXTv Xgv66ZkFCu799j60AtXe4ud5pgFmkor4Eo7i9N8aDbcaTtptBdUO3dr3xQzpLX+6fe5a Gj+bYC+uPnI1ZImPelmRsncht3vtMSEPWvbsTYJypTyZIcBULMqOVa7WY2GbLzV/OOS4 N4TKTasJvwmruJmPjTHama3vsFea9KMWzLc9Da5M09xQ149t+puqkTwk9Ltk+SeouucC LqiR67cqc3gvvMwBdHuIvP0tVF9XuMMQ5BMs80/oMbYim6wtXWtPs2hTpIV9AE5B2o7c 7Wsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=zjmkqNjWvkkkWu9fwkZt4kzyy0KOeA6vdXpXW6eeYsI=; b=PDL88Dj5nV1IL5NJvwtJNvWKy0c/T6hnuroZzZh05Rpj36r6IoSeelJ4JShpf4Sek3 M7Y2t3wuMT0DeKD9SxV/Rwvudv+Gsmke6/7rIe3C+gRSsZ8GrqSHSU8ZGJbYdclajvo3 n7hI86qO3my+pPNqyC5WdLTciX48DO2CuYRfF1kK5SVul1v2hikBMI9x+n0fd96wPPfY 2supp2es4X36gIxl05JFq90JRVlBahhfT/NCZLawRDQDnsMcpgdNVaN0Hqu3cqrAjQxx aITqC0mdlKYyWA0o6dD9VPI/sU/h5p6VlqSHOkLbdy/DLXhbgkeBrP78uuJHLZL7XvLd nhOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UUJyfgVR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a170902eb4a00b001a95929ca08si7374399pli.533.2023.06.06.09.04.07; Tue, 06 Jun 2023 09:04:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UUJyfgVR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232123AbjFFPpk (ORCPT + 99 others); Tue, 6 Jun 2023 11:45:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbjFFPpi (ORCPT ); Tue, 6 Jun 2023 11:45:38 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29A9F93 for ; Tue, 6 Jun 2023 08:45:35 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3f6d3f83d0cso63929395e9.2 for ; Tue, 06 Jun 2023 08:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686066333; x=1688658333; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=zjmkqNjWvkkkWu9fwkZt4kzyy0KOeA6vdXpXW6eeYsI=; b=UUJyfgVRY/lZMeWDMl1M8Kw+CPT/3pJ85LtIJZqB2ml7hu8TSwdZmHL+U8N2ErAHud 93Q2buj8fJUmOBBVhc47aqRcx5XkoWS7q+HPpbl3Z+kAT3B4qI5DzLfhL7Irf1SS6b2A djyCGo6bDC7PS+gs7GxJ2HpnC5Q3Yy/FCdLLMbH8Xlc+cwxQHolGxXFb9VhSFHi3HPg6 qfYSwyQUDc2NC8PTbkTxlTwpCcvk4ZEmMO0lBQEcKjx4BJ414v/XjX14K01I7L0VRyd+ oFEhS8rtG17N/YFCZrhJg017M2Q44lkGC6cgs1R7pz8+U/072pQsIR4P+BmMoj36sOIr pjig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686066333; x=1688658333; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zjmkqNjWvkkkWu9fwkZt4kzyy0KOeA6vdXpXW6eeYsI=; b=jNvU04TZ0KmOKxBlAFKJBrCWtsYvaOFTwIyudnaNoDegpMWX2X2VCfVomtuAFhg+NS bFIamfjzxwXTKHnXTzohWNNL74wulDqWgXyjo+1vw2H+fF1P1ZAsG1HIJRVOVHvCUgQP 8DuJABjsYhKOR7s3skvmkB1grTwhO16fcfmxZzArjRGyugAIo5T0Zst2Z6CCg6HkJVIt 0PZvrnielBDsiHkAdN4FOaUqOWqT1AqOX7SciUfsFtTvP6LLeSsal/p8o5Msxs4cBEwL 0YdaxFCnt9Er/c/jft9ljFfx2gDTKyIOntqncfz+cgScfx78xtvZQI8YuYaL/vF8HSfC Z9JQ== X-Gm-Message-State: AC+VfDw29RFrW3fwAkznn/i7yr71J1vG/4uiWqsuxF51vPcoAdO2/bZo 8vMgz7XKPWifUnMtgX3zL6LGTw== X-Received: by 2002:a05:600c:202:b0:3f6:1474:905 with SMTP id 2-20020a05600c020200b003f614740905mr2945175wmi.29.1686066333405; Tue, 06 Jun 2023 08:45:33 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:d8fb:84d9:d402:6b22? ([2a05:6e02:1041:c10:d8fb:84d9:d402:6b22]) by smtp.googlemail.com with ESMTPSA id j11-20020a5d564b000000b00307c8d6b4a0sm13009936wrw.26.2023.06.06.08.45.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jun 2023 08:45:32 -0700 (PDT) Message-ID: Date: Tue, 6 Jun 2023 17:45:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v2 1/7] ACPI: thermal: Use BIT() macro for defining flags Content-Language: en-US To: "Rafael J. Wysocki" , Linux ACPI Cc: LKML , Zhang Rui , Michal Wilczynski , Srinivas Pandruvada References: <2703629.mvXUDI8C0e@kreacher> <5959573.lOV4Wx5bFT@kreacher> From: Daniel Lezcano In-Reply-To: <5959573.lOV4Wx5bFT@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/06/2023 14:07, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Use the BIT() macro for defining flag symbols in the ACPI thermal driver > instead of using "raw" values for the flags. > > No functional impact. > > Signed-off-by: Rafael J. Wysocki > Reviewed-by: Michal Wilczynski Reviewed-by: Daniel Lezcano > --- > > v1 -> v2: Added R-by from Michal. > > --- > drivers/acpi/thermal.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > Index: linux-pm/drivers/acpi/thermal.c > =================================================================== > --- linux-pm.orig/drivers/acpi/thermal.c > +++ linux-pm/drivers/acpi/thermal.c > @@ -232,11 +232,11 @@ static int acpi_thermal_set_cooling_mode > return 0; > } > > -#define ACPI_TRIPS_CRITICAL 0x01 > -#define ACPI_TRIPS_HOT 0x02 > -#define ACPI_TRIPS_PASSIVE 0x04 > -#define ACPI_TRIPS_ACTIVE 0x08 > -#define ACPI_TRIPS_DEVICES 0x10 > +#define ACPI_TRIPS_CRITICAL BIT(0) > +#define ACPI_TRIPS_HOT BIT(1) > +#define ACPI_TRIPS_PASSIVE BIT(2) > +#define ACPI_TRIPS_ACTIVE BIT(3) > +#define ACPI_TRIPS_DEVICES BIT(4) > > #define ACPI_TRIPS_REFRESH_THRESHOLDS (ACPI_TRIPS_PASSIVE | ACPI_TRIPS_ACTIVE) > #define ACPI_TRIPS_REFRESH_DEVICES ACPI_TRIPS_DEVICES > > > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog