This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] stv090x: Fix some compilation warnings
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Mon Dec 27 13:16:47 2010 -0200

A few typos at the driver are causing the following warnings:

drivers/media/dvb/frontends/stv090x.c: In function ‘stv090x_start_search’:
drivers/media/dvb/frontends/stv090x.c:1486:27: warning: comparison between 
‘enum stv090x_search’ and ‘enum stv090x_delsys’
drivers/media/dvb/frontends/stv090x.c:1487:24: warning: comparison between 
‘enum stv090x_search’ and ‘enum stv090x_delsys’
drivers/media/dvb/frontends/stv090x.c: In function ‘stv090x_optimize_track’:
drivers/media/dvb/frontends/stv090x.c:2943:2: warning: case value ‘4’ not in 
enumerated type ‘enum stv090x_delsys’

The first two are due to the lack of using the delsys types
        STV090x_DVBS1/STV090x_DSS
instead of
        STV090x_SEARCH_DVBS1/STV090x_SEARCH_DSS

The second one is due to the usage of STV090x_UNKNOWN (enum stv090x_modulation)
instead of STV090x_ERROR (enum stv090x_delsys).

Cc: Manu Abraham <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/dvb/frontends/stv090x.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=1cbee7f81d4ee3b962645407ffb15f2c2caf8bec

diff --git a/drivers/media/dvb/frontends/stv090x.c 
b/drivers/media/dvb/frontends/stv090x.c
index 425e7a4..4e0fc2c 100644
--- a/drivers/media/dvb/frontends/stv090x.c
+++ b/drivers/media/dvb/frontends/stv090x.c
@@ -1483,8 +1483,8 @@ static int stv090x_start_search(struct stv090x_state 
*state)
                if (STV090x_WRITE_DEMOD(state, FFECFG, 0x41) < 0)
                        goto err;
 
-               if ((state->search_mode == STV090x_DVBS1)       ||
-                       (state->search_mode == STV090x_DSS)     ||
+               if ((state->search_mode == STV090x_SEARCH_DVBS1)        ||
+                       (state->search_mode == STV090x_SEARCH_DSS)      ||
                        (state->search_mode == STV090x_SEARCH_AUTO)) {
 
                        if (STV090x_WRITE_DEMOD(state, VITSCALE, 0x82) < 0)
@@ -2940,7 +2940,7 @@ static int stv090x_optimize_track(struct stv090x_state 
*state)
                STV090x_WRITE_DEMOD(state, ERRCTRL1, 0x67); /* PER */
                break;
 
-       case STV090x_UNKNOWN:
+       case STV090x_ERROR:
        default:
                reg = STV090x_READ_DEMOD(state, DMDCFGMD);
                STV090x_SETFIELD_Px(reg, DVBS1_ENABLE_FIELD, 1);

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to