Commit 17735e8a authored by Andrei Emeltchenko's avatar Andrei Emeltchenko Committed by Anas Nashif
Browse files

usb: netusb: Remove USB custom_handler()



Custom handler is not used, cleaning code.

Signed-off-by: default avatarAndrei Emeltchenko <andrei.emeltchenko@intel.com>
parent 6e2e2dbb
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -151,17 +151,6 @@ static int netusb_class_handler(struct usb_setup_packet *setup,
	return netusb.func->class_handler(setup, len, data);
}

static int netusb_custom_handler(struct usb_setup_packet *setup,
				 s32_t *len, u8_t **data)
{
	/**
	 * FIXME:
	 * Keep custom handler for now in a case some data is sent
	 * over this endpoint, at the moment return to higher layer.
	 */
	return -ENOTSUP;
}

#if !defined(CONFIG_USB_COMPOSITE_DEVICE)
/* TODO: FIXME: correct buffer size */
static u8_t interface_data[300];
@@ -172,7 +161,6 @@ static struct usb_cfg_data netusb_config = {
	.cb_usb_status = netusb_status_cb,
	.interface = {
		.class_handler = netusb_class_handler,
		.custom_handler = netusb_custom_handler,
		.custom_handler = NULL,
		.vendor_handler = NULL,
		.payload_data = NULL,