phy: marvell pxa-usb: fix Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 10 Aug 2023 11:19:58 +0000 (13:19 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 11 Aug 2023 08:25:15 +0000 (09:25 +0100)
commit7451eecf1ef8be9911749e927ce5690262cc9197
treebccb3adb87673887a500f5fd5070ad957ed61070
parent2bc00b9b9001329792b14ce20141f334b6debcbc
phy: marvell pxa-usb: fix Wvoid-pointer-to-enum-cast warning

'version' is an enum, thus cast of pointer on 64-bit compile test with
W=1 causes:

  phy-pxa-usb.c:299:26: error: cast to smaller integer type 'enum pxa_usb_phy_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230810111958.205705-4-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/marvell/phy-pxa-usb.c