RE: [PATCH 1/2 v2] ARM: OMAP: board-4430sdp: Provide regulator to pwm-backlight

2013-03-13 Thread Andrew Chew
+/* Dummy regulator for pwm-backlight driver */ static struct +regulator_consumer_supply backlight_supply = + REGULATOR_SUPPLY(enable, NULL); 'enable' is just too generic, the device name should be also provided: REGULATOR_SUPPLY(enable, pwm-backlight); You're right. I don't

RE: [PATCH 2/2 v2] pwm_bl: Add mandatory backlight enable regulator

2013-03-13 Thread Andrew Chew
+static void pwm_backlight_enable(struct backlight_device *bl) { + struct pwm_bl_data *pb = dev_get_drvdata(bl-dev); + + /* Bail if we are already enabled. */ + if (pb-enabled) + return; + + pwm_enable(pb-pwm); + + if (regulator_enable(pb-enable_supply) !=

RE: [PATCH 1/2 v2] ARM: OMAP: board-4430sdp: Provide regulator to pwm-backlight

2013-03-13 Thread Andrew Chew
From: Thierry Reding [mailto:thierry.red...@avionic-design.de] Sent: Wednesday, March 13, 2013 1:59 PM To: Andrew Chew Cc: Peter Ujfalusi; Alex Courbot; linux-omap@vger.kernel.org Subject: Re: [PATCH 1/2 v2] ARM: OMAP: board-4430sdp: Provide regulator to pwm-backlight * PGP Signed

RE: [PATCH 2/2 v2] pwm_bl: Add mandatory backlight enable regulator

2013-03-13 Thread Andrew Chew
On Wed, Mar 13, 2013 at 02:10:16PM -0700, Andrew Chew wrote: +static void pwm_backlight_enable(struct backlight_device *bl) { + struct pwm_bl_data *pb = dev_get_drvdata(bl-dev); + + /* Bail if we are already enabled. */ + if (pb-enabled

[PATCH V3 1/2] ARM: OMAP: board-4430sdp: Provide regulator to pwm-backlight

2013-03-13 Thread Andrew Chew
The pwm-backlight driver now takes a mandatory regulator that is gotten during driver probe. Initialize a dummy regulator to satisfy this requirement. Signed-off-by: Andrew Chew ac...@nvidia.com --- Changed the device name of the backlight regulator supply to pwm-backlight, per Peter's comment

[PATCH V3 2/2] pwm_bl: Add mandatory backlight enable regulator

2013-03-13 Thread Andrew Chew
, then a fixed regulator can be instantiated to control the GPIO. The backlight enable regulator can be specified in the device tree node for the backlight, or can be done with legacy board setup code in the usual way. Signed-off-by: Andrew Chew ac...@nvidia.com Reviewed-by: Alexandre Courbot acour

RE: [PATCH 1/1] ARM: OMAP: board-4430sdp: Provide regulator to pwm-backlight

2013-03-12 Thread Andrew Chew
From: Thierry Reding [mailto:thierry.red...@avionic-design.de] Sent: Tuesday, March 12, 2013 12:01 AM To: Andrew Chew Cc: peter.ujfal...@ti.com; Alex Courbot; linux-omap@vger.kernel.org Subject: Re: [PATCH 1/1] ARM: OMAP: board-4430sdp: Provide regulator to pwm-backlight * PGP Signed

RE: [PATCH 1/1] ARM: OMAP: board-4430sdp: Provide regulator to pwm-backlight

2013-03-12 Thread Andrew Chew
On 03/12/2013 02:54 AM, Andrew Chew wrote: The pwm-backlight driver now takes a mandatory regulator that is gotten during driver probe. Initialize a dummy regulator to satisfy this requirement. Can you point me to the commit which makes a regulator mandatory for pwm-backlight? Why

[PATCH 0/2 v2] Add mandatory regulator for all users of pwm-backlight.

2013-03-12 Thread Andrew Chew
been patched, this series can be applied in order to maintain bisectability. Andrew Chew (2): ARM: OMAP: board-4430sdp: Provide regulator to pwm-backlight pwm_bl: Add mandatory backlight enable regulator .../bindings/video/backlight/pwm-backlight.txt | 14 + arch/arm/mach-omap2

[PATCH 1/2 v2] ARM: OMAP: board-4430sdp: Provide regulator to pwm-backlight

2013-03-12 Thread Andrew Chew
The pwm-backlight driver now takes a mandatory regulator that is gotten during driver probe. Initialize a dummy regulator to satisfy this requirement. Signed-off-by: Andrew Chew ac...@nvidia.com --- arch/arm/mach-omap2/board-4430sdp.c |5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 2/2 v2] pwm_bl: Add mandatory backlight enable regulator

2013-03-12 Thread Andrew Chew
, then a fixed regulator can be instantiated to control the GPIO. The backlight enable regulator can be specified in the device tree node for the backlight, or can be done with legacy board setup code in the usual way. Signed-off-by: Andrew Chew ac...@nvidia.com Reviewed-by: Alexandre Courbot acour

[PATCH 1/1] ARM: OMAP: board-4430sdp: Provide regulator to pwm-backlight

2013-03-11 Thread Andrew Chew
The pwm-backlight driver now takes a mandatory regulator that is gotten during driver probe. Initialize a dummy regulator to satisfy this requirement. Signed-off-by: Andrew Chew ac...@nvidia.com --- This patch, along with many more soon to follow, attempts to satisfy the new mandatory regulator