mirror of https://github.com/thesofproject/sof.git
platform: (cosmetic) make all timer objects static
All platform.c files contain timer objects, and some also arch_timers and most platforms define those objects as global. Make them static. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
ac5ba211ba
commit
36cb5b32d8
|
@ -61,7 +61,7 @@ static const struct sof_ipc_fw_ready ready
|
|||
.flags = DEBUG_SET_FW_READY_FLAGS,
|
||||
};
|
||||
|
||||
SHARED_DATA struct timer timer = {
|
||||
static SHARED_DATA struct timer timer = {
|
||||
.id = TIMER0,
|
||||
.irq = IRQ_NUM_TIMER0,
|
||||
};
|
||||
|
|
|
@ -129,7 +129,7 @@ const struct ext_man_windows xsram_window
|
|||
},
|
||||
};
|
||||
|
||||
SHARED_DATA struct timer timer = {
|
||||
static SHARED_DATA struct timer timer = {
|
||||
.id = TIMER1, /* internal timer */
|
||||
.irq = IRQ_NUM_TIMER2,
|
||||
};
|
||||
|
|
|
@ -128,7 +128,7 @@ const struct ext_man_windows xsram_window
|
|||
}
|
||||
};
|
||||
|
||||
SHARED_DATA struct timer timer = {
|
||||
static SHARED_DATA struct timer timer = {
|
||||
.id = TIMER0, /* internal timer */
|
||||
.irq = IRQ_NUM_TIMER0,
|
||||
};
|
||||
|
|
|
@ -127,7 +127,7 @@ const struct ext_man_windows xsram_window
|
|||
},
|
||||
};
|
||||
|
||||
SHARED_DATA struct timer timer = {
|
||||
static SHARED_DATA struct timer timer = {
|
||||
.id = TIMER0, /* internal timer */
|
||||
.irq = IRQ_NUM_TIMER0,
|
||||
};
|
||||
|
|
|
@ -124,7 +124,7 @@ const struct ext_man_windows xsram_window
|
|||
}
|
||||
};
|
||||
|
||||
SHARED_DATA struct timer timer = {
|
||||
static SHARED_DATA struct timer timer = {
|
||||
.id = TIMER0, /* internal timer */
|
||||
.irq = IRQ_NUM_TIMER0,
|
||||
};
|
||||
|
|
|
@ -264,13 +264,13 @@ const int n_iomux = ARRAY_SIZE(iomux_data);
|
|||
|
||||
#endif
|
||||
|
||||
SHARED_DATA struct timer timer = {
|
||||
static SHARED_DATA struct timer timer = {
|
||||
.id = TIMER3, /* external timer */
|
||||
.irq = IRQ_EXT_TSTAMP0_LVL2,
|
||||
.irq_name = irq_name_level2,
|
||||
};
|
||||
|
||||
SHARED_DATA struct timer arch_timers[CONFIG_CORE_COUNT];
|
||||
static SHARED_DATA struct timer arch_timers[CONFIG_CORE_COUNT];
|
||||
|
||||
#if CONFIG_DW_SPI
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <sof/lib/mailbox.h>
|
||||
#include <sof/lib/dai.h>
|
||||
|
||||
SHARED_DATA struct timer timer = {};
|
||||
static SHARED_DATA struct timer timer = {};
|
||||
|
||||
static uint8_t mailbox[MAILBOX_DSPBOX_SIZE +
|
||||
MAILBOX_HOSTBOX_SIZE +
|
||||
|
|
Loading…
Reference in New Issue