Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752115AbaLETuZ (ORCPT ); Fri, 5 Dec 2014 14:50:25 -0500 Received: from mail-ig0-f174.google.com ([209.85.213.174]:65324 "EHLO mail-ig0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbaLETuW (ORCPT ); Fri, 5 Dec 2014 14:50:22 -0500 MIME-Version: 1.0 In-Reply-To: <1417166286-27685-4-git-send-email-j.anaszewski@samsung.com> References: <1417166286-27685-1-git-send-email-j.anaszewski@samsung.com> <1417166286-27685-4-git-send-email-j.anaszewski@samsung.com> From: Bryan Wu Date: Fri, 5 Dec 2014 11:50:01 -0800 Message-ID: Subject: Re: [PATCH/RFC v8 03/14] Documentation: leds: Add description of v4l2-flash sub-device To: Jacek Anaszewski Cc: Linux LED Subsystem , "linux-media@vger.kernel.org" , lkml , Kyungmin Park , b.zolnierkie@samsung.com, Pavel Machek , "rpurdie@rpsys.net" , Sakari Ailus , Sylwester Nawrocki Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 28, 2014 at 1:17 AM, Jacek Anaszewski wrote: > This patch extends LED Flash class documention by > the description of interactions with v4l2-flash sub-device. > > Signed-off-by: Jacek Anaszewski > Acked-by: Kyungmin Park > Cc: Bryan Wu > Cc: Richard Purdie > --- This patch looks good to me. I will take it with other patches! Thanks, -Bryan > Documentation/leds/leds-class-flash.txt | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/Documentation/leds/leds-class-flash.txt b/Documentation/leds/leds-class-flash.txt > index d68565c..1a611ec 100644 > --- a/Documentation/leds/leds-class-flash.txt > +++ b/Documentation/leds/leds-class-flash.txt > @@ -46,3 +46,16 @@ Following sysfs attributes are exposed for controlling flash led devices: > until this flag is no longer set > * 0x100 - the temperature of the LED has exceeded its allowed > upper limit > + > +A LED subsystem driver can be controlled also from the level of VideoForLinux2 > +subsystem. In order to enable this CONFIG_V4L2_FLASH_LED_CLASS symbol has to > +be defined in the kernel config. The driver must call the v4l2_flash_init > +function to get registered in the V4L2 subsystem. On remove the > +v4l2_flash_release function has to be called (see ). > + > +After proper initialization a V4L2 Flash sub-device is created. The sub-device > +exposes a number of V4L2 controls, which allow for controlling a LED Flash class > +device with use of its internal kernel API. > +Opening the V4L2 Flash sub-device makes the LED subsystem sysfs interface > +unavailable. The interface is re-enabled after the V4L2 Flash sub-device > +is closed. > -- > 1.7.9.5 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/