diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-10-08 16:29:54 +0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-10-08 16:32:22 +0800 |
commit | 5841dde211e29b64ed4db902b7bb7606000f8a07 (patch) | |
tree | 44dd0d1d8c95507a1c1f19ae6c9509a331ac5c26 /binding | |
parent | 2e5ffd3edc44efc5e3726a3d81ce4144b708afdd (diff) |
binding: hvac: reduce const assignment warnings
Fields in struct led_paths are never directly changed and are assigned from
json_object_get_string() which returns const char *
Bug-AGL: SPEC-1757
Change-Id: If2a6ea592f30d95f16a62cb1b5a12f5212b12163
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding')
-rw-r--r-- | binding/hvac-demo-binding.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/binding/hvac-demo-binding.c b/binding/hvac-demo-binding.c index 7b472bc..d5683ff 100644 --- a/binding/hvac-demo-binding.c +++ b/binding/hvac-demo-binding.c @@ -135,9 +135,9 @@ struct can_handler { }; struct led_paths { - char *red; - char *green; - char *blue; + const char *red; + const char *green; + const char *blue; }led_paths_values = { .red = RED, .green = GREEN, |