summaryrefslogtreecommitdiff
path: root/profiles/battery
diff options
context:
space:
mode:
authorSonny Sasaka <sonnysasaka@chromium.org>2020-11-30 13:55:58 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-11-30 16:16:28 -0800
commitbc6ee2073578d34835735fad48ca53c85a12702e (patch)
tree08a625ce1bb99c9eb1550a6df5e60f00078e7ca7 /profiles/battery
parentaa4a295744f887030b24340af4a5d985be119c1e (diff)
downloadbluez-bc6ee2073578d34835735fad48ca53c85a12702e.tar.gz
battery: Add Source property to Battery API
As Battery API will be generalized for other battery reporting protocols, the Source property is useful for diagnostics purposes. Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Diffstat (limited to 'profiles/battery')
-rw-r--r--profiles/battery/battery.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/profiles/battery/battery.c b/profiles/battery/battery.c
index e1a61dd0b..2478816a4 100644
--- a/profiles/battery/battery.c
+++ b/profiles/battery/battery.c
@@ -126,7 +126,8 @@ static void batt_io_ccc_written_cb(uint16_t att_ecode, void *user_data)
return;
}
- batt->battery = btd_battery_register(device_get_path(batt->device));
+ batt->battery = btd_battery_register(device_get_path(batt->device),
+ "GATT Battery Service");
if (!batt->battery) {
batt_reset(batt);