diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-02-21 16:47:24 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:54 -0400 |
commit | 10afbef15e7bba5e1008f583852077743d28c395 (patch) | |
tree | 73dbfe2a3ccde6ef75c3403fb189274247740003 /drivers/media/video/tvp514x.c | |
parent | 1df795370c1392a026c63816368108187aec2ec1 (diff) |
V4L/DVB (10698): v4l2-common: remove v4l2_ctrl_query_fill_std
The v4l2_ctrl_query_fill_std() function wasn't one the best idea I ever had.
It doesn't add anything valuable that cannot be expressed equally well with
v4l2_ctrl_query_fill and only adds overhead.
Replace it with v4l2_ctrl_query_fill() everywhere it is used and remove it
from v4l2_common.c.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tvp514x.c')
-rw-r--r-- | drivers/media/video/tvp514x.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/tvp514x.c b/drivers/media/video/tvp514x.c index f0b2b8ed2fe4..4262e60b8116 100644 --- a/drivers/media/video/tvp514x.c +++ b/drivers/media/video/tvp514x.c | |||
@@ -725,10 +725,9 @@ ioctl_queryctrl(struct v4l2_int_device *s, struct v4l2_queryctrl *qctrl) | |||
725 | 725 | ||
726 | switch (qctrl->id) { | 726 | switch (qctrl->id) { |
727 | case V4L2_CID_BRIGHTNESS: | 727 | case V4L2_CID_BRIGHTNESS: |
728 | /* Brightness supported is same as standard one (0-255), | 728 | /* Brightness supported is (0-255), |
729 | * so make use of standard API provided. | ||
730 | */ | 729 | */ |
731 | err = v4l2_ctrl_query_fill_std(qctrl); | 730 | err = v4l2_ctrl_query_fill(qctrl, 0, 255, 1, 128); |
732 | break; | 731 | break; |
733 | case V4L2_CID_CONTRAST: | 732 | case V4L2_CID_CONTRAST: |
734 | case V4L2_CID_SATURATION: | 733 | case V4L2_CID_SATURATION: |