aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorSteven Toth <stoth@linuxtv.org>2008-10-16 19:31:56 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-17 16:28:08 -0400
commit5c310b1360f4be8a2cf944d9d65892839ed27d00 (patch)
tree19ab4e32fcb967d22bb970b05a1c98a10b4f0712 /drivers/media
parent376a841440967417a1e8d8f6b2672a27c43d262f (diff)
V4L/DVB (9263): mxl5005s: Checkpatch compliance
mxl5005s: Checkpatch compliance Signed-off-by: Steven Toth <stoth@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/common/tuners/mxl5005s.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/common/tuners/mxl5005s.c b/drivers/media/common/tuners/mxl5005s.c
index 227642b044ae..3844e1c00ffc 100644
--- a/drivers/media/common/tuners/mxl5005s.c
+++ b/drivers/media/common/tuners/mxl5005s.c
@@ -3481,7 +3481,9 @@ static u16 MXL_ControlWrite_Group(struct dvb_frontend *fe, u16 controlNum,
3481 } 3481 }
3482 ctrlVal = 0; 3482 ctrlVal = 0;
3483 for (k = 0; k < state->MXL_Ctrl[i].size; k++) 3483 for (k = 0; k < state->MXL_Ctrl[i].size; k++)
3484 ctrlVal += state->MXL_Ctrl[i].val[k] * (1 << k); 3484 ctrlVal += state->
3485 MXL_Ctrl[i].val[k] *
3486 (1 << k);
3485 } else 3487 } else
3486 return -1; 3488 return -1;
3487 } 3489 }
@@ -3581,7 +3583,7 @@ static void MXL_RegWriteBit(struct dvb_frontend *fe, u8 address, u8 bit,
3581 3583
3582static u32 MXL_Ceiling(u32 value, u32 resolution) 3584static u32 MXL_Ceiling(u32 value, u32 resolution)
3583{ 3585{
3584 return (value/resolution + (value % resolution > 0 ? 1 : 0)); 3586 return value / resolution + (value % resolution > 0 ? 1 : 0);
3585} 3587}
3586 3588
3587/* Retrieve the Initialzation Registers */ 3589/* Retrieve the Initialzation Registers */