USB: serial: refactor port endpoint setup
authorJohan Hovold <johan@kernel.org>
Tue, 20 Jun 2017 10:52:02 +0000 (12:52 +0200)
committerJohan Hovold <johan@kernel.org>
Wed, 21 Jun 2017 07:38:58 +0000 (09:38 +0200)
commit45e5d4d418f37cb9b2746c1fc63ab89b7b521d78
tree12ad91df46a64960eeca5c2e4c14635bb9550b78
parent08f741a93333dc81b6d17d25f712ca167f250b1a
USB: serial: refactor port endpoint setup

Make the probe callback more readable by refactoring the port
endpoint-resource setup by adding four helper functions.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/usb-serial.c