]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: f_hid: convert to new function interface with backward compatibility
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Thu, 6 Nov 2014 10:11:59 +0000 (11:11 +0100)
committerFelipe Balbi <balbi@ti.com>
Thu, 6 Nov 2014 22:18:18 +0000 (16:18 -0600)
commit044b7842988ed88aa05303d33e22a0c626df212a
treeb47eb0c49597f56c9ee6d29ff2122fb7a13f6d0f
parent43a5999e7c86c58d1838024c17fa893b0ec7a694
usb: gadget: f_hid: convert to new function interface with backward compatibility

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

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

The file can now be compiled into a separate usb_f_hid.ko module.

The old function interface is provided by means of a 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: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/Kconfig
drivers/usb/gadget/function/Makefile
drivers/usb/gadget/function/f_hid.c
drivers/usb/gadget/function/u_hid.h [new file with mode: 0644]
drivers/usb/gadget/legacy/hid.c