usb: Refactor USB status callback
Merge cb_usb_status_composite and cb_usb_status and use common forward_status_cb for both composite and normal devices. Fixes #14882 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
0c59471436
commit
721f3d1cd0
14 changed files with 71 additions and 181 deletions
|
@ -190,12 +190,9 @@ struct usb_cfg_data {
|
|||
/** Function for interface runtime configuration */
|
||||
usb_interface_config interface_config;
|
||||
/** Callback to be notified on USB connection status change */
|
||||
usb_dc_status_callback cb_usb_status;
|
||||
/** Composite callback */
|
||||
void (*cb_usb_status_composite)(struct usb_cfg_data *cfg,
|
||||
enum usb_dc_status_code cb_status,
|
||||
const u8_t *param);
|
||||
|
||||
void (*cb_usb_status)(struct usb_cfg_data *cfg,
|
||||
enum usb_dc_status_code cb_status,
|
||||
const u8_t *param);
|
||||
/** USB interface (Class) handler and storage space */
|
||||
struct usb_interface_cfg_data interface;
|
||||
/** Number of individual endpoints in the device configuration */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue