Thread (4 messages) 4 messages, 3 authors, 2008-01-24

Re: [PATCH] atmel_lcdfb: backlight control

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2008-01-23 22:07:59
Also in: lkml

On Fri, 18 Jan 2008 15:44:35 +0100 Nicolas Ferre [off-list ref] wrote:
From: David Brownell <redacted>

On the sam9 EK boards, the LCD backlight is hooked up to a PWM output
from the LCD controller.  It's controlled by "contrast" registers though.

This patch lets boards declare that they have that kind of backlight
control.  The driver can then export this control, letting screenblank
and other operations actually take effect ... reducing the typically
substantial power drain from the backlight.

+static inline void init_backlight(struct atmel_lcdfb_info *sinfo)
+static inline void exit_contrast(struct atmel_lcdfb_info *sinfo)
+static inline void init_backlight(struct atmel_lcdfb_info *sinfo)
+static inline void exit_contrast(struct atmel_lcdfb_info *sinfo)
+static inline void init_contrast(struct atmel_lcdfb_info *sinfo)
You really don't need to add manual inlining.  The compiler takes
care of it.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help