]> www.infradead.org Git - users/dwmw2/linux.git/commit
phy: exynos5-usbdrd: s/FIELD_PREP_CONST/FIELD_PREP where appropriate
authorAndré Draszik <andre.draszik@linaro.org>
Tue, 29 Apr 2025 08:49:25 +0000 (09:49 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 May 2025 09:11:40 +0000 (10:11 +0100)
commit6d0e2ada3ee5a554e908178d1fce851f5e63943d
tree2a41dfb2c6ba317866b8606f4d0e33128e092110
parentb45791d48752418c805ae7417dcea85a40d5a41e
phy: exynos5-usbdrd: s/FIELD_PREP_CONST/FIELD_PREP where appropriate

Commit 9b6662a0f715 ("phy: exynos5-usbdrd: use GENMASK and FIELD_PREP
for Exynos5 PHY registers") added FIELD_PREP_CONST() in many cases
where FIELD_PREP() would have been more appropriate. It also switched
existing uses of FIELD_PREP() to FIELD_PREP_CONST().

FIELD_PREP() is the preferred macro to use whenever possible while
FIELD_PREP_CONST() is meant to be used in constant initialisers.

Switch (back) to FIELD_PREP().

Fixes: 7e6c2ffe6c22 ("phy: exynos5-usbdrd: convert some FIELD_PREP_CONST() to FIELD_PREP()")
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250429-exynos5-phy-field-prep-v1-2-39eb279a3e0e@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/samsung/phy-exynos5-usbdrd.c