]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: common: Simplify usb_decode_get_set_descriptor function.
authorPawel Laszczak <pawell@cadence.com>
Mon, 26 Aug 2019 11:19:29 +0000 (12:19 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 29 Aug 2019 07:55:13 +0000 (10:55 +0300)
commitf72429fc88b5f48ee9ff2617224bbe098e40e86f
tree173349dd49603df9f3fcd8d1646ed5531a3bbc33
parent010665b44d596d1b2aa0249b0e093fd3df774f6e
usb: common: 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/common/debug.c