aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-starfive.c
diff options
context:
space:
mode:
authorMin-Hua Chen <[email protected]>2023-05-23 16:23:12 +0000
committerGreg Kroah-Hartman <[email protected]>2023-05-29 14:17:39 +0000
commit3c90c5a7fd425daaa62c4f82b4699aabd8e4edaa (patch)
treedac7a8987c681167ad72918912fb9a2b089adea0 /drivers/usb/cdns3/cdns3-starfive.c
parentusb: typec: ucsi: Mark dGPUs as DEVICE scope (diff)
downloadkernel-3c90c5a7fd425daaa62c4f82b4699aabd8e4edaa.tar.gz
kernel-3c90c5a7fd425daaa62c4f82b4699aabd8e4edaa.zip
usb: typec: ucsi: correctly access opcode
hdr->opcode is __le32 type, use le32_to_cpu() to cast opcode to integer in the switch..case statement to fix the following sparse warnings: drivers/usb/typec/ucsi/ucsi_glink.c:248:20: sparse: warning: restricted __le32 degrades to integer drivers/usb/typec/ucsi/ucsi_glink.c:248:20: sparse: warning: restricted __le32 degrades to integer drivers/usb/typec/ucsi/ucsi_glink.c:248:20: sparse: warning: restricted __le32 degrades to integer No functional change. Signed-off-by: Min-Hua Chen <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions