Commit 70b654945bacd27622ef1c424f054ae04de597e0
Committed by
Mauro Carvalho Chehab
1 parent
d1c65ad6a4
Exists in
master
and in
20 other branches
[media] v4l2-dv-timings: rename v4l2_dv_valid_timings to v4l2_valid_dv_timings
All other functions follow the v4l2_<foo>_dv_timings pattern, do the same for this function. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Showing 4 changed files with 9 additions and 9 deletions Side-by-side Diff
drivers/media/i2c/ad9389b.c
... | ... | @@ -648,7 +648,7 @@ |
648 | 648 | v4l2_dbg(1, debug, sd, "%s:\n", __func__); |
649 | 649 | |
650 | 650 | /* quick sanity check */ |
651 | - if (!v4l2_dv_valid_timings(timings, &ad9389b_timings_cap)) | |
651 | + if (!v4l2_valid_dv_timings(timings, &ad9389b_timings_cap)) | |
652 | 652 | return -EINVAL; |
653 | 653 | |
654 | 654 | /* Fill the optional fields .standards and .flags in struct v4l2_dv_timings |
drivers/media/i2c/ths8200.c
... | ... | @@ -378,7 +378,7 @@ |
378 | 378 | |
379 | 379 | v4l2_dbg(1, debug, sd, "%s:\n", __func__); |
380 | 380 | |
381 | - if (!v4l2_dv_valid_timings(timings, &ths8200_timings_cap)) | |
381 | + if (!v4l2_valid_dv_timings(timings, &ths8200_timings_cap)) | |
382 | 382 | return -EINVAL; |
383 | 383 | |
384 | 384 | if (!v4l2_find_dv_timings_cap(timings, &ths8200_timings_cap, 10)) { |
drivers/media/v4l2-core/v4l2-dv-timings.c
... | ... | @@ -131,7 +131,7 @@ |
131 | 131 | }; |
132 | 132 | EXPORT_SYMBOL_GPL(v4l2_dv_timings_presets); |
133 | 133 | |
134 | -bool v4l2_dv_valid_timings(const struct v4l2_dv_timings *t, | |
134 | +bool v4l2_valid_dv_timings(const struct v4l2_dv_timings *t, | |
135 | 135 | const struct v4l2_dv_timings_cap *dvcap) |
136 | 136 | { |
137 | 137 | const struct v4l2_bt_timings *bt = &t->bt; |
... | ... | @@ -153,7 +153,7 @@ |
153 | 153 | return false; |
154 | 154 | return true; |
155 | 155 | } |
156 | -EXPORT_SYMBOL_GPL(v4l2_dv_valid_timings); | |
156 | +EXPORT_SYMBOL_GPL(v4l2_valid_dv_timings); | |
157 | 157 | |
158 | 158 | int v4l2_enum_dv_timings_cap(struct v4l2_enum_dv_timings *t, |
159 | 159 | const struct v4l2_dv_timings_cap *cap) |
... | ... | @@ -162,7 +162,7 @@ |
162 | 162 | |
163 | 163 | memset(t->reserved, 0, sizeof(t->reserved)); |
164 | 164 | for (i = idx = 0; v4l2_dv_timings_presets[i].bt.width; i++) { |
165 | - if (v4l2_dv_valid_timings(v4l2_dv_timings_presets + i, cap) && | |
165 | + if (v4l2_valid_dv_timings(v4l2_dv_timings_presets + i, cap) && | |
166 | 166 | idx++ == t->index) { |
167 | 167 | t->timings = v4l2_dv_timings_presets[i]; |
168 | 168 | return 0; |
169 | 169 | |
... | ... | @@ -178,11 +178,11 @@ |
178 | 178 | { |
179 | 179 | int i; |
180 | 180 | |
181 | - if (!v4l2_dv_valid_timings(t, cap)) | |
181 | + if (!v4l2_valid_dv_timings(t, cap)) | |
182 | 182 | return false; |
183 | 183 | |
184 | 184 | for (i = 0; i < v4l2_dv_timings_presets[i].bt.width; i++) { |
185 | - if (v4l2_dv_valid_timings(v4l2_dv_timings_presets + i, cap) && | |
185 | + if (v4l2_valid_dv_timings(v4l2_dv_timings_presets + i, cap) && | |
186 | 186 | v4l2_match_dv_timings(t, v4l2_dv_timings_presets + i, pclock_delta)) { |
187 | 187 | *t = v4l2_dv_timings_presets[i]; |
188 | 188 | return true; |
include/media/v4l2-dv-timings.h
... | ... | @@ -27,14 +27,14 @@ |
27 | 27 | */ |
28 | 28 | extern const struct v4l2_dv_timings v4l2_dv_timings_presets[]; |
29 | 29 | |
30 | -/** v4l2_dv_valid_timings() - are these timings valid? | |
30 | +/** v4l2_valid_dv_timings() - are these timings valid? | |
31 | 31 | * @t: the v4l2_dv_timings struct. |
32 | 32 | * @cap: the v4l2_dv_timings_cap capabilities. |
33 | 33 | * |
34 | 34 | * Returns true if the given dv_timings struct is supported by the |
35 | 35 | * hardware capabilities, returns false otherwise. |
36 | 36 | */ |
37 | -bool v4l2_dv_valid_timings(const struct v4l2_dv_timings *t, | |
37 | +bool v4l2_valid_dv_timings(const struct v4l2_dv_timings *t, | |
38 | 38 | const struct v4l2_dv_timings_cap *cap); |
39 | 39 | |
40 | 40 | /** v4l2_enum_dv_timings_cap() - Helper function to enumerate possible DV timings based on capabilities |