From: Greg Kroah-Hartman Date: Wed, 17 Aug 2016 11:21:51 +0000 (+0200) Subject: greybus: es2: remove unneeded BULK_* #defines X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~4 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=fc994f0f8363eb4c50361800c7d2217eb0306014;p=linux.git greybus: es2: remove unneeded BULK_* #defines We don't need the defines for the number of bulk in or out endpoints anymore, as the driver just grabs the first ones it finds and runs with it. Reviewed-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c index 69123b7ee94b..4f10accbd50b 100644 --- a/drivers/staging/greybus/es2.c +++ b/drivers/staging/greybus/es2.c @@ -46,15 +46,6 @@ MODULE_DEVICE_TABLE(usb, id_table); #define APB1_LOG_SIZE SZ_16K -/* Number of bulk in and bulk out couple */ -#define NUM_BULKS 1 - -/* Expected number of bulk out endpoints */ -#define NUM_BULKS_OUT NUM_BULKS - -/* Expected number of bulk in endpoints (including ARPC endpoint) */ -#define NUM_BULKS_IN (NUM_BULKS + 1) - /* * Number of CPort IN urbs in flight at any point in time. * Adjust if we are having stalls in the USB buffer due to not enough urbs in @@ -65,7 +56,7 @@ MODULE_DEVICE_TABLE(usb, id_table); /* Number of CPort OUT urbs in flight at any point in time. * Adjust if we get messages saying we are out of urbs in the system log. */ -#define NUM_CPORT_OUT_URB (8 * NUM_BULKS) +#define NUM_CPORT_OUT_URB 8 /* * Number of ARPC in urbs in flight at any point in time.