Re: [PATCH/RFC 4/8] media: Add registration helpers for V4L2 flash sub-devices

2014-03-31 Thread Sakari Ailus
Hi jacek, On Fri, Mar 28, 2014 at 04:30:49PM +0100, Jacek Anaszewski wrote: ... +static int v4l2_flash_set_intensity(struct v4l2_flash *flash, + unsigned int intensity) +{ + struct led_classdev *led_cdev = flash-led_cdev; + unsigned int fault; + int ret;

Re: [PATCH/RFC 4/8] media: Add registration helpers for V4L2 flash sub-devices

2014-03-28 Thread Jacek Anaszewski
Hi Sakari, On 03/24/2014 01:08 AM, Sakari Ailus wrote: Hi Jacek, [...] +static int v4l2_flash_set_intensity(struct v4l2_flash *flash, + unsigned int intensity) +{ + struct led_classdev *led_cdev = flash-led_cdev; + unsigned int fault; +

Re: [PATCH/RFC 4/8] media: Add registration helpers for V4L2 flash sub-devices

2014-03-23 Thread Sakari Ailus
Hi Jacek, On Thu, Mar 20, 2014 at 03:51:06PM +0100, Jacek Anaszewski wrote: This patch adds helper functions for registering/unregistering LED class flash devices as V4L2 subdevs. The functions should be called from the LED subsystem device driver. In case the Multimedia Framework support is

[PATCH/RFC 4/8] media: Add registration helpers for V4L2 flash sub-devices

2014-03-20 Thread Jacek Anaszewski
This patch adds helper functions for registering/unregistering LED class flash devices as V4L2 subdevs. The functions should be called from the LED subsystem device driver. In case the Multimedia Framework support is disabled in the kernel config the functions' empty versions will be used.