[media] em28xx: properly handle subdev controls
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Feb 2011 04:00:58 +0000 (01:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:32:04 +0000 (20:32 -0300)
commitfb8decfabdf841a199b297076ff9f890dee55e53
tree5d6c57486d1af3197db38a6bc9d203b49c654441
parent78e51566f0c56daa58f7bbe2591336b7d478c148
[media] em28xx: properly handle subdev controls

Subdev controls return codes are evil, as they return -EINVAL to mean
both unsupported and invalid arguments. Due to that, we need to use a
trick to identify what controls are supported by a subdev.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-video.c