media: v4l2-flash: Flash ops aren't mandatory
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 8 Jun 2017 11:19:49 +0000 (07:19 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 26 Jul 2017 12:41:07 +0000 (08:41 -0400)
commit52740975f3751c02ece88b2ee2e183aff7503cdf
tree3b07f6389591a73c9bd172a723356d45dd734ff0
parent85f7ff9702bcc5e899bd0bf6b6e383ecb2ac436a
media: v4l2-flash: Flash ops aren't mandatory

None of the flash operations are mandatory and therefore there should be
no need for the flash ops structure either. Accept NULL.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Reviewed-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/v4l2-flash-led-class.c