summaryrefslogtreecommitdiffstats
path: root/binding/hvac-demo-binding.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-10-08 15:53:17 +0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-10-08 16:29:45 +0800
commit2e5ffd3edc44efc5e3726a3d81ce4144b708afdd (patch)
treea7fd56005297ebd33e515aa4340b61213cc576b8 /binding/hvac-demo-binding.c
parent8a51c25372fea007a6044fa9db64467ce366737b (diff)
binding: hvac: clean up verb definitions
Remove overly verbose field definitions, and removed explicit v2 references. Bug-AGL: SPEC-1757 Change-Id: I79b51ff9ab6a81b7646e91bb2842db3d84a10022 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/hvac-demo-binding.c')
-rw-r--r--binding/hvac-demo-binding.c29
1 files changed, 8 insertions, 21 deletions
diff --git a/binding/hvac-demo-binding.c b/binding/hvac-demo-binding.c
index ec09472..7b472bc 100644
--- a/binding/hvac-demo-binding.c
+++ b/binding/hvac-demo-binding.c
@@ -730,60 +730,47 @@ static const struct afb_verb_v2 _afb_verbs_v2_hvac[]= {
{
.verb = "get_temp_left_zone",
.callback = get_temp_left_zone,
- .auth = NULL,
.info = "Get the left zone temperature",
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_NONE,
},
{
.verb = "get_temp_right_zone",
.callback = get_temp_right_zone,
- .auth = NULL,
.info = "Get the right zone temperature",
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_NONE,
},
{
.verb = "get_fanspeed",
.callback = get_fanspeed,
- .auth = NULL,
.info = "Read fan speed",
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_NONE,
},
{
.verb = "get",
.callback = get,
- .auth = NULL,
.info = "Read all speed",
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_NONE,
},
{
.verb = "set",
.callback = set,
- .auth = NULL,
.info = "Set a HVAC component value",
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_NONE,
},
{
.verb = "temp_left_zone_led",
.callback = temp_left_zone_led,
- .auth = NULL,
.info = "Turn on LED on left temperature zone",
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_NONE,
},
{
.verb = "temp_right_zone_led",
.callback = temp_right_zone_led,
- .auth = NULL,
.info = "Turn on LED on left temperature zone",
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_NONE,
},
- {
- .verb = NULL,
- .callback = NULL,
- .auth = NULL,
- .info = NULL,
- .session = 0
- }
+ { }
};
const struct afb_binding_v2 afbBindingV2 = {