aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorMichael Ira Krufky <mkrufky@linuxtv.org>2014-10-25 10:26:15 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-03-03 08:34:11 -0500
commit34a5a2f8115620f91de0bf442cacc9fb9d92874d (patch)
tree262eff32df26a4091b60a8a58cc7065e41ff0f20 /drivers/media/dvb-frontends
parent831a91120a9399a061f0cb0a4562ecf7c83b3926 (diff)
[media] lgdt3306a: more small whitespace cleanups
Just CodingStyle. No functional changes. Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/lgdt3306a.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/dvb-frontends/lgdt3306a.c b/drivers/media/dvb-frontends/lgdt3306a.c
index 9b7c36c109ca..98d74f049201 100644
--- a/drivers/media/dvb-frontends/lgdt3306a.c
+++ b/drivers/media/dvb-frontends/lgdt3306a.c
@@ -712,19 +712,19 @@ static int lgdt3306a_set_if(struct lgdt3306a_state *state,
712 default: 712 default:
713 lg_warn("IF=%d KHz is not supportted, 3250 assumed\n", if_freq_khz); 713 lg_warn("IF=%d KHz is not supportted, 3250 assumed\n", if_freq_khz);
714 /* fallthrough */ 714 /* fallthrough */
715 case 3250: /* 3.25Mhz */ 715 case 3250: /* 3.25Mhz */
716 nco1 = 0x34; 716 nco1 = 0x34;
717 nco2 = 0x00; 717 nco2 = 0x00;
718 break; 718 break;
719 case 3500: /* 3.50Mhz */ 719 case 3500: /* 3.50Mhz */
720 nco1 = 0x38; 720 nco1 = 0x38;
721 nco2 = 0x00; 721 nco2 = 0x00;
722 break; 722 break;
723 case 4000: /* 4.00Mhz */ 723 case 4000: /* 4.00Mhz */
724 nco1 = 0x40; 724 nco1 = 0x40;
725 nco2 = 0x00; 725 nco2 = 0x00;
726 break; 726 break;
727 case 5000: /* 5.00Mhz */ 727 case 5000: /* 5.00Mhz */
728 nco1 = 0x50; 728 nco1 = 0x50;
729 nco2 = 0x00; 729 nco2 = 0x00;
730 break; 730 break;
@@ -1361,8 +1361,8 @@ static u32 log10_x1000(u32 x)
1361 1361
1362static u32 lgdt3306a_calculate_snr_x100(struct lgdt3306a_state *state) 1362static u32 lgdt3306a_calculate_snr_x100(struct lgdt3306a_state *state)
1363{ 1363{
1364 u32 mse; /* Mean-Square Error */ 1364 u32 mse; /* Mean-Square Error */
1365 u32 pwr; /* Constelation power */ 1365 u32 pwr; /* Constelation power */
1366 u32 snr_x100; 1366 u32 snr_x100;
1367 1367
1368 mse = (read_reg(state, 0x00EC) << 8) | 1368 mse = (read_reg(state, 0x00EC) << 8) |
@@ -1510,7 +1510,7 @@ static int lgdt3306a_read_signal_strength(struct dvb_frontend *fe,
1510 * Calculate some sort of "strength" from SNR 1510 * Calculate some sort of "strength" from SNR
1511 */ 1511 */
1512 struct lgdt3306a_state *state = fe->demodulator_priv; 1512 struct lgdt3306a_state *state = fe->demodulator_priv;
1513 u16 snr; /* snr_x10 */ 1513 u16 snr; /* snr_x10 */
1514 int ret; 1514 int ret;
1515 u32 ref_snr; /* snr*100 */ 1515 u32 ref_snr; /* snr*100 */
1516 u32 str; 1516 u32 str;
@@ -1958,7 +1958,7 @@ static const short regtab[] = {
1958 0x30AA, /* MPEGLOCK */ 1958 0x30AA, /* MPEGLOCK */
1959}; 1959};
1960 1960
1961#define numDumpRegs (sizeof(regtab)/sizeof(regtab[0])) 1961#define numDumpRegs (sizeof(regtab)/sizeof(regtab[0]))
1962static u8 regval1[numDumpRegs] = {0, }; 1962static u8 regval1[numDumpRegs] = {0, };
1963static u8 regval2[numDumpRegs] = {0, }; 1963static u8 regval2[numDumpRegs] = {0, };
1964 1964