aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsynergydev <synergye@codefi.re>2013-10-28 17:04:12 -0700
committerMichael Bestas <mikeioannina@gmail.com>2014-08-26 03:27:00 +0300
commitb12595ea468892878fb68d6267e26d2f5d4bffd0 (patch)
tree616e923803245c22ffa929f8a747aede17f7f827
parentc34510e6a8eafd9166ca518aa8399c54a2a6eaee (diff)
camera: do not use GNU old-style field designators
Avoiding the use of GNU extensions improves portability Change-Id: I2fd8ea9eebba75185533c4efed6cd6f4feeb0917
-rw-r--r--camera/CameraWrapper.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/camera/CameraWrapper.cpp b/camera/CameraWrapper.cpp
index 2633eec..f8c785d 100644
--- a/camera/CameraWrapper.cpp
+++ b/camera/CameraWrapper.cpp
@@ -44,26 +44,26 @@ static int camera_get_number_of_cameras(void);
static int camera_get_camera_info(int camera_id, struct camera_info *info);
static struct hw_module_methods_t camera_module_methods = {
- open: camera_device_open
+ .open = camera_device_open
};
camera_module_t HAL_MODULE_INFO_SYM = {
- common: {
- tag: HARDWARE_MODULE_TAG,
- module_api_version: CAMERA_MODULE_API_VERSION_1_0,
- hal_api_version: HARDWARE_HAL_API_VERSION,
- id: CAMERA_HARDWARE_MODULE_ID,
- name: "Find7 Camera Wrapper",
- author: "The CyanogenMod Project",
- methods: &camera_module_methods,
- dso: NULL, /* remove compilation warnings */
- reserved: {0}, /* remove compilation warnings */
+ .common = {
+ .tag = HARDWARE_MODULE_TAG,
+ .module_api_version = CAMERA_MODULE_API_VERSION_1_0,
+ .hal_api_version = HARDWARE_HAL_API_VERSION,
+ .id = CAMERA_HARDWARE_MODULE_ID,
+ .name = "Find7 Camera Wrapper",
+ .author = "The CyanogenMod Project",
+ .methods = &camera_module_methods,
+ .dso = NULL, /* remove compilation warnings */
+ .reserved = {0}, /* remove compilation warnings */
},
- get_number_of_cameras: camera_get_number_of_cameras,
- get_camera_info: camera_get_camera_info,
- set_callbacks: NULL, /* remove compilation warnings */
- get_vendor_tag_ops: NULL, /* remove compilation warnings */
- reserved: {0}, /* remove compilation warnings */
+ .get_number_of_cameras = camera_get_number_of_cameras,
+ .get_camera_info = camera_get_camera_info,
+ .set_callbacks = NULL, /* remove compilation warnings */
+ .get_vendor_tag_ops = NULL, /* remove compilation warnings */
+ .reserved = {0}, /* remove compilation warnings */
};
typedef struct wrapper_camera_device {