[media] v4l2-dev.c: add debug sysfs entry
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 22 Jun 2012 09:37:38 +0000 (06:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 20:25:31 +0000 (17:25 -0300)
commit80131fe06e0bdd7b429594493c1317ddede89a61
tree645af85d4922b22b7c457bcfcf1005b22e1439d6
parentf18d8e07b28e2950679edaa4edaa7ce410dd57fc
[media] v4l2-dev.c: add debug sysfs entry

Since this could theoretically change the debug value while in the middle
of v4l2-ioctl.c, we make a copy of vfd->debug to ensure consistent debug
behavior.

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