[media] v4l2-subdev.c: add 'which' checks for enum ops
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 4 Mar 2015 09:47:56 +0000 (01:47 -0800)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 23 Mar 2015 18:45:07 +0000 (11:45 -0700)
commit20058f90916b7ed5e986c399240f58d9af8892e0
tree0c6a491054d309d672d89d0a3f74e51dcfe19567
parente1c47e732cbb4211d15ae0c4465dc4ceefcaa398
[media] v4l2-subdev.c: add 'which' checks for enum ops

Return an error if an invalid 'which' valid is passed in.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Tested-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-subdev.c