usb: composite: fix possible alignment issues
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Thu, 21 Nov 2019 21:15:22 +0000 (22:15 +0100)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 22 Nov 2019 00:25:36 +0000 (01:25 +0100)
commit616ebd8b9cb455c5949bd94c47283835eba1954a
treee717c11019f7478d9772ad07cb97548680be2c03
parente5521b1c6f4e2d18f7b33e6db06af5e47fdef52c
usb: composite: fix possible alignment issues

Since upgrading to gcc9, warnings are issued:
"taking address of packed member of ‘...’ may result in an unaligned
pointer value"

Fix this by converting two functions to use unaligned access since packed
structures may be on an unaligned address, depending on USB hardware.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
drivers/usb/gadget/composite.c