[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2048338.SjS64CMeN7@percival>
Date: Fri, 19 Oct 2012 18:31:53 +0900
From: Alex Courbot <acourbot@...dia.com>
To: Tony Prisk <linux@...sktech.co.nz>
CC: Stephen Warren <swarren@...dia.com>,
Thierry Reding <thierry.reding@...onic-design.de>,
Simon Glass <sjg@...omium.org>,
Grant Likely <grant.likely@...retlab.ca>,
Rob Herring <rob.herring@...xeda.com>,
Mark Brown <broonie@...nsource.wolfsonmicro.com>,
Anton Vorontsov <cbou@...l.ru>,
David Woodhouse <dwmw2@...radead.org>,
Arnd Bergmann <arnd@...db.de>,
"linux-fbdev@...r.kernel.org" <linux-fbdev@...r.kernel.org>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
Leela Krishna Amudala <l.krishna@...sung.com>,
"devicetree-discuss@...ts.ozlabs.org"
<devicetree-discuss@...ts.ozlabs.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-tegra@...r.kernel.org" <linux-tegra@...r.kernel.org>
Subject: Re: [PATCH v7 2/3] pwm_backlight: use power sequences
On Friday 19 October 2012 17:20:36 Tony Prisk wrote:
> On Fri, 2012-10-19 at 18:06 +0900, Alexandre Courbot wrote:
> > +static void pwm_backlight_on(struct backlight_device *bl)
> > +{
> > + struct pwm_bl_data *pb = dev_get_drvdata(&bl->dev);
> > + int ret;
> > +
> > + if (pb->enabled)
> > + return;
> > +
> > + if (pb->power_on_seq) {
> > + ret = power_seq_run(pb->power_on_seq);
> > + if (ret < 0) {
> > + dev_err(&bl->dev, "cannot run power on
> > sequence\n");
> > + return;
> > + }
> > + } else {
> > + /* legacy framework */
> > + pwm_config(pb->pwm, 0, pb->period);
> > + pwm_disable(pb->pwm);
>
> Is this right? pwm_disable() in the backlight_on function?
Now everybody will notice that I never really tested the legacy interface. >_<
Thanks, this was totally wrong indeed.
Alex.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists