From 4143c81945126d4f1839a1047aa96a75f1e4c690 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Mon, 6 May 2019 22:42:01 -0700 Subject: binding: bluetooth: use BLUEZ_AT_DEVICE for call_work_create() Use the BLUEZ_AT_DEVICE macro instead of explicit string references. Bug-AGL: SPEC-2361 Change-Id: I2e892a7b6e2d838765cfa12dadd970e34c2f5d86 Signed-off-by: Matt Ranostay --- binding/bluetooth-api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'binding') diff --git a/binding/bluetooth-api.c b/binding/bluetooth-api.c index f594cca..48bc460 100644 --- a/binding/bluetooth-api.c +++ b/binding/bluetooth-api.c @@ -985,7 +985,7 @@ static void bluetooth_connect_device(afb_req_t request) /* optional, connect single profile */ uuid = afb_req_value(request, "uuid"); - cw = call_work_create(ns, "device", device, + cw = call_work_create(ns, BLUEZ_AT_DEVICE, device, "connect_service", "Connect", &error); if (!cw) { afb_req_fail_f(request, "failed", "can't queue work %s", @@ -1099,7 +1099,7 @@ static void bluetooth_pair_device(afb_req_t request) return; } - cw = call_work_create(ns, "device", device, + cw = call_work_create(ns, BLUEZ_AT_DEVICE, device, "pair_device", "Pair", &error); if (!cw) { afb_req_fail_f(request, "failed", "can't queue work %s", -- cgit 1.2.3-korg