usb: gadget: f_phonet: convert to new function interface with backward compatibility
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Thu, 23 May 2013 08:51:11 +0000 (10:51 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 10 Jun 2013 14:31:07 +0000 (17:31 +0300)
commitfcbdf12ebef73a6069e2a1aada1e546fb578a4aa
treeb1386327eb8ab8a5ec70dee85c29a38108c9a196
parent0189e63ad8a06bcd9f74ca00490cf7aa7bae0cff
usb: gadget: f_phonet: convert to new function interface with backward compatibility

Converting f_phonet to the new function interface requires converting
the f_phonet's function code and its users.

This patch converts the f_phonet.c to the new function interface.

The file is now compiled into a separate usb_f_phonet.ko module.

The old function interface is provided by means of preprocessor
conditional directives. After all users are converted, the old interface
can be removed.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/Kconfig
drivers/usb/gadget/Makefile
drivers/usb/gadget/f_phonet.c
drivers/usb/gadget/nokia.c
drivers/usb/gadget/u_phonet.h