]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Sat, 31 Dec 2022 12:32:39 +0000 (13:32 +0100)
commitfdc23604d88cc32b8da38821b90c18537a02590b
tree06a93ad4d5f909e805ffaffcd726497c81abdeee
parent228c422b72f3c415bcbcebced683d82fe02bf063
usb: fotg210-udc: Fix ages old endianness issues

[ Upstream commit bf30ea5935bfbcf43ee93b2207f0e5f1645f58a8 ]

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: 36ea603e552d ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/gadget/udc/fotg210-udc.c