OSDN Git Service

usb: gadget: udc-xilinx: fix restricted __le16 degrades to integer warning
authorPiyush Mehta <piyush.mehta@amd.com>
Tue, 22 Aug 2023 06:31:59 +0000 (12:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 12:46:45 +0000 (14:46 +0200)
commit7f93e683bc0667a6b5e0da4b49fa07938a9ccad4
treef947950e8077bf687ec0a52cc3b4b3d97e7930e6
parent2ccbe85456b367d24d53f6ff9f5b2cafd0b54877
usb: gadget: udc-xilinx: fix restricted __le16 degrades to integer warning

usb_ctrlrequest members wValue and wIndex are of type __le16, so to fix
this warnings we are using le16_to_cpu() macros.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/all/202209020044.CX2PfZzM-lkp@intel.com/
Signed-off-by: Piyush Mehta <piyush.mehta@amd.com>
Link: https://lore.kernel.org/r/20230822063201.16929-2-piyush.mehta@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/udc-xilinx.c