]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: exynos5-usbdrd: convert some FIELD_PREP_CONST() to FIELD_PREP()
authorAndré Draszik <andre.draszik@linaro.org>
Wed, 10 Jul 2024 06:45:07 +0000 (07:45 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 31 Jul 2024 11:12:23 +0000 (16:42 +0530)
commit7e6c2ffe6c2284a10f77079670e3b26b43df4443
tree3d2b68f5f4e3cd1c86d731753ed188a0a4365604
parent4bf8b462f84dd81c5938341a5468c3b669dbb1af
phy: exynos5-usbdrd: convert some FIELD_PREP_CONST() to FIELD_PREP()

Use of FIELD_PREP_CONST() was a thinko - it's meant to be used for
(constant) initialisers, not constant values.

Use FIELD_PREP() where possible. It has better error checking and is
therefore the preferred macro to use in those cases.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20240710-phy-field-prep-v1-1-2fa3f7dc4fc7@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/samsung/phy-exynos5-usbdrd.c