Messages in this thread | | | Date | Wed, 23 Jan 2008 14:06:10 -0800 | From | Andrew Morton <> | Subject | Re: [PATCH] atmel_lcdfb: backlight control |
| |
> On Fri, 18 Jan 2008 15:44:35 +0100 Nicolas Ferre <nicolas.ferre@atmel.com> wrote: > From: David Brownell <dbrownell@users.sourceforge.net> > > 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.
| |