From 2c81d1a3e65b28c132f64f6d6144f4742d989997 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Sun, 11 Sep 2016 09:44:07 +0200 Subject: drivers: remove redundant forward declaration of usbh_dev_driver_t It is already declared in usbh_core.h Signed-off-by: Amir Hammad --- include/driver/usbh_device_driver.h | 4 ---- include/usbh_driver_gp_xbox.h | 1 - include/usbh_driver_hid.h | 1 - include/usbh_driver_hub.h | 1 - 4 files changed, 7 deletions(-) diff --git a/include/driver/usbh_device_driver.h b/include/driver/usbh_device_driver.h index 20ece5d..e846fd2 100644 --- a/include/driver/usbh_device_driver.h +++ b/include/driver/usbh_device_driver.h @@ -110,10 +110,6 @@ struct _usbh_control { }; typedef struct _usbh_control usbh_control_t; - -//forward declare usbh_dev_driver_t -typedef struct _usbh_dev_driver usbh_dev_driver_t; - /** * @brief The _usbh_device struct * diff --git a/include/usbh_driver_gp_xbox.h b/include/usbh_driver_gp_xbox.h index 5d2dc2a..d648b90 100644 --- a/include/usbh_driver_gp_xbox.h +++ b/include/usbh_driver_gp_xbox.h @@ -71,7 +71,6 @@ typedef struct _gp_xbox_config gp_xbox_config_t; */ void gp_xbox_driver_init(const gp_xbox_config_t *config); -typedef struct _usbh_dev_driver usbh_dev_driver_t; extern const usbh_dev_driver_t usbh_gp_xbox_driver; END_DECLS diff --git a/include/usbh_driver_hid.h b/include/usbh_driver_hid.h index 89f950a..8155d82 100644 --- a/include/usbh_driver_hid.h +++ b/include/usbh_driver_hid.h @@ -78,7 +78,6 @@ enum HID_TYPE hid_get_type(uint8_t device_id); */ bool hid_is_connected(uint8_t device_id); -typedef struct _usbh_dev_driver usbh_dev_driver_t; extern const usbh_dev_driver_t usbh_hid_driver; END_DECLS diff --git a/include/usbh_driver_hub.h b/include/usbh_driver_hub.h index dedcc58..1066074 100644 --- a/include/usbh_driver_hub.h +++ b/include/usbh_driver_hub.h @@ -32,7 +32,6 @@ BEGIN_DECLS */ void hub_driver_init(void); -typedef struct _usbh_dev_driver usbh_dev_driver_t; extern const usbh_dev_driver_t usbh_hub_driver; END_DECLS -- cgit