V4L/DVB (9428): Fix: assignment of wrong values
authorMarko Schluessler <marco@lordzodiac.de>
Tue, 23 Oct 2007 22:56:18 +0000 (19:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:19 +0000 (17:53 -0200)
Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb0899_algo.c
drivers/media/dvb/frontends/stb0899_drv.c
drivers/media/dvb/frontends/stb6100.c

index ff3a3f83a6d3dbf79c4aa1156f43a62fda5af769..17f0311ead677eace35dd71fb1e1d7cf200332a8 100644 (file)
@@ -515,7 +515,7 @@ enum stb0899_status stb0899_dvbs_algo(struct stb0899_state *state)
        struct stb0899_config *config           = state->config;
 
        u8 bclc, reg;
-       u8 cfr[1];
+       u8 cfr[2];
        u8 eq_const[10];
        s32 clnI = 3;
        u32 bandwidth = 0;
index b76bb494e15ab18eb8bd79e45c23c9192863d1b8..9f5254aee39b6eddf29af8bff7f12daa145f6570 100644 (file)
@@ -611,7 +611,7 @@ static void stb0899_init_calc(struct stb0899_state *state)
 {
        struct stb0899_internal *internal = &state->internal;
        int master_clk;
-       u8 agc[1];
+       u8 agc[2];
        u8 agc1cn;
        u32 reg;
 
index c61ade64b984544f1842e5207f853651e68129b4..d19a3bfcc5fe93f7045bdb7d4bf417ec8f196127 100644 (file)
@@ -487,7 +487,7 @@ static int stb6100_set_state(struct dvb_frontend *fe,
        switch (param) {
        case DVBFE_TUNER_FREQUENCY:
                stb6100_set_frequency(fe, state->frequency);
-               state->frequency = tstate->frequency;
+               tstate->frequency = state->frequency;
                break;
        case DVBFE_TUNER_TUNERSTEP:
                break;
@@ -495,7 +495,7 @@ static int stb6100_set_state(struct dvb_frontend *fe,
                break;
        case DVBFE_TUNER_BANDWIDTH:
                stb6100_set_bandwidth(fe, state->bandwidth);
-               state->bandwidth = tstate->bandwidth;
+               tstate->bandwidth = state->bandwidth;
                break;
        case DVBFE_TUNER_REFCLOCK:
                break;