aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-08-15 07:28:47 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-08-24 03:26:51 -0400
commitef1ed8f5d366a035e532456bd747d34e5cb01ee5 (patch)
tree44dbe225248b063edbc20ecfd0534ea87a6b156c /drivers
parent11d034c8b60c3eebc2a12f5e99a200f55a786230 (diff)
[media] v4l2-dv-timings: rename v4l_match_dv_timings to v4l2_match_dv_timings
It's the only function in v4l2-dv-timings.c with the v4l prefix instead of v4l2. Make it consistent with the other functions. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/i2c/adv7604.c4
-rw-r--r--drivers/media/platform/s5p-tv/hdmi_drv.c2
-rw-r--r--drivers/media/usb/hdpvr/hdpvr-video.c2
-rw-r--r--drivers/media/v4l2-core/v4l2-dv-timings.c12
4 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c
index ba8602c06d6b..a1a9d1e805f0 100644
--- a/drivers/media/i2c/adv7604.c
+++ b/drivers/media/i2c/adv7604.c
@@ -763,7 +763,7 @@ static int find_and_set_predefined_video_timings(struct v4l2_subdev *sd,
763 int i; 763 int i;
764 764
765 for (i = 0; predef_vid_timings[i].timings.bt.width; i++) { 765 for (i = 0; predef_vid_timings[i].timings.bt.width; i++) {
766 if (!v4l_match_dv_timings(timings, &predef_vid_timings[i].timings, 766 if (!v4l2_match_dv_timings(timings, &predef_vid_timings[i].timings,
767 DIGITAL_INPUT ? 250000 : 1000000)) 767 DIGITAL_INPUT ? 250000 : 1000000))
768 continue; 768 continue;
769 io_write(sd, 0x00, predef_vid_timings[i].vid_std); /* video std */ 769 io_write(sd, 0x00, predef_vid_timings[i].vid_std); /* video std */
@@ -1183,7 +1183,7 @@ static void adv7604_fill_optional_dv_timings_fields(struct v4l2_subdev *sd,
1183 int i; 1183 int i;
1184 1184
1185 for (i = 0; adv7604_timings[i].bt.width; i++) { 1185 for (i = 0; adv7604_timings[i].bt.width; i++) {
1186 if (v4l_match_dv_timings(timings, &adv7604_timings[i], 1186 if (v4l2_match_dv_timings(timings, &adv7604_timings[i],
1187 DIGITAL_INPUT ? 250000 : 1000000)) { 1187 DIGITAL_INPUT ? 250000 : 1000000)) {
1188 *timings = adv7604_timings[i]; 1188 *timings = adv7604_timings[i];
1189 break; 1189 break;
diff --git a/drivers/media/platform/s5p-tv/hdmi_drv.c b/drivers/media/platform/s5p-tv/hdmi_drv.c
index 1b34c3629858..4ad9374913db 100644
--- a/drivers/media/platform/s5p-tv/hdmi_drv.c
+++ b/drivers/media/platform/s5p-tv/hdmi_drv.c
@@ -625,7 +625,7 @@ static int hdmi_s_dv_timings(struct v4l2_subdev *sd,
625 int i; 625 int i;
626 626
627 for (i = 0; i < ARRAY_SIZE(hdmi_timings); i++) 627 for (i = 0; i < ARRAY_SIZE(hdmi_timings); i++)
628 if (v4l_match_dv_timings(&hdmi_timings[i].dv_timings, 628 if (v4l2_match_dv_timings(&hdmi_timings[i].dv_timings,
629 timings, 0)) 629 timings, 0))
630 break; 630 break;
631 if (i == ARRAY_SIZE(hdmi_timings)) { 631 if (i == ARRAY_SIZE(hdmi_timings)) {
diff --git a/drivers/media/usb/hdpvr/hdpvr-video.c b/drivers/media/usb/hdpvr/hdpvr-video.c
index e68245a7f3a7..0500c4175d5f 100644
--- a/drivers/media/usb/hdpvr/hdpvr-video.c
+++ b/drivers/media/usb/hdpvr/hdpvr-video.c
@@ -642,7 +642,7 @@ static int vidioc_s_dv_timings(struct file *file, void *_fh,
642 if (dev->status != STATUS_IDLE) 642 if (dev->status != STATUS_IDLE)
643 return -EBUSY; 643 return -EBUSY;
644 for (i = 0; i < ARRAY_SIZE(hdpvr_dv_timings); i++) 644 for (i = 0; i < ARRAY_SIZE(hdpvr_dv_timings); i++)
645 if (v4l_match_dv_timings(timings, hdpvr_dv_timings + i, 0)) 645 if (v4l2_match_dv_timings(timings, hdpvr_dv_timings + i, 0))
646 break; 646 break;
647 if (i == ARRAY_SIZE(hdpvr_dv_timings)) 647 if (i == ARRAY_SIZE(hdpvr_dv_timings))
648 return -EINVAL; 648 return -EINVAL;
diff --git a/drivers/media/v4l2-core/v4l2-dv-timings.c b/drivers/media/v4l2-core/v4l2-dv-timings.c
index 917e58ce1f18..1a9d393307a1 100644
--- a/drivers/media/v4l2-core/v4l2-dv-timings.c
+++ b/drivers/media/v4l2-core/v4l2-dv-timings.c
@@ -181,7 +181,7 @@ bool v4l2_find_dv_timings_cap(struct v4l2_dv_timings *t,
181 181
182 for (i = 0; i < ARRAY_SIZE(timings); i++) { 182 for (i = 0; i < ARRAY_SIZE(timings); i++) {
183 if (v4l2_dv_valid_timings(timings + i, cap) && 183 if (v4l2_dv_valid_timings(timings + i, cap) &&
184 v4l_match_dv_timings(t, timings + i, pclock_delta)) { 184 v4l2_match_dv_timings(t, timings + i, pclock_delta)) {
185 *t = timings[i]; 185 *t = timings[i];
186 return true; 186 return true;
187 } 187 }
@@ -191,16 +191,16 @@ bool v4l2_find_dv_timings_cap(struct v4l2_dv_timings *t,
191EXPORT_SYMBOL_GPL(v4l2_find_dv_timings_cap); 191EXPORT_SYMBOL_GPL(v4l2_find_dv_timings_cap);
192 192
193/** 193/**
194 * v4l_match_dv_timings - check if two timings match 194 * v4l2_match_dv_timings - check if two timings match
195 * @t1 - compare this v4l2_dv_timings struct... 195 * @t1 - compare this v4l2_dv_timings struct...
196 * @t2 - with this struct. 196 * @t2 - with this struct.
197 * @pclock_delta - the allowed pixelclock deviation. 197 * @pclock_delta - the allowed pixelclock deviation.
198 * 198 *
199 * Compare t1 with t2 with a given margin of error for the pixelclock. 199 * Compare t1 with t2 with a given margin of error for the pixelclock.
200 */ 200 */
201bool v4l_match_dv_timings(const struct v4l2_dv_timings *t1, 201bool v4l2_match_dv_timings(const struct v4l2_dv_timings *t1,
202 const struct v4l2_dv_timings *t2, 202 const struct v4l2_dv_timings *t2,
203 unsigned pclock_delta) 203 unsigned pclock_delta)
204{ 204{
205 if (t1->type != t2->type || t1->type != V4L2_DV_BT_656_1120) 205 if (t1->type != t2->type || t1->type != V4L2_DV_BT_656_1120)
206 return false; 206 return false;
@@ -221,7 +221,7 @@ bool v4l_match_dv_timings(const struct v4l2_dv_timings *t1,
221 return true; 221 return true;
222 return false; 222 return false;
223} 223}
224EXPORT_SYMBOL_GPL(v4l_match_dv_timings); 224EXPORT_SYMBOL_GPL(v4l2_match_dv_timings);
225 225
226void v4l2_print_dv_timings(const char *dev_prefix, const char *prefix, 226void v4l2_print_dv_timings(const char *dev_prefix, const char *prefix,
227 const struct v4l2_dv_timings *t, bool detailed) 227 const struct v4l2_dv_timings *t, bool detailed)