usb: gadget: apply generic altsetting support check mechanism
authorRobert Baldyga <r.baldyga@samsung.com>
Tue, 28 Jul 2015 05:20:03 +0000 (07:20 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 30 Jul 2015 16:43:36 +0000 (11:43 -0500)
commit736d093b5985c1f6583460c8eea1be3c9ee5635e
tree1bae5e59f94cfacdd8f63a703191d497a342176b
parent7a896d40525349e7d52307fb957882696e09466c
usb: gadget: apply generic altsetting support check mechanism

Replace calls of gadget_supports_altsettings() function (which check altset
support by comparing UDC controller name with hardcoded names) with
gadget_is_altset_supported() which checks generic quirk bitfield.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_obex.c
drivers/usb/gadget/function/u_ether.h
drivers/usb/gadget/legacy/nokia.c