Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4442399rwd; Sun, 4 Jun 2023 05:35:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ZUEJzLHELG7W3i9c97/+tcdPelBv+f7dwsuurgg0fChOayOcWR85h1qQzjLznnaPFag+I X-Received: by 2002:a05:6359:21a:b0:129:bd6b:20be with SMTP id ej26-20020a056359021a00b00129bd6b20bemr2730521rwb.18.1685882114668; Sun, 04 Jun 2023 05:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685882114; cv=none; d=google.com; s=arc-20160816; b=ZZ3wd9dKO1t5xGhdWvZE/Lvtw+EqzFvEwSJW0ExlIQfO4bSJPSuLhpJ27/n6rcfJ+C nnHHiGUH8shhbo6qmNGt5cxWwnIHbtyU2NHsTUderwO/VCnmr4uHNFUj2fbrstJh5TeK UEm3v3izoiVgbvpShuh6jHf0Ety//sk1X/pvFaRbTGYKAfhwZtuJLmywkM/IDBkWcmeq 8uqwCkJRuKVYx5av72PtVMY5kvxjORyVE5Nhf/ni9HZdrfPgyGaAscdsJE7ZC6iBVhTR xKl3yj+N8pb/DCekLXUuHmZHQB54nQ9vlfozQSXLcnPaWMkjWul76WNMvEJjLjB7vrFf CD7g== 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=Lj8fpS3xLP0pTsNI+dcP6BeBRMG/ra8l6NwkxEpfVz4=; b=Vp0yON+V05oabkonOKbMxHvElV5BHZs+vT92u5SHMANbSbs2SXU+ERzJHvCwIxMxPN hfHu0+ivU+qPdxIHTFx74UzUwu2Dy5my70iI4COD+E6UIVsz1mcQXQOdLZDYdhlCID7j UJJUHJJGsnJEouX1QNlBtOdO5QtgTibLaGVqezZV2ZhCxxr4gTv1MmXt9kNeRkVmbyxD 43LxxoF0EkfFDjHFPijemObAQmtnoXp621CXoJqd6iJaa45JKzDX/+mDGDp/YBTDXP0Q HjvetKbBoAE7inn3RCgbNo/v1/iFnif04K3dXyEcm39Ff+UnDUVXteBFgRTs0Bm9k1Sv g7hA== 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 w29-20020a63af1d000000b0053f23442f2bsi3943212pge.443.2023.06.04.05.34.59; Sun, 04 Jun 2023 05:35:14 -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 S231186AbjFDMVt (ORCPT + 99 others); Sun, 4 Jun 2023 08:21:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbjFDMV1 (ORCPT ); Sun, 4 Jun 2023 08:21:27 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FD7DCA; Sun, 4 Jun 2023 05:21:25 -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 374c8d716b7ddac6; Sun, 4 Jun 2023 14:21:24 +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 22ACD963C55; Sun, 4 Jun 2023 14:21:24 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Zhang Rui , Daniel Lezcano , Michal Wilczynski , Srinivas Pandruvada Subject: [PATCH v2 1/7] ACPI: thermal: Use BIT() macro for defining flags Date: Sun, 04 Jun 2023 14:07:51 +0200 Message-ID: <5959573.lOV4Wx5bFT@kreacher> In-Reply-To: <2703629.mvXUDI8C0e@kreacher> References: <2703629.mvXUDI8C0e@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: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeljedghedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepvdffueeitdfgvddtudegueejtdffteetgeefkeffvdeftddttdeuhfegfedvjefhnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohepiedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohepuggrnhhivghlrdhlvgiitggrnhhosehlihhnrghrohdrohhrghdprhgtphhtthhopehm ihgthhgrlhdrfihilhgtiiihnhhskhhisehinhhtvghlrdgtohhmpdhrtghpthhtohepshhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=6 Fuz1=6 Fuz2=6 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 Reviewed-by: Michal Wilczynski --- 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