aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tvp5150.c
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@mindspring.com>2007-06-05 04:20:56 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-18 13:23:52 -0400
commit0c71bf1c3065e80cc3ab91293829169bdeda2c42 (patch)
treed38b375f6d8cb7cb5acc8eb80bb93539b6fb2909 /drivers/media/video/tvp5150.c
parente0099e9edabd855bf83d3f57b1843f0b06bfb19d (diff)
V4L/DVB (5739): Replace C code with calls to ARRAY_SIZE macro.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tvp5150.c')
-rw-r--r--drivers/media/video/tvp5150.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tvp5150.c b/drivers/media/video/tvp5150.c
index d5ec05f56adf..e2f1c972754b 100644
--- a/drivers/media/video/tvp5150.c
+++ b/drivers/media/video/tvp5150.c
@@ -1006,7 +1006,7 @@ static int tvp5150_command(struct i2c_client *c,
1006 { 1006 {
1007 struct v4l2_control *ctrl = arg; 1007 struct v4l2_control *ctrl = arg;
1008 u8 i, n; 1008 u8 i, n;
1009 n = sizeof(tvp5150_qctrl) / sizeof(tvp5150_qctrl[0]); 1009 n = ARRAY_SIZE(tvp5150_qctrl);
1010 for (i = 0; i < n; i++) 1010 for (i = 0; i < n; i++)
1011 if (ctrl->id == tvp5150_qctrl[i].id) { 1011 if (ctrl->id == tvp5150_qctrl[i].id) {
1012 if (ctrl->value < 1012 if (ctrl->value <