V4L/DVB (9436): Fix a typo in the previous commit
authorManu Abraham <abraham.manu@gmail.com>
Tue, 30 Oct 2007 23:05:59 +0000 (20:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:20 +0000 (17:53 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb0899_drv.c

index 0b1d944766382a42fe3ef49cef78cec2e4e3e1de..0b2a908f1a5f38363f3e71e7ea301293f0772551 100644 (file)
@@ -588,12 +588,12 @@ static int stb0899_postproc(struct stb0899_state *state, u8 ctl, int enable)
        /* post process event */
        if (postproc) {
                if (enable) {
-                       if (postproc[STB0899_POSTPROC_GPIO_POWER].level == STB0899_GPIOPULLUP)
+                       if (postproc[ctl].level == STB0899_GPIOPULLUP)
                                stb0899_write_reg(state, postproc[ctl].gpio, 0x02);
                        else
                                stb0899_write_reg(state, postproc[ctl].gpio, 0x82);
                } else {
-                       if (postproc[STB0899_POSTPROC_GPIO_POWER].level == STB0899_GPIOPULLUP)
+                       if (postproc[ctl].level == STB0899_GPIOPULLUP)
                                stb0899_write_reg(state, postproc[ctl].gpio, 0x82);
                        else
                                stb0899_write_reg(state, postproc[ctl].gpio, 0x02);