[media] v4l2-ctrls: drivers should be able to ignore the READ_ONLY flag
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 7 Jun 2011 07:50:31 +0000 (04:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:17 +0000 (17:53 -0300)
commit7ebbc39fa0b469243b985e5e26755f1e6184213f
treebdb41825836c777d2e6c7f15572a5e553b68ff83
parent37cd3b73683f15f1b6313d0de476726aa0942a75
[media] v4l2-ctrls: drivers should be able to ignore the READ_ONLY flag

When applications try to set READ_ONLY controls an error should
be returned. However, when drivers do that it should be accepted.

Those controls could reflect some driver status which the application
can't change but the driver obviously has to be able to change it.

This is needed among others for future HDMI status controls.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ctrls.c