Use the common USB helper for looking up bulk and interrupt endpoints
instead of open coding.
Johan
Johan Hovold (2):
can: kvaser_usb: leaf: refactor endpoint lookup
can: ucan: refactor endpoint lookup
.../net/can/usb/kvaser_usb/kvaser_usb_leaf.c | 25 ++++--------
drivers/net/can/usb/ucan.c | 40 +++++--------------
2 files changed, 19 insertions(+), 46 deletions(-)
--
2.52.0