From: "Ville Syrjälä" <syrjala@sci.fi>
To: Olaf Hering <olaf@aepfle.de>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-fbdev-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] atyfb: remove dead code
Date: Sun, 26 Aug 2007 18:36:18 +0300 [thread overview]
Message-ID: <20070826153618.GB6003@sci.fi> (raw)
In-Reply-To: <20070826091237.GA17667@aepfle.de>
On Sun, Aug 26, 2007 at 11:12:37AM +0200, Olaf Hering wrote:
> Remove dead code.
>
> Signed-off-by: Olaf Hering <olaf@aepfle.de>
>
> ---
> drivers/video/aty/atyfb_base.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> --- a/drivers/video/aty/atyfb_base.c
> +++ b/drivers/video/aty/atyfb_base.c
> @@ -2767,8 +2767,7 @@ static int atyfb_blank(int blank, struct
> if (par->lock_blank || par->asleep)
> return 0;
>
> -#ifdef CONFIG_FB_ATY_BACKLIGHT
> -#elif defined(CONFIG_FB_ATY_GENERIC_LCD)
> +#ifdef CONFIG_FB_ATY_GENERIC_LCD
> if (par->lcd_table && blank > FB_BLANK_NORMAL &&
> (aty_ld_lcd(LCD_GEN_CNTL, par) & LCD_ON)) {
> u32 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
This will change the behavior of the code. I basically agree with the
change because the current code will not control the backlight when the
kernel is built with CONFIG_FB_ATY_BACKLIGHT but the system doesn't
support the backlight interface (ie. non-pmac system). However someone
should check that it doesn't cause problems for pmac users.
--
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
next parent reply other threads:[~2007-08-26 15:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070826091237.GA17667@aepfle.de>
2007-08-26 15:36 ` Ville Syrjälä [this message]
2008-06-04 9:14 [PATCH] fbdev: width and height are unsigned Ville Syrjala
2008-06-04 9:14 ` [PATCH] fbdev: xoffset, yoffset and yres " Ville Syrjala
2008-06-04 9:14 ` [PATCH] atyfb: Remove dead code Ville Syrjala
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=20070826153618.GB6003@sci.fi \
--to=syrjala@sci.fi \
--cc=akpm@linux-foundation.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=olaf@aepfle.de \
/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;
as well as URLs for NNTP newsgroup(s).