display: Remove battery plugin using from display plugin 56/294756/5
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 26 Jun 2023 05:38:31 +0000 (14:38 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 26 Jun 2023 05:38:31 +0000 (14:38 +0900)
commited8dbb88ee6647592a7a0d3951f242db30840543
treeeb25492890232b37a4be45d370a13d9788bebb9d
parent18d5343aea2e7279d1829173782e283d8ca4104b
display: Remove battery plugin using from display plugin

display plugin used get_charging_status() from initialization steps.
To use that function, display plugin loaded battery plugin.
However, that function is not exist in the battery plugin.
Thus, that function loading and accessing is useless work.

Also, loading battery plugin from the display plugin structure should be removed.

This function is added to display-misc.
- void display_misc_set_battery_charging_status_flag(void);
    -> It checks battery charging status and sets CHRGR_FLAG.
    -> This function should be relocated during battery plugin refactoring.

Change-Id: I943768785b654a660982a3017cafd0e41b7b94ed
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
plugins/iot-headed/display/core.c
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/wearable/display/core.c
src/battery/power-supply.h
src/display/display-misc.c
src/display/display-misc.h