staging: sbe-2t3e3: remove t3e3_resp_t typedef
authorKristina Martšenko <kristina.martsenko@gmail.com>
Mon, 3 Mar 2014 21:05:46 +0000 (23:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 21:32:48 +0000 (13:32 -0800)
Kernel coding style does not recommend using typedefs for structures, so
remove the t3e3_resp_t typedef.

Fix the following checkpatch warning:
drivers/staging/sbe-2t3e3/ctrl.h:123: WARNING: do not add new typedefs

Signed-off-by: Kristina Martšenko <kristina.martsenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sbe-2t3e3/2t3e3.h
drivers/staging/sbe-2t3e3/ctrl.c
drivers/staging/sbe-2t3e3/ctrl.h
drivers/staging/sbe-2t3e3/netdev.c

index 0f078e2..e7bf721 100644 (file)
@@ -760,8 +760,7 @@ void t3e3_init(struct channel *);
 void t3e3_if_up(struct channel *);
 void t3e3_if_down(struct channel *);
 int t3e3_if_start_xmit(struct sk_buff *skb, struct net_device *dev);
-void t3e3_if_config(struct channel *, u32, char *,
-                   t3e3_resp_t *, int *);
+void t3e3_if_config(struct channel *, u32, char *, struct t3e3_resp *, int *);
 void t3e3_set_frame_type(struct channel *, u32);
 u32 t3e3_eeprom_read_word(struct channel *, u32);
 void t3e3_read_card_serial_number(struct channel *);
index ef646c2..e0964ac 100644 (file)
@@ -287,7 +287,7 @@ static void t3e3_port_del_stats(struct channel *sc)
 }
 
 void t3e3_if_config(struct channel *sc, u32 cmd, char *set,
-                   t3e3_resp_t *ret, int *rlen)
+                   struct t3e3_resp *ret, int *rlen)
 {
        struct t3e3_param *param = (struct t3e3_param *)set;
        u32 *data = (u32 *)set;
index 5845aab..41f144d 100644 (file)
@@ -120,12 +120,12 @@ struct t3e3_stats {
 };
 
 
-typedef struct t3e3_resp {
+struct t3e3_resp {
        union {
                struct t3e3_param param;
                struct t3e3_stats stats;
                u32 data;
        } u;
-} t3e3_resp_t;
+};
 
 #endif /* CTRL_H */
index b1e257b..fe6c951 100644 (file)
@@ -26,7 +26,7 @@ static int t3e3_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
        struct channel *sc = dev_to_priv(dev);
        int cmd_2t3e3, len, rlen;
        struct t3e3_param param;
-       t3e3_resp_t  resp;
+       struct t3e3_resp resp;
        void __user *data = ifr->ifr_data + sizeof(cmd_2t3e3) + sizeof(len);
 
        if (cmd == SIOCWANDEV)