battery: Divide "update_ovp" plugin interface 61/291861/7
authorTaeminYeom <taemin.yeom@samsung.com>
Mon, 24 Apr 2023 07:09:49 +0000 (16:09 +0900)
committerTaeminYeom <taemin.yeom@samsung.com>
Mon, 8 May 2023 08:21:41 +0000 (17:21 +0900)
commit9cf1687fef7c97151235a453fbdf4ee4e7216609
tree8d1d9cfc1e0daf382abd82916ab172753c073fa5
parentdd0200ffc360d6738c5cef93d60a290030255389
battery: Divide "update_ovp" plugin interface

When there is a battery over voltage protection change, update_ovp is called.
But the parts of update_ovp can be applied in common devices,
so move some of the codes to the function "check_abnormal_status" in core.

Also, there was little difference policy between wearable and mobile profile,
in checking previous notification status. Unify them to wearable's policy.

Change-Id: I210f0c094f4d0b8c356eb21d59da6e49d5de2d47
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
plugins/mobile/battery/battery-notification.c
plugins/wearable/battery/battery-notification.c
src/battery/power-supply.c