diff options
author | Kyle Repinski <repinski23@gmail.com> | 2015-11-17 12:53:22 -0600 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-01-17 22:41:00 +0100 |
commit | 66ee9365c5313d4a1bbb76561b3188566e44c025 (patch) | |
tree | 763f4211d876aeeb9a4c8e993f4228a67ca576e5 /liblight | |
parent | cb8261e6db2a6a13ea67b1848e1cab6b0e7091ec (diff) | |
download | device_samsung_tuna-66ee9365c5313d4a1bbb76561b3188566e44c025.zip device_samsung_tuna-66ee9365c5313d4a1bbb76561b3188566e44c025.tar.gz device_samsung_tuna-66ee9365c5313d4a1bbb76561b3188566e44c025.tar.bz2 |
Update some hw_device_t structs.
version_major and version_minor are deprecated.
Ensure we actually set the sensor api version.
Diffstat (limited to 'liblight')
-rw-r--r-- | liblight/lights.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/liblight/lights.c b/liblight/lights.c index 943fc2f..a64e6b5 100644 --- a/liblight/lights.c +++ b/liblight/lights.c @@ -265,13 +265,13 @@ static int open_lights(const struct hw_module_t *module, char const *name, } static struct hw_module_methods_t lights_module_methods = { - .open = open_lights, + .open = open_lights, }; struct hw_module_t HAL_MODULE_INFO_SYM = { .tag = HARDWARE_MODULE_TAG, - .version_major = 1, - .version_minor = 0, + .module_api_version = 1, + .hal_api_version = HARDWARE_HAL_API_VERSION, .id = LIGHTS_HARDWARE_MODULE_ID, .name = "lights Module", .author = "Google, Inc.", |