Re: [PATCH] atmel_lcdfb: suspend/resume support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Haavard Skinnemoen
Date: Thursday, March 13, 2008 - 8:24 am

On Mon, 10 Mar 2008 14:51:56 +0100
Nicolas Ferre <nicolas.ferre@atmel.com> wrote:


You're saving CONTRAST_VAL into a field called saved_lcdcon even though
it has nothing to do with LCDCON1 or LCDCON2...


...then you're altering CONTRAST_CTR...



...and later restoring the saved value of CONTRAST_VAL into CONTRAST_CTR.

Confused.


All of the registers involved are 32 bits wide, although the
interesting bits are all in the low byte. Do we really want to save
three bytes in the struct that badly?

Haavard
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] atmel_lcdfb: suspend/resume support, Nicolas Ferre, (Mon Mar 10, 6:51 am)
Re: [PATCH] atmel_lcdfb: suspend/resume support, Haavard Skinnemoen, (Thu Mar 13, 8:24 am)
Re: [PATCH] atmel_lcdfb: suspend/resume support, David Brownell, (Thu Mar 13, 12:19 pm)
Re: [PATCH] atmel_lcdfb: suspend/resume support, Haavard Skinnemoen, (Thu Mar 13, 1:00 pm)