media: v4l2-flash: Use led_classdev instead of led_classdev_flash for indicator
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 2 Jun 2017 09:30:02 +0000 (05:30 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 26 Jul 2017 12:40:28 +0000 (08:40 -0400)
commit85f7ff9702bcc5e899bd0bf6b6e383ecb2ac436a
treeed7326d7e0b0fc51caa38706b9ded4bc772ab310
parent06f8152027765e55da3afc23d87c5fdaf9e7a686
media: v4l2-flash: Use led_classdev instead of led_classdev_flash for indicator

The V4L2 flash class initialisation expects struct led_classdev_flash that
describes an indicator but only uses struct led_classdev which is a field
iled_cdev in the struct. Use struct iled_cdev only.

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