All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Andrew Morton <akpm00@gmail.com>
Cc: Axel Lin <axel.lin@gmail.com>,
	linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] backlight: Rename corgibl_limit_intensity to genericbl_limit_intensity
Date: Thu, 29 Sep 2011 21:22:01 +0100	[thread overview]
Message-ID: <1317327729.12332.121.camel@ted> (raw)
In-Reply-To: <20110929130049.a3b56e19.akpm00@gmail.com>

On Thu, 2011-09-29 at 13:00 -0700, Andrew Morton wrote:
> On Sun, 25 Sep 2011 10:12:33 +0800
> Axel Lin <axel.lin@gmail.com> wrote:
> 
> > The rename of corgibl_limit_intensity is missed in commit d00ba726
> > "backlight: Rename the corgi backlight driver to generic".
> > Let's fix it now.
> > 
> > Signed-off-by: Axel Lin <axel.lin@gmail.com>
> > Cc: Richard Purdie <rpurdie@rpsys.net>
> > ---
> >  drivers/video/backlight/generic_bl.c |    4 ++--
> >  1 files changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/video/backlight/generic_bl.c b/drivers/video/backlight/generic_bl.c
> > index 8c6befd..adb1914 100644
> > --- a/drivers/video/backlight/generic_bl.c
> > +++ b/drivers/video/backlight/generic_bl.c
> > @@ -56,7 +56,7 @@ static int genericbl_get_intensity(struct backlight_device *bd)
> >   * Called when the battery is low to limit the backlight intensity.
> >   * If limit==0 clear any limit, otherwise limit the intensity
> >   */
> > -void corgibl_limit_intensity(int limit)
> > +void genericbl_limit_intensity(int limit)
> >  {
> >  	struct backlight_device *bd = generic_backlight_device;
> >  
> > @@ -68,7 +68,7 @@ void corgibl_limit_intensity(int limit)
> >  	backlight_update_status(generic_backlight_device);
> >  	mutex_unlock(&bd->ops_lock);
> >  }
> > -EXPORT_SYMBOL(corgibl_limit_intensity);
> > +EXPORT_SYMBOL(genericbl_limit_intensity);
> >  
> 
> Why does corgibl_limit_intensity/genericbl_limit_intensity exist? 
> Nothing in the tree references it?

It sounds like someone has removed the sharpsl battery driver which did
use this. If this hook isn't used, low battery with high screen
backlight values will reset the device as the wiring isn't up to the
current draw.

Richard



  reply	other threads:[~2011-09-29 20:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-25  2:12 [PATCH] backlight: Rename corgibl_limit_intensity to genericbl_limit_intensity Axel Lin
2011-09-29 20:00 ` Andrew Morton
2011-09-29 20:22   ` Richard Purdie [this message]
2011-09-29 23:45     ` Axel Lin
2011-09-30 10:44       ` Richard Purdie

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=1317327729.12332.121.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=akpm00@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=axel.lin@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.