[media] v4l2-ioctl: WARN_ON if querycap didn't fill device_caps
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 7 Dec 2014 14:59:42 +0000 (11:59 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 17 Dec 2014 01:21:39 +0000 (23:21 -0200)
commit454a4e728dd56c8515b80381c14168099279e7fc
tree45f99d5b5726ed8f68b3e4554255714ff8e3abac
parentbb9ff078860f9d2f79d3a6bea3af9f48354ddb75
[media] v4l2-ioctl: WARN_ON if querycap didn't fill device_caps

This is easy to forget to do in drivers. While v4l2-compliance will check for it,
not everyone remembers to run it. So warn about it.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-ioctl.c