Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4711553rwd; Tue, 30 May 2023 08:52:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5dbz1r+XbJIqoUnQLJJWDggL78uCoQY47AbVLKkCSpZ8awo6j2nMtBbKNjqUdNIuKxbnJv X-Received: by 2002:a05:6a20:1584:b0:ef:7aa2:3cfd with SMTP id h4-20020a056a20158400b000ef7aa23cfdmr3289563pzj.50.1685461933275; Tue, 30 May 2023 08:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685461933; cv=none; d=google.com; s=arc-20160816; b=GhVWU5EZpbeVOYnBtGYh+1U8xQt8uFBxzr42egVdY5YX1CDDjXCz8nUujq6sf0jU6k smYspkxSzNt50j+utDoP+dC0Q1TmXtDF/POuOK+xJ40bCMnSr3KhQIKv952uvSbodDAO DViDYSTXrwHoWgkHm3SzwCzlgwLBlJRNMoEDlGTMcatC1szb83xmaWODFTArc8xFWMVI pf5vK0DU2q5lZOgSlo4Wa68Im/g/3xU8aJPz1tbDV7p0apXmK7///nHfbwIdA5Q7WkRe 1pBTcEYCxFXd+EGYbxrk5q9wB9FfMCOuq7bYV8I1BGtfo07b9PScXN4Zk1w5IMQL4Yd9 I5Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Spyw9pp5kFevvh1I/ttigR1+0L2Mkw/pARvlbVXrVvc=; b=QsJ6FdBrMG+eajBIaNm5kFfFDCgrubOQkoHuz9hGe7Ez+gR35/g5wJdfaxVFoPyxoP 8lPTbmJan0Erg9dl4lNS2xPGVQOucLdJUEIX2h0/mrEiXHehHSibkgpusTCMnDn03V13 uP9lqCxXd/Cov5d85pyxjE8pw7jNnckMAkpfFN0KyF3JxPdq14MSKOOtomHbZeXRQDbW Q9l6FkSCBX0EJIgxLW5lb5wlVKt512QrhYD58Pyu+k7R4ZcbawF+Sj7LYyF8Mp00vAOm zjnzgz77tAJqHJg/ZbgWdSDpknzNDeuX8uhNseLD43a7MT0MmGigIfj5ZVP0OTlU0COy jLGw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a6566d4000000b00536e63c8643si4181936pgw.558.2023.05.30.08.51.58; Tue, 30 May 2023 08:52:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232450AbjE3PqN (ORCPT + 99 others); Tue, 30 May 2023 11:46:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232258AbjE3PqG (ORCPT ); Tue, 30 May 2023 11:46:06 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8CDDE5; Tue, 30 May 2023 08:46:02 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.2.0) id c85ce38deb63eb2c; Tue, 30 May 2023 17:46:01 +0200 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id D05D58BB094; Tue, 30 May 2023 17:46:00 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Zhang Rui , Daniel Lezcano , Michal Wilczynski Subject: [PATCH v1 1/5] ACPI: thermal: Use BIT() macro for defining flags Date: Tue, 30 May 2023 17:44:08 +0200 Message-ID: <3229381.aeNJFYEL58@kreacher> In-Reply-To: <5675481.DvuYhMxLoT@kreacher> References: <5675481.DvuYhMxLoT@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekjedgledtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepvdffueeitdfgvddtudegueejtdffteetgeefkeffvdeftddttdeuhfegfedvjefhnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohephedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohepuggrnhhivghlrdhlvgiitggrnhhosehlihhnrghrohdrohhrghdprhgtphhtthhopehm ihgthhgrlhdrfihilhgtiiihnhhskhhisehinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=5 Fuz1=5 Fuz2=5 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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 --- 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