diff options
author | Arne Coucheron <arco68@gmail.com> | 2016-08-29 00:53:27 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-09-11 08:34:29 -0700 |
commit | 66064b585ce1e1bfdbb730ff0f5ca39f550b3494 (patch) | |
tree | 5dad9498e40b23cb973d60fdb2bf62030352f0eb | |
parent | ac6eb73274f29e0eb3144a293c1c12c84d88c1b1 (diff) | |
download | hardware_qcom_display-cm-14.0-caf-8960.tar.gz hardware_qcom_display-cm-14.0-caf-8960.tar.bz2 hardware_qcom_display-cm-14.0-caf-8960.zip |
display: Do not use GNU old-style field designatorscm-14.0-caf-8960
Improve code portability
Change-Id: I3441c6ae2c10876877e79be579a24822d3f48882
(cherry picked from commit 602d41acc65d40122710ff4486824a69a3cbb6a6)
-rw-r--r-- | libcopybit/copybit.cpp | 20 | ||||
-rw-r--r-- | libcopybit/copybit_c2d.cpp | 4 | ||||
-rw-r--r-- | libgralloc/gralloc.cpp | 2 | ||||
-rw-r--r-- | libhwcomposer/hwc.cpp | 4 | ||||
-rw-r--r-- | libmemtrack/memtrack_msm.c | 20 |
5 files changed, 25 insertions, 25 deletions
diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp index 378f4622f..463d8eb7d 100644 --- a/libcopybit/copybit.cpp +++ b/libcopybit/copybit.cpp @@ -71,22 +71,22 @@ static int open_copybit(const struct hw_module_t* module, const char* name, struct hw_device_t** device); static struct hw_module_methods_t copybit_module_methods = { -open: open_copybit + .open = open_copybit, }; /* * The COPYBIT Module */ struct copybit_module_t HAL_MODULE_INFO_SYM = { -common: { -tag: HARDWARE_MODULE_TAG, - version_major: 1, - version_minor: 0, - id: COPYBIT_HARDWARE_MODULE_ID, - name: "QCT MSM7K COPYBIT Module", - author: "Google, Inc.", - methods: ©bit_module_methods - } + .common = { + .tag = HARDWARE_MODULE_TAG, + .version_major = 1, + .version_minor = 0, + .id = COPYBIT_HARDWARE_MODULE_ID, + .name = "QCT MSM7K COPYBIT Module", + .author = "Google, Inc.", + .methods = ©bit_module_methods, + }, }; /******************************************************************************/ diff --git a/libcopybit/copybit_c2d.cpp b/libcopybit/copybit_c2d.cpp index b7b5526a7..6c2e6bef7 100644 --- a/libcopybit/copybit_c2d.cpp +++ b/libcopybit/copybit_c2d.cpp @@ -195,7 +195,7 @@ static int open_copybit(const struct hw_module_t* module, const char* name, struct hw_device_t** device); static struct hw_module_methods_t copybit_module_methods = { - .open = open_copybit + .open = open_copybit, }; /* @@ -210,7 +210,7 @@ struct copybit_module_t HAL_MODULE_INFO_SYM = { .name = "QCT COPYBIT C2D 2.0 Module", .author = "Qualcomm", .methods = ©bit_module_methods - } + }, }; diff --git a/libgralloc/gralloc.cpp b/libgralloc/gralloc.cpp index cec65b3cc..479e546b0 100644 --- a/libgralloc/gralloc.cpp +++ b/libgralloc/gralloc.cpp @@ -63,7 +63,7 @@ extern int gralloc_perform(struct gralloc_module_t const* module, // HAL module methods static struct hw_module_methods_t gralloc_module_methods = { - .open = gralloc_device_open + .open = gralloc_device_open, }; // HAL module initialize diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp index 250c8f844..d36249f54 100644 --- a/libhwcomposer/hwc.cpp +++ b/libhwcomposer/hwc.cpp @@ -50,7 +50,7 @@ static int hwc_device_open(const struct hw_module_t* module, struct hw_device_t** device); static struct hw_module_methods_t hwc_module_methods = { - .open = hwc_device_open + .open = hwc_device_open, }; static void reset_panel(struct hwc_composer_device_1* dev); @@ -66,7 +66,7 @@ hwc_module_t HAL_MODULE_INFO_SYM = { .methods = &hwc_module_methods, .dso = 0, .reserved = {0}, - } + }, }; /* In case of non-hybrid WFD session, we are fooling SF by piggybacking on diff --git a/libmemtrack/memtrack_msm.c b/libmemtrack/memtrack_msm.c index ac93f44f8..82d324726 100644 --- a/libmemtrack/memtrack_msm.c +++ b/libmemtrack/memtrack_msm.c @@ -43,17 +43,17 @@ static struct hw_module_methods_t memtrack_module_methods = { }; struct memtrack_module HAL_MODULE_INFO_SYM = { - common: { - tag: HARDWARE_MODULE_TAG, - module_api_version: MEMTRACK_MODULE_API_VERSION_0_1, - hal_api_version: HARDWARE_HAL_API_VERSION, - id: MEMTRACK_HARDWARE_MODULE_ID, - name: "MSM Memory Tracker HAL", - author: "The Android Open Source Project", - methods: &memtrack_module_methods, + .common = { + .tag = HARDWARE_MODULE_TAG, + .module_api_version = MEMTRACK_MODULE_API_VERSION_0_1, + .hal_api_version = HARDWARE_HAL_API_VERSION, + .id = MEMTRACK_HARDWARE_MODULE_ID, + .name = "MSM Memory Tracker HAL", + .author = "The Android Open Source Project", + .methods = &memtrack_module_methods, }, - init: msm_memtrack_init, - getMemory: msm_memtrack_get_memory, + .init = msm_memtrack_init, + .getMemory = msm_memtrack_get_memory, }; |