diff options
author | Robert Baldyga <r.baldyga@samsung.com> | 2015-07-28 08:20:03 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-07-30 19:43:36 +0300 |
commit | 736d093b5985c1f6583460c8eea1be3c9ee5635e (patch) | |
tree | 1bae5e59f94cfacdd8f63a703191d497a342176b /drivers/usb/gadget/function/u_ether.h | |
parent | 7a896d40525349e7d52307fb957882696e09466c (diff) | |
download | linux-736d093b5985c1f6583460c8eea1be3c9ee5635e.tar.xz |
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/u_ether.h')
-rw-r--r-- | drivers/usb/gadget/function/u_ether.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/u_ether.h b/drivers/usb/gadget/function/u_ether.h index 334b38947916..1384f000bd80 100644 --- a/drivers/usb/gadget/function/u_ether.h +++ b/drivers/usb/gadget/function/u_ether.h @@ -259,7 +259,7 @@ void gether_disconnect(struct gether *); /* Some controllers can't support CDC Ethernet (ECM) ... */ static inline bool can_support_ecm(struct usb_gadget *gadget) { - if (!gadget_supports_altsettings(gadget)) + if (!gadget_is_altset_supported(gadget)) return false; /* Everything else is *presumably* fine ... but this is a bit |