drivers: display: mb_display: Make display context more compact

Reorder the struct members for more compact layout. The current row
tracker tracks just values 0 to 2 so uint8_t is more than enough for
it.

Change-Id: I845c84aeb32d59ed0ebbd55d8b6cfda7ad19b75a
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2017-04-05 13:17:29 +03:00 committed by Anas Nashif
commit 86e64b77f2

View file

@ -37,14 +37,14 @@ struct mb_display {
struct k_timer timer; /* Rendering timer */
uint8_t scroll; /* Scroll shift */
/* The following variables track the currently shown image */
int cur; /* Currently rendered row */
uint8_t cur; /* Currently rendered row */
uint32_t row[3]; /* Content (columns) for each row */
int64_t expiry; /* When to stop showing current image */
int32_t duration; /* Duration for each shown image */
uint8_t scroll; /* Scroll shift */
const char *str; /* String to be shown */
/* Buffer for printed strings */