summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng/p80211netdev.h
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2016-09-27 19:33:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-28 11:32:19 +0200
commit19066982a7ae7ca9570d3271451ba3adc616019e (patch)
tree65438d570745c10258aa6790e2c98aa90b23d3e3 /drivers/staging/wlan-ng/p80211netdev.h
parentbfc2cc0217140fce1b3ef130a1e5fd56899b5baa (diff)
downloadop-kernel-dev-19066982a7ae7ca9570d3271451ba3adc616019e.zip
op-kernel-dev-19066982a7ae7ca9570d3271451ba3adc616019e.tar.gz
staging: wlan-ng: avoid new typedef: netdevice_t
This patch fixes the following checkpatch.pl warning in p80211netdev.h: WARNING: do not add new typedefs It applies for typedef netdevice_t Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng/p80211netdev.h')
-rw-r--r--drivers/staging/wlan-ng/p80211netdev.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/staging/wlan-ng/p80211netdev.h b/drivers/staging/wlan-ng/p80211netdev.h
index 222f736..5055837 100644
--- a/drivers/staging/wlan-ng/p80211netdev.h
+++ b/drivers/staging/wlan-ng/p80211netdev.h
@@ -57,9 +57,6 @@
#include <linux/wireless.h>
#include <linux/netdevice.h>
-#undef netdevice_t
-typedef struct net_device netdevice_t;
-
#define WLAN_RELEASE "0.3.0-staging"
#define WLAN_DEVICE_CLOSED 0
@@ -138,7 +135,7 @@ typedef struct p80211_frmrx_t {
} p80211_frmrx_t;
/* called by /proc/net/wireless */
-struct iw_statistics *p80211wext_get_wireless_stats(netdevice_t *dev);
+struct iw_statistics *p80211wext_get_wireless_stats(struct net_device *dev);
/* wireless extensions' ioctls */
extern struct iw_handler_def p80211wext_handler_def;
@@ -186,7 +183,7 @@ struct wlandevice {
struct p80211_metawep *p80211_wep);
int (*mlmerequest)(struct wlandevice *wlandev, struct p80211msg *msg);
int (*set_multicast_list)(struct wlandevice *wlandev,
- netdevice_t *dev);
+ struct net_device *dev);
void (*tx_timeout)(struct wlandevice *wlandev);
/* 802.11 State */
@@ -206,7 +203,7 @@ struct wlandevice {
/* netlink socket */
/* queue for indications waiting for cmd completion */
/* Linux netdevice and support */
- netdevice_t *netdev; /* ptr to linux netdevice */
+ struct net_device *netdev; /* ptr to linux netdevice */
/* Rx bottom half */
struct tasklet_struct rx_bh;
OpenPOWER on IntegriCloud