samples: intel_s1000_crb: remove unused and wrong implemented callbacks
This sample has implemented USB HID class callbacks that actually have no function and should not return 0. Remove unused and wrong implemented callbacks. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
583334b606
commit
2075cf1cf0
1 changed files with 0 additions and 60 deletions
|
@ -16,33 +16,13 @@ LOG_MODULE_REGISTER(usb_transport);
|
|||
#include "usb_transport.h"
|
||||
|
||||
/* callback function list */
|
||||
static int usb_transport_get_report(const struct device *dev,
|
||||
struct usb_setup_packet *setup,
|
||||
int32_t *len, uint8_t **data);
|
||||
static int usb_transport_get_idle(const struct device *dev,
|
||||
struct usb_setup_packet *setup,
|
||||
int32_t *len, uint8_t **data);
|
||||
static int usb_transport_get_protocol(const struct device *dev,
|
||||
struct usb_setup_packet *setup,
|
||||
int32_t *len, uint8_t **data);
|
||||
static int usb_transport_set_report(const struct device *dev,
|
||||
struct usb_setup_packet *setup,
|
||||
int32_t *len, uint8_t **data);
|
||||
static int usb_transport_set_idle(const struct device *dev,
|
||||
struct usb_setup_packet *setup,
|
||||
int32_t *len, uint8_t **data);
|
||||
static int usb_transport_set_protocol(const struct device *dev,
|
||||
struct usb_setup_packet *setup,
|
||||
int32_t *len, uint8_t **data);
|
||||
static void usb_transport_host_ready(const struct device *dev);
|
||||
|
||||
static const struct hid_ops usb_transport_callbacks = {
|
||||
.get_report = usb_transport_get_report,
|
||||
.get_idle = usb_transport_get_idle,
|
||||
.get_protocol = usb_transport_get_protocol,
|
||||
.set_report = usb_transport_set_report,
|
||||
.set_idle = usb_transport_set_idle,
|
||||
.set_protocol = usb_transport_set_protocol,
|
||||
.int_in_ready = usb_transport_host_ready,
|
||||
};
|
||||
|
||||
|
@ -161,30 +141,6 @@ int usb_transport_send_reply(uint8_t *data, uint32_t len)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int usb_transport_get_report(const struct device *dev,
|
||||
struct usb_setup_packet *setup,
|
||||
int32_t *len, uint8_t **data)
|
||||
{
|
||||
LOG_DBG("usb_transport_get_report");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int usb_transport_get_idle(const struct device *dev,
|
||||
struct usb_setup_packet *setup,
|
||||
int32_t *len, uint8_t **data)
|
||||
{
|
||||
LOG_DBG("usb_transport_get_idle");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int usb_transport_get_protocol(const struct device *dev,
|
||||
struct usb_setup_packet *setup,
|
||||
int32_t *len, uint8_t **data)
|
||||
{
|
||||
LOG_DBG("usb_transport_get_protocol");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int usb_transport_set_report(const struct device *dev,
|
||||
struct usb_setup_packet *setup,
|
||||
int32_t *len, uint8_t **data)
|
||||
|
@ -200,22 +156,6 @@ static int usb_transport_set_report(const struct device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int usb_transport_set_idle(const struct device *dev,
|
||||
struct usb_setup_packet *setup,
|
||||
int32_t *len, uint8_t **data)
|
||||
{
|
||||
LOG_DBG("usb_transport_set_idle");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int usb_transport_set_protocol(const struct device *dev,
|
||||
struct usb_setup_packet *setup,
|
||||
int32_t *len, uint8_t **data)
|
||||
{
|
||||
LOG_DBG("usb_transport_set_protocol");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void usb_transport_host_ready(const struct device *dev)
|
||||
{
|
||||
LOG_DBG("usb_transport_host_ready");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue