summaryrefslogtreecommitdiffstats
path: root/drivers/staging/sbe-2t3e3/ctrl.c
diff options
context:
space:
mode:
authorKristina Martšenko2014-03-03 22:05:44 +0100
committerGreg Kroah-Hartman2014-03-07 22:32:48 +0100
commit154d2b8cb6c3dcf72b42eb3e335ae8f501f3472e (patch)
tree81d4833b030f9f03f4f85fa5456bd422c0cd0688 /drivers/staging/sbe-2t3e3/ctrl.c
parentstaging: sbe-2t3e3: remove t3e3_tx_desc_t typedef (diff)
downloadkernel-qcow2-linux-154d2b8cb6c3dcf72b42eb3e335ae8f501f3472e.tar.gz
kernel-qcow2-linux-154d2b8cb6c3dcf72b42eb3e335ae8f501f3472e.tar.xz
kernel-qcow2-linux-154d2b8cb6c3dcf72b42eb3e335ae8f501f3472e.zip
staging: sbe-2t3e3: remove t3e3_param_t typedef
Kernel coding style does not recommend using typedefs for structures, so remove the t3e3_param_t typedef. Fix the following checkpatch warning: drivers/staging/sbe-2t3e3/ctrl.h:87: 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>
Diffstat (limited to 'drivers/staging/sbe-2t3e3/ctrl.c')
-rw-r--r--drivers/staging/sbe-2t3e3/ctrl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/sbe-2t3e3/ctrl.c b/drivers/staging/sbe-2t3e3/ctrl.c
index d280bcfd660a..a7335ae6cbd4 100644
--- a/drivers/staging/sbe-2t3e3/ctrl.c
+++ b/drivers/staging/sbe-2t3e3/ctrl.c
@@ -164,12 +164,12 @@ static void t3e3_reg_write(struct channel *sc, u32 *reg)
}
}
-static void t3e3_port_get(struct channel *sc, t3e3_param_t *param)
+static void t3e3_port_get(struct channel *sc, struct t3e3_param *param)
{
- memcpy(param, &(sc->p), sizeof(t3e3_param_t));
+ memcpy(param, &(sc->p), sizeof(struct t3e3_param));
}
-static void t3e3_port_set(struct channel *sc, t3e3_param_t *param)
+static void t3e3_port_set(struct channel *sc, struct t3e3_param *param)
{
if (param->frame_mode != 0xff)
cpld_set_frame_mode(sc, param->frame_mode);
@@ -290,7 +290,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)
{
- t3e3_param_t *param = (t3e3_param_t *)set;
+ struct t3e3_param *param = (struct t3e3_param *)set;
u32 *data = (u32 *)set;
/* turn off all interrupt */