OSDN Git Service

usb: gadget: add "usb_validate_langid" function
authorTao Ren <rentao.bupt@gmail.com>
Sun, 15 Mar 2020 19:16:28 +0000 (12:16 -0700)
committerFelipe Balbi <balbi@kernel.org>
Tue, 5 May 2020 07:58:51 +0000 (10:58 +0300)
commit17309a6a43561bd7f4d4b51d7987225eb2b13d05
treeac43215c4142fe3e783955d1af712f340fddf4c0
parent5cc0710f23689455d40d590ebbcbcd21b0d84c77
usb: gadget: add "usb_validate_langid" function

The USB LANGID validation code in "check_user_usb_string" function is
moved to "usb_validate_langid" function which can be used by other usb
gadget drivers.

Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/configfs.c
drivers/usb/gadget/usbstring.c
include/linux/usb/gadget.h