struct packing

Looking at all structs as to where we can pack them a little better, and
calling out the padding/stride at the end for future expansion.

Change-Id: I4a651092e950dd3d915af9fa0ee0d7d59803e58f
Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Dan Kalowsky 2016-01-28 12:53:34 -08:00 committed by Gerrit Code Review
commit 4743684e4f
11 changed files with 30 additions and 14 deletions

View file

@ -36,6 +36,7 @@
struct gpio_sch_config {
uint32_t regs;
uint8_t bits;
uint8_t stride[3];
};
#define GPIO_SCH_POLLING_STACK_SIZE 1024
@ -45,7 +46,6 @@ struct gpio_sch_data {
char __stack polling_stack[GPIO_SCH_POLLING_STACK_SIZE];
gpio_callback_t callback;
struct nano_timer poll_timer;
uint8_t poll;
struct {
uint32_t gtpe;
@ -54,6 +54,8 @@ struct gpio_sch_data {
uint32_t cb_enabled;
uint8_t port_cb;
uint8_t poll;
uint8_t stride[2];
};
#endif /* __GPIO_SCH_H__ */