Commit 24c5b19e authored by Ondrej Zary's avatar Ondrej Zary Committed by Greg Kroah-Hartman

staging: ft1000-pcmcia: remove MEDIAMSG typedefs

Remove MEDIAMSG typedefs.
Signed-off-by: default avatarOndrej Zary <linux@rainbow-software.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8bc0d6fb
...@@ -292,7 +292,7 @@ struct drv_msg { ...@@ -292,7 +292,7 @@ struct drv_msg {
u8 data[0]; u8 data[0];
} __attribute__ ((packed)); } __attribute__ ((packed));
typedef struct _MEDIAMSG { struct media_msg {
struct pseudo_hdr pseudo; struct pseudo_hdr pseudo;
u16 type; u16 type;
u16 length; u16 length;
...@@ -302,7 +302,7 @@ typedef struct _MEDIAMSG { ...@@ -302,7 +302,7 @@ typedef struct _MEDIAMSG {
u32 gateway; u32 gateway;
u32 dns_1; u32 dns_1;
u32 dns_2; u32 dns_2;
} __attribute__ ((packed)) MEDIAMSG, *PMEDIAMSG; } __attribute__ ((packed));
typedef struct _TIMEMSG { typedef struct _TIMEMSG {
struct pseudo_hdr pseudo; struct pseudo_hdr pseudo;
......
...@@ -1015,7 +1015,7 @@ void ft1000_proc_drvmsg(struct net_device *dev) ...@@ -1015,7 +1015,7 @@ void ft1000_proc_drvmsg(struct net_device *dev)
FT1000_INFO *info = netdev_priv(dev); FT1000_INFO *info = netdev_priv(dev);
u16 msgtype; u16 msgtype;
u16 tempword; u16 tempword;
PMEDIAMSG pmediamsg; struct media_msg *pmediamsg;
PDSPINITMSG pdspinitmsg; PDSPINITMSG pdspinitmsg;
struct drv_msg *pdrvmsg; struct drv_msg *pdrvmsg;
u16 len; u16 len;
...@@ -1090,7 +1090,7 @@ void ft1000_proc_drvmsg(struct net_device *dev) ...@@ -1090,7 +1090,7 @@ void ft1000_proc_drvmsg(struct net_device *dev)
info->CardReady = 1; info->CardReady = 1;
break; break;
case MEDIA_STATE: case MEDIA_STATE:
pmediamsg = (PMEDIAMSG) & cmdbuffer[0]; pmediamsg = (struct media_msg *) & cmdbuffer[0];
if (info->ProgConStat != 0xFF) { if (info->ProgConStat != 0xFF) {
if (pmediamsg->state) { if (pmediamsg->state) {
DEBUG(1, "Media is up\n"); DEBUG(1, "Media is up\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment