diff options
author | Sonny Sasaka <sonnysasaka@chromium.org> | 2020-11-30 13:55:58 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-11-30 16:16:28 -0800 |
commit | bc6ee2073578d34835735fad48ca53c85a12702e (patch) | |
tree | 08a625ce1bb99c9eb1550a6df5e60f00078e7ca7 /profiles/battery | |
parent | aa4a295744f887030b24340af4a5d985be119c1e (diff) | |
download | bluez-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.c | 3 |
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); |