Message ID | 5959573.lOV4Wx5bFT@kreacher |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2113541vqr; Sun, 4 Jun 2023 05:28:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ44PIw6ObjkprizygGeGqT/ti0/pEUi933J6HzJu6BTn9ZC6GPnV1MPVNvF+TthtmynFrsl X-Received: by 2002:a05:6a20:430d:b0:112:bdd3:9b81 with SMTP id h13-20020a056a20430d00b00112bdd39b81mr885685pzk.15.1685881693261; Sun, 04 Jun 2023 05:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685881693; cv=none; d=google.com; s=arc-20160816; b=miZiVD0nnH4YZ7vS9NtoCJ1qb3hVLXb97hdnj/IDiB59bAQuXKXDb0i99wRwiFWYoh Van6iAxl75hbrFxDjVqFxgoEkQaljSRAq/k5JAcCqBr6mBOm/uzZRKZbKR6a2+BBTOu/ UqQj/ZnBn6WHUxlOXiwM8n+fFYJewHs0TApk+9JqCIbySV2Z+U8BhmF16cMHL2+Nx8/+ ntLNWcVvVzt87R+46fadW9X0TP5dmV9InyMjgbnmnzfMaQSY40jsLPPlmYGrZxkpYXPp X/P8MTOMhhPo8Zd2D7JCh1Y5B6Xm00uCY2ncAdAHrGUBxijiQL77RbMvOLwTPpFJPvCp QyHA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a6-20020a170902ecc600b001a92e587f72si4185273plh.413.2023.06.04.05.27.58; Sun, 04 Jun 2023 05:28: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 S231195AbjFDMVt (ORCPT <rfc822;pfffrao@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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" <rjw@rjwysocki.net> To: Linux ACPI <linux-acpi@vger.kernel.org> Cc: LKML <linux-kernel@vger.kernel.org>, Zhang Rui <rui.zhang@intel.com>, Daniel Lezcano <daniel.lezcano@linaro.org>, Michal Wilczynski <michal.wilczynski@intel.com>, Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767775082649726030?= X-GMAIL-MSGID: =?utf-8?q?1767775082649726030?= |
Series |
ACPI: thermal: Assorted cleanups
|
|
Commit Message
Rafael J. Wysocki
June 4, 2023, 12:07 p.m. UTC
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 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 <rafael.j.wysocki@intel.com> Reviewed-by: Michal Wilczynski <michal.wilczynski@intel.com> --- v1 -> v2: Added R-by from Michal. --- drivers/acpi/thermal.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Comments
On 04/06/2023 14:07, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki <rafael.j.wysocki@intel.com> > > 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 <rafael.j.wysocki@intel.com> > Reviewed-by: Michal Wilczynski <michal.wilczynski@intel.com> Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org> > --- > > 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 > > >
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