Skip to content

Commit e07821a

Browse files
krzkgregkh
authored andcommitted
phy: broadcom: ns-usb3: fix Wvoid-pointer-to-enum-cast warning
[ Upstream commit bd6e74a ] 'family' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: drivers/phy/broadcom/phy-bcm-ns-usb3.c:209:17: error: cast to smaller integer type 'enum bcm_ns_family' 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-2-krzysztof.kozlowski@linaro.org Signed-off-by: Vinod Koul <vkoul@kernel.org> Stable-dep-of: 6496155 ("phy: ti: omap-usb2: fix device leak at unbind") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8564416 commit e07821a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/broadcom/phy-bcm-ns-usb3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static int bcm_ns_usb3_mdio_probe(struct mdio_device *mdiodev)
206206
of_id = of_match_device(bcm_ns_usb3_id_table, dev);
207207
if (!of_id)
208208
return -EINVAL;
209-
usb3->family = (enum bcm_ns_family)of_id->data;
209+
usb3->family = (uintptr_t)of_id->data;
210210

211211
syscon_np = of_parse_phandle(dev->of_node, "usb3-dmp-syscon", 0);
212212
err = of_address_to_resource(syscon_np, 0, &res);

0 commit comments

Comments
 (0)