usb: fotg210-udc: Fix ages old endianness issues
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Nov 2022 09:03:17 +0000 (10:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Nov 2022 09:18:59 +0000 (10:18 +0100)
commit46ed6026ca2181c917c8334a82e3eaf40a6234dd
tree9892054924f06dd50b1297c0d3f87f89579d439a
parent00fb05ff87bc63a3e9000e3f7c15c86951aca76d
usb: fotg210-udc: Fix ages old endianness issues

The code in the FOTG210 driver isn't entirely endianness-agnostic
as reported by the kernel robot sparse testing. This came to
the surface while moving the files around.

The driver is only used on little-endian systems, so this causes
no real-world regression, but it is nice to be strict and have
some compile coverage also on big endian machines, so fix it
up with the right LE accessors.

Fixes: b84a8dee23fd ("usb: gadget: add Faraday fotg210_udc driver")
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/linux-usb/202211110910.0dJ7nZCn-lkp@intel.com/
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20221111090317.94228-1-linus.walleij@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/fotg210/fotg210-udc.c