summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2016-09-11 09:44:07 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2016-09-11 13:31:48 +0200
commit2c81d1a3e65b28c132f64f6d6144f4742d989997 (patch)
treeb76f1c3a21029c2b15118c144971d96b3c2aefd4
parentb055665fb0f978960797cd66fcc93ab7638e3695 (diff)
downloadsecure-hid-2c81d1a3e65b28c132f64f6d6144f4742d989997.tar.gz
secure-hid-2c81d1a3e65b28c132f64f6d6144f4742d989997.tar.bz2
secure-hid-2c81d1a3e65b28c132f64f6d6144f4742d989997.zip
drivers: remove redundant forward declaration of usbh_dev_driver_t
It is already declared in usbh_core.h Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
-rw-r--r--include/driver/usbh_device_driver.h4
-rw-r--r--include/usbh_driver_gp_xbox.h1
-rw-r--r--include/usbh_driver_hid.h1
-rw-r--r--include/usbh_driver_hub.h1
4 files changed, 0 insertions, 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