Commit f0db82a5 authored by Himangi Saraogi's avatar Himangi Saraogi Committed by David S. Miller

atmel: Remove typedef atmel_priv_ioctl

The Linux kernel coding style guidelines suggest not using typedefs
for structure types. This patch gets rid of the typedef for
atmel_priv_ioctl.

The following Coccinelle semantic patch detects the case:

@tn@
identifier i;
type td;
@@

-typedef
 struct i { ... }
-td
 ;

@@
type tn.td;
identifier tn.i;
@@

-td
+ struct i
Signed-off-by: default avatarHimangi Saraogi <himangi774@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2dfd2533
...@@ -2598,11 +2598,11 @@ static const iw_handler atmel_private_handler[] = ...@@ -2598,11 +2598,11 @@ static const iw_handler atmel_private_handler[] =
NULL, /* SIOCIWFIRSTPRIV */ NULL, /* SIOCIWFIRSTPRIV */
}; };
typedef struct atmel_priv_ioctl { struct atmel_priv_ioctl {
char id[32]; char id[32];
unsigned char __user *data; unsigned char __user *data;
unsigned short len; unsigned short len;
} atmel_priv_ioctl; };
#define ATMELFWL SIOCIWFIRSTPRIV #define ATMELFWL SIOCIWFIRSTPRIV
#define ATMELIDIFC ATMELFWL + 1 #define ATMELIDIFC ATMELFWL + 1
...@@ -2615,7 +2615,7 @@ static const struct iw_priv_args atmel_private_args[] = { ...@@ -2615,7 +2615,7 @@ static const struct iw_priv_args atmel_private_args[] = {
.cmd = ATMELFWL, .cmd = ATMELFWL,
.set_args = IW_PRIV_TYPE_BYTE .set_args = IW_PRIV_TYPE_BYTE
| IW_PRIV_SIZE_FIXED | IW_PRIV_SIZE_FIXED
| sizeof (atmel_priv_ioctl), | sizeof(struct atmel_priv_ioctl),
.get_args = IW_PRIV_TYPE_NONE, .get_args = IW_PRIV_TYPE_NONE,
.name = "atmelfwl" .name = "atmelfwl"
}, { }, {
...@@ -2645,7 +2645,7 @@ static int atmel_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) ...@@ -2645,7 +2645,7 @@ static int atmel_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
{ {
int i, rc = 0; int i, rc = 0;
struct atmel_private *priv = netdev_priv(dev); struct atmel_private *priv = netdev_priv(dev);
atmel_priv_ioctl com; struct atmel_priv_ioctl com;
struct iwreq *wrq = (struct iwreq *) rq; struct iwreq *wrq = (struct iwreq *) rq;
unsigned char *new_firmware; unsigned char *new_firmware;
char domain[REGDOMAINSZ + 1]; char domain[REGDOMAINSZ + 1];
......
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