diff options
| author | Arne Coucheron <arco68@gmail.com> | 2017-06-06 06:50:51 +0200 |
|---|---|---|
| committer | doc HD <doc.divxm@gmail.com> | 2017-06-10 16:56:46 +0300 |
| commit | 911a889e6befff1df90a8b103249bac11b87fa4a (patch) | |
| tree | 88b32f686ae7e83ce0cb6d475db1cd494386b86c | |
| parent | 21f17b8afb45fe1d62455a7849245dfb9ae7f4d7 (diff) | |
libligths: Specify device api version
Merely cosmetic. All versions below 2 are treated as version 1.
Change-Id: Icc1bdc7013497f2c1d1b2f7c2a34522cd50726c3
| -rw-r--r-- | liblights/lights.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/liblights/lights.c b/liblights/lights.c index 14a8bfa..6f53b26 100644 --- a/liblights/lights.c +++ b/liblights/lights.c @@ -378,7 +378,7 @@ static int open_lights(const struct hw_module_t* module, char const* name, memset(dev, 0, sizeof(*dev)); dev->common.tag = HARDWARE_DEVICE_TAG; - dev->common.version = 0; + dev->common.version = LIGHTS_DEVICE_API_VERSION_1_0; dev->common.module = (struct hw_module_t*)module; dev->common.close = (int (*)(struct hw_device_t*))close_lights; dev->set_light = set_light; |
