battery: Add Source property to Battery API
authorSonny Sasaka <sonnysasaka@chromium.org>
Mon, 30 Nov 2020 21:55:58 +0000 (13:55 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:34 +0000 (19:08 +0530)
commit5e25d3d94fcd4fd9265b1192dfd48670c2d5dbd3
treead558671217fdc7d6864183f1bb36d7bb4d952b2
parent131bf2a8cfc1568f48dfb2aa7720be58d84b5daf
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>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/battery/battery.c
src/battery.c
src/battery.h