]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: gadget: Use unaligned access for wMaxPacketSize
authorVivek Gautam <gautam.vivek@samsung.com>
Mon, 13 May 2013 10:23:38 +0000 (15:53 +0530)
committerMarek Vasut <marex@denx.de>
Wed, 12 Jun 2013 20:22:51 +0000 (22:22 +0200)
commitf6664ba4bcc484a2b924ecfa1052bb729def6685
treec56a6ec799a5dd156f3859fcd5d220879fdee828
parentf903a20d1fc0e99741da671095c6b9ac7c13c7ae
usb: gadget: Use unaligned access for wMaxPacketSize

Use get_unaligned() while fetching wMaxPacketSize to avoid
voilating any alignment rules.

Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Piotr Wilczek <p.wilczek@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Lukasz Dalek <luk0104@gmail.com>
Cc: Marek Vasut <marex@denx.de>
drivers/usb/gadget/f_mass_storage.c
drivers/usb/gadget/pxa25x_udc.c