usb: gadget: g_serial: split the three possible functions into three bind functions
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Sun, 23 Dec 2012 20:10:03 +0000 (21:10 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 21 Jan 2013 18:52:41 +0000 (20:52 +0200)
commit48177cd83792d25a5bab7f887acc47c2c314810e
tree6a83a8f6d686ab690e97ff2510ee0e2b579994ff
parent05c062c571ee19f08deb1c12fc2dd14b92f89eb8
usb: gadget: g_serial: split the three possible functions into three bind functions

This patch factors out the three possible functions into three possible
bind functions which are passed as an argument to usb_add_config(). This
will ease the step by step converting of the individual functions to the
new function registration method.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/serial.c