notify: resolve a name conflict

notify_data is a name of a structure, a field in a structure, a
static object and a local variable in several functions. Use a
different name to at least avoid conflicting static and local
variables.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2022-03-10 12:35:03 +01:00 committed by Liam Girdwood
parent 8a3968cfbf
commit 904e031b24
1 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ DECLARE_SOF_UUID("notifier", notifier_uuid, 0x1fb15a7a, 0x83cd, 0x4c2e,
DECLARE_TR_CTX(nt_tr, SOF_UUID(notifier_uuid), LOG_LEVEL_INFO); DECLARE_TR_CTX(nt_tr, SOF_UUID(notifier_uuid), LOG_LEVEL_INFO);
static SHARED_DATA struct notify_data notify_data[CONFIG_CORE_COUNT]; static SHARED_DATA struct notify_data notify_data_shared[CONFIG_CORE_COUNT];
struct callback_handle { struct callback_handle {
void *receiver; void *receiver;
@ -199,8 +199,8 @@ void init_system_notify(struct sof *sof)
list_init(&(*notify)->list[i]); list_init(&(*notify)->list[i]);
if (cpu_get_id() == PLATFORM_PRIMARY_CORE_ID) if (cpu_get_id() == PLATFORM_PRIMARY_CORE_ID)
sof->notify_data = platform_shared_get(notify_data, sof->notify_data = platform_shared_get(notify_data_shared,
sizeof(notify_data)); sizeof(notify_data_shared));
} }
void free_system_notify(void) void free_system_notify(void)