summaryrefslogtreecommitdiffstats
path: root/drivers/staging/sbe-2t3e3/ctrl.c
diff options
context:
space:
mode:
authorKristina Martšenko2014-03-03 22:05:45 +0100
committerGreg Kroah-Hartman2014-03-07 22:32:48 +0100
commitc6a297bcb169caeaf459be57cff31e9b41a6b5a4 (patch)
tree34a73a84e072576012a1b2c002e1ac59e76a80e4 /drivers/staging/sbe-2t3e3/ctrl.c
parentstaging: sbe-2t3e3: remove t3e3_param_t typedef (diff)
downloadkernel-qcow2-linux-c6a297bcb169caeaf459be57cff31e9b41a6b5a4.tar.gz
kernel-qcow2-linux-c6a297bcb169caeaf459be57cff31e9b41a6b5a4.tar.xz
kernel-qcow2-linux-c6a297bcb169caeaf459be57cff31e9b41a6b5a4.zip
staging: sbe-2t3e3: remove t3e3_stats_t typedef
Kernel coding style does not recommend using typedefs for structures, so remove the t3e3_stats_t typedef. Fix the following checkpatch warning: drivers/staging/sbe-2t3e3/ctrl.h:107: 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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/sbe-2t3e3/ctrl.c b/drivers/staging/sbe-2t3e3/ctrl.c
index a7335ae6cbd4..ef646c2d76ca 100644
--- a/drivers/staging/sbe-2t3e3/ctrl.c
+++ b/drivers/staging/sbe-2t3e3/ctrl.c
@@ -216,8 +216,7 @@ static void t3e3_port_set(struct channel *sc, struct t3e3_param *param)
cpld_set_scrambler(sc, param->scrambler);
}
-static void t3e3_port_get_stats(struct channel *sc,
- t3e3_stats_t *stats)
+static void t3e3_port_get_stats(struct channel *sc, struct t3e3_stats *stats)
{
u32 result;
@@ -279,12 +278,12 @@ static void t3e3_port_get_stats(struct channel *sc,
result += exar7250_read(sc, SBE_2T3E3_FRAMER_REG_PMON_HOLDING_REGISTER);
sc->s.CP_BIT += result;
- memcpy(stats, &(sc->s), sizeof(t3e3_stats_t));
+ memcpy(stats, &(sc->s), sizeof(struct t3e3_stats));
}
static void t3e3_port_del_stats(struct channel *sc)
{
- memset(&(sc->s), 0, sizeof(t3e3_stats_t));
+ memset(&(sc->s), 0, sizeof(struct t3e3_stats));
}
void t3e3_if_config(struct channel *sc, u32 cmd, char *set,