summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/f_obex.c
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2015-07-28 07:20:03 +0200
committerFelipe Balbi <balbi@ti.com>2015-07-30 11:43:36 -0500
commit736d093b5985c1f6583460c8eea1be3c9ee5635e (patch)
tree1bae5e59f94cfacdd8f63a703191d497a342176b /drivers/usb/gadget/function/f_obex.c
parent7a896d40525349e7d52307fb957882696e09466c (diff)
downloadop-kernel-dev-736d093b5985c1f6583460c8eea1be3c9ee5635e.zip
op-kernel-dev-736d093b5985c1f6583460c8eea1be3c9ee5635e.tar.gz
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>
Diffstat (limited to 'drivers/usb/gadget/function/f_obex.c')
-rw-r--r--drivers/usb/gadget/function/f_obex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_obex.c b/drivers/usb/gadget/function/f_obex.c
index 5519f85..2682d59 100644
--- a/drivers/usb/gadget/function/f_obex.c
+++ b/drivers/usb/gadget/function/f_obex.c
@@ -297,7 +297,7 @@ static inline bool can_support_obex(struct usb_configuration *c)
*
* Altsettings are mandatory, however...
*/
- if (!gadget_supports_altsettings(c->cdev->gadget))
+ if (!gadget_is_altset_supported(c->cdev->gadget))
return false;
/* everything else is *probably* fine ... */
OpenPOWER on IntegriCloud