summaryrefslogtreecommitdiffstats
path: root/power
diff options
context:
space:
mode:
authorZiyann <jaraidaniel@gmail.com>2014-10-07 21:34:45 +0200
committerZiyann <jaraidaniel@gmail.com>2014-11-14 08:56:51 +0100
commitb5882b05a17f800ecdd1732beba92d8173c079e8 (patch)
treeedf47030fd72ca5b243b4690e7f4acd1bf353af4 /power
parent05bb2c4d0bfb082fae27151e6fca544266c41d73 (diff)
downloaddevice_samsung_tuna-b5882b05a17f800ecdd1732beba92d8173c079e8.zip
device_samsung_tuna-b5882b05a17f800ecdd1732beba92d8173c079e8.tar.gz
device_samsung_tuna-b5882b05a17f800ecdd1732beba92d8173c079e8.tar.bz2
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
Diffstat (limited to 'power')
-rw-r--r--power/power_tuna.c30
1 files changed, 15 insertions, 15 deletions
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,
};