[PATCHv2 0/2] v4l2-ioctl: cropcap improvements

Hans Verkuil
2016-03-21T08:48:06Z

The first patch just simplifies the logic in the code and makes no
functional changes.

The second patch improves the vidioc_cropcap handling with respect to
obtaining the pixel aspect ratio.

It was a bit buggy which I realized after reviewing the new rcar-vin driver.

Regards,

Hans

Changes for v2:

- Added a sanity check for ops->vidioc_cropcap. While it shouldn't be NULL
(determine_valid_ioctls() guards against that), it is not obvious from the
code and since determine_valid_ioctls() is in a different source as well
there is too much chance for someone to mess this up. I feel happier with
a check in place.

Hans Verkuil (2):
v4l2-ioctl: simplify code
v4l2-ioctl: improve cropcap handling

drivers/media/v4l2-core/v4l2-ioctl.c | 78 ++++++++++++++++++++++++------------
1 file changed, 52 insertions(+), 26 deletions(-)

--
2.7.0