Skip to content

Commit 3883fe9

Browse files
committed
ACPI: thermal: Use BIT() macro for defining flags
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 <[email protected]> Reviewed-by: Michal Wilczynski <[email protected]> Reviewed-by: Daniel Lezcano <[email protected]>
1 parent 858fd16 commit 3883fe9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/acpi/thermal.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ static int acpi_thermal_set_cooling_mode(struct acpi_thermal *tz, int mode)
232232
return 0;
233233
}
234234

235-
#define ACPI_TRIPS_CRITICAL 0x01
236-
#define ACPI_TRIPS_HOT 0x02
237-
#define ACPI_TRIPS_PASSIVE 0x04
238-
#define ACPI_TRIPS_ACTIVE 0x08
239-
#define ACPI_TRIPS_DEVICES 0x10
235+
#define ACPI_TRIPS_CRITICAL BIT(0)
236+
#define ACPI_TRIPS_HOT BIT(1)
237+
#define ACPI_TRIPS_PASSIVE BIT(2)
238+
#define ACPI_TRIPS_ACTIVE BIT(3)
239+
#define ACPI_TRIPS_DEVICES BIT(4)
240240

241241
#define ACPI_TRIPS_REFRESH_THRESHOLDS (ACPI_TRIPS_PASSIVE | ACPI_TRIPS_ACTIVE)
242242
#define ACPI_TRIPS_REFRESH_DEVICES ACPI_TRIPS_DEVICES

0 commit comments

Comments
 (0)