]> git.baikalelectronics.ru Git - kernel.git/commit
usb/config: use proper endian access for wMaxPacketSize
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 29 Jul 2011 09:05:45 +0000 (11:05 +0200)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 1 Aug 2011 16:45:29 +0000 (09:45 -0700)
commite816826e600058a25caca423942158500359e62e
tree1f3cda80b3ac70e450fe7a25ec3713d755b71b98
parente87b44139b10f32f44f3035656c141577ac7095d
usb/config: use proper endian access for wMaxPacketSize

wMaxPacketSize is __le16 and should be accessed as such. Also fix the
wBytesPerInterval assignment while here.

v2: also fix the wBytesPerInterval assigment, noticed by Matt Evans

This patch should be backported to the 3.0 kernel.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Acked-by: Matt Evans <matt@ozlabs.org>
Cc: stable@kernel.org
drivers/usb/core/config.c