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:
parent
5c22802fa2
commit
86e64b77f2
1 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue