Re: [PATCH v1 07/11] media: Add registration helpers for V4L2 flash sub-devices
From: Jacek Anaszewski <hidden>
Date: 2015-03-25 07:29:56
Also in:
linux-leds, linux-media
From: Jacek Anaszewski <hidden>
Date: 2015-03-25 07:29:56
Also in:
linux-leds, linux-media
Hi Sakari, On 03/25/2015 02:00 AM, Sakari Ailus wrote:
Hi Jacek, On Tue, Mar 24, 2015 at 09:35:05AM +0100, Jacek Anaszewski wrote: ...quoted
quoted
quoted
quoted
quoted
diff --git a/drivers/media/v4l2-core/v4l2-flash.c b/drivers/media/v4l2-core/v4l2-flash.c new file mode 100644 index 0000000..804c2e4 --- /dev/null +++ b/drivers/media/v4l2-core/v4l2-flash.c@@ -0,0 +1,607 @@ +/* + * V4L2 Flash LED sub-device registration helpers. + * + * Copyright (C) 2015 Samsung Electronics Co., Ltd + * Author: Jacek Anaszewski <j.anaszewski@samsung.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include <linux/led-class-flash.h> +#include <linux/module.h> +#include <linux/mutex.h> +#include <linux/of.h> +#include <linux/slab.h> +#include <linux/types.h> +#include <media/v4l2-flash.h> +#include "../../leds/leds.h"What do you need from leds.h? Shouldn't this be e.g. under include/linux instead?I need led_trigger_remove function.It's exported but defined in what is obviously a private header file to the framework. Could it be moved to include/linux/leds.h instead?
I guess so. I'll try to create a suitable patch. -- Best Regards, Jacek Anaszewski