From: Sakari Ailus <sakari.ailus@iki.fi>
To: Jacek Anaszewski <j.anaszewski@samsung.com>
Cc: linux-leds@vger.kernel.org, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
kyungmin.park@samsung.com, pavel@ucw.cz, cooloney@gmail.com,
rpurdie@rpsys.net, s.nawrocki@samsung.com
Subject: Re: [PATCH/RFC v13 10/13] Documentation: leds: Add description of v4l2-flash sub-device
Date: Wed, 18 Mar 2015 14:39:57 +0200 [thread overview]
Message-ID: <20150318123957.GH11954@valkosipuli.retiisi.org.uk> (raw)
In-Reply-To: <1426175114-14876-11-git-send-email-j.anaszewski@samsung.com>
Hi Jacek,
On Thu, Mar 12, 2015 at 04:45:11PM +0100, 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 <j.anaszewski@samsung.com>
> Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
> Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
> Cc: Bryan Wu <cooloney@gmail.com>
> Cc: Richard Purdie <rpurdie@rpsys.net>
> ---
> 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 19bb673..8623413 100644
> --- a/Documentation/leds/leds-class-flash.txt
> +++ b/Documentation/leds/leds-class-flash.txt
> @@ -20,3 +20,16 @@ Following sysfs attributes are exposed for controlling flash LED devices:
> - max_flash_timeout
> - flash_strobe
> - flash_fault
> +
> +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 <media/v4l2-flash.h>).
> +
> +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
Over 80 characters per line.
With this fixed,
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> +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.
--
Kind regards,
Sakari Ailus
e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk
next prev parent reply other threads:[~2015-03-18 12:40 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-12 15:45 [PATCH/RFC v13 00/13] LED / flash API integration Jacek Anaszewski
2015-03-12 15:45 ` [PATCH/RFC v13 01/13] leds: flash: Fix the size of sysfs_groups array Jacek Anaszewski
2015-03-12 15:45 ` [PATCH/RFC v13 02/13] dt-binding: leds: Add common LED DT bindings macros Jacek Anaszewski
2015-03-18 1:33 ` Bryan Wu
2015-03-12 15:45 ` [PATCH/RFC v13 03/13] leds: Add support for max77693 mfd flash cell Jacek Anaszewski
2015-03-23 11:56 ` Lee Jones
2015-03-23 12:07 ` Lee Jones
2015-03-12 15:45 ` [PATCH/RFC v13 04/13] DT: Add documentation for the mfd Maxim max77693 Jacek Anaszewski
2015-03-23 12:07 ` Lee Jones
2015-03-23 14:22 ` Pavel Machek
2015-03-23 15:02 ` Lee Jones
2015-03-23 15:48 ` Pavel Machek
2015-03-23 15:59 ` Lee Jones
2015-03-23 18:28 ` Sylwester Nawrocki
2015-04-02 14:50 ` Pavel Machek
2015-04-02 19:33 ` Lee Jones
2015-03-12 15:45 ` [PATCH/RFC v13 05/13] leds: Add driver for AAT1290 current regulator Jacek Anaszewski
2015-03-12 15:45 ` [PATCH/RFC v13 06/13] of: Add Skyworks Solutions, Inc. vendor prefix Jacek Anaszewski
2015-03-12 15:45 ` [PATCH/RFC v13 07/13] DT: Add documentation for the Skyworks AAT1290 Jacek Anaszewski
2015-03-18 10:28 ` Jacek Anaszewski
2015-03-12 15:45 ` [PATCH/RFC v13 08/13] exynos4-is: Add support for v4l2-flash subdevs Jacek Anaszewski
2015-03-12 15:45 ` [PATCH/RFC v13 09/13] media: Add registration helpers for V4L2 flash sub-devices Jacek Anaszewski
2015-03-12 15:45 ` [PATCH/RFC v13 10/13] Documentation: leds: Add description of v4l2-flash sub-device Jacek Anaszewski
2015-03-18 12:39 ` Sakari Ailus [this message]
2015-03-18 14:36 ` Jacek Anaszewski
2015-03-12 15:45 ` [PATCH/RFC v13 11/13] DT: Add documentation for exynos4-is 'flashes' property Jacek Anaszewski
2015-03-12 15:45 ` [PATCH/RFC v13 12/13] leds: max77693: add support for V4L2 Flash sub-device Jacek Anaszewski
2015-03-12 15:45 ` [PATCH/RFC v13 13/13] leds: aat1290: " Jacek Anaszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150318123957.GH11954@valkosipuli.retiisi.org.uk \
--to=sakari.ailus@iki.fi \
--cc=cooloney@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=j.anaszewski@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rpurdie@rpsys.net \
--cc=s.nawrocki@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®