]> git.baikalelectronics.ru Git - kernel.git/commit
usb:gadget Simplify usb_decode_get_set_descriptor function.
authorPawel Laszczak <pawell@cadence.com>
Tue, 2 Jul 2019 13:38:00 +0000 (14:38 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 3 Jul 2019 07:46:03 +0000 (10:46 +0300)
commitb36c3d50776b2c85f83757cd7aef0da996aa93c5
treeb3a44e54d8b0e4348a406a593514f76e3d127e4d
parent5e17cd7bb2e1d18316f96f3d5dadc7b17a8b2acd
usb:gadget Simplify usb_decode_get_set_descriptor function.

Patch moves switch responsible for decoding descriptor type
outside snprintf. It improves code readability a little.

Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/debug.c