]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate: Use FIELD_PREP and FIELD_GET macros
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 9 Dec 2024 18:52:39 +0000 (12:52 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 11 Dec 2024 16:44:53 +0000 (10:44 -0600)
commit88a95ba066a962d4d39c6a36b18bf665f51d3767
tree17e8570e40452d8e40cc8a4b5443d76da4db4703
parent3b43739824a6b617d8213dd2bce6fb1b2747c377
cpufreq/amd-pstate: Use FIELD_PREP and FIELD_GET macros

The FIELD_PREP and FIELD_GET macros improve readability and help
to avoid shifting bugs.

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20241209185248.16301-7-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c