From b5882b05a17f800ecdd1732beba92d8173c079e8 Mon Sep 17 00:00:00 2001 From: Ziyann Date: Tue, 7 Oct 2014 21:34:45 +0200 Subject: tuna: PowerHAL: Change obsolete designated initializers syntax Designated initializers syntax which is used to initialize HAL_MODULE_INFO_SYM is obsolete since GCC 2.5: http://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html This patch changes syntax to usual one. Cherry-picked from http://omapzoom.org/?p=device/ti/blaze_tablet.git;a=commit;h=361e9eab2dd455588327612c31623396725fdb1a Change-Id: I7ed930bd6cf0f44f1503947c9abbc93a9ef99821 --- power/power_tuna.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'power') diff --git a/power/power_tuna.c b/power/power_tuna.c index bca0ed2..32ed3ff 100644 --- a/power/power_tuna.c +++ b/power/power_tuna.c @@ -136,23 +136,23 @@ static struct hw_module_methods_t power_module_methods = { }; struct tuna_power_module HAL_MODULE_INFO_SYM = { - base: { - common: { - tag: HARDWARE_MODULE_TAG, - module_api_version: POWER_MODULE_API_VERSION_0_2, - hal_api_version: HARDWARE_HAL_API_VERSION, - id: POWER_HARDWARE_MODULE_ID, - name: "Tuna Power HAL", - author: "The Android Open Source Project", - methods: &power_module_methods, + .base = { + .common = { + .tag = HARDWARE_MODULE_TAG, + .module_api_version = POWER_MODULE_API_VERSION_0_2, + .hal_api_version = HARDWARE_HAL_API_VERSION, + .id = POWER_HARDWARE_MODULE_ID, + .name = "Tuna Power HAL", + .author = "The Android Open Source Project", + .methods = &power_module_methods, }, - init: tuna_power_init, - setInteractive: tuna_power_set_interactive, - powerHint: tuna_power_hint, + .init = tuna_power_init, + .setInteractive = tuna_power_set_interactive, + .powerHint = tuna_power_hint, }, - lock: PTHREAD_MUTEX_INITIALIZER, - boostpulse_fd: -1, - boostpulse_warned: 0, + .lock = PTHREAD_MUTEX_INITIALIZER, + .boostpulse_fd = -1, + .boostpulse_warned = 0, }; -- cgit v1.1