display: misc: Relocate battery_health_changed() to reduce plugin duplication 68/292468/11
authorYunhee Seo <yuni.seo@samsung.com>
Thu, 4 May 2023 05:36:50 +0000 (14:36 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Thu, 25 May 2023 01:54:07 +0000 (10:54 +0900)
commit222aa41f0b81e27893a78e331bfa3819e66de9d3
treec40e558e4e951f9ece70e56bb24d6df3bc7f928b
parent12847155a97449e084f6142e83f6fc36b9a4ec21
display: misc: Relocate battery_health_changed() to reduce plugin duplication

Remove and redefine battery_health_changed() in plugins/display/core.c
-> This function sets battery/dimstay flag and it is called from battery module.

This function is added to below display-misc.
void display_misc_register_battery_health_notifier(void)
void display_misc_unregister_battery_health_notifier(void)
-> register/unregister notifier is added for above notifier callback.

During display plugins refactoriung, this function will be relocated.

Change-Id: Ib48187458ebfdf0e279c5ea373f401260eb1e597
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/display/display-misc.c
src/display/display-misc.h
src/display/display.c