battery: Remove old function pointer initializer code 96/314596/1
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 16 Jul 2024 04:47:40 +0000 (13:47 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 16 Jul 2024 04:48:48 +0000 (13:48 +0900)
As applying HAL ABI Versioning, old style function pointer initialization was removed.
However, this one line was omitted.
This is necessary for proper function pointer initialization.

Change-Id: I2942f0243b01a3f834bdedc3e2d2a06e696bdb87
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
hw/battery/battery.c

index 74876295573704df78f91486a6e8da0e6b491e8b..3686f78e72dc6576307277d281c17601d49a289b 100644 (file)
@@ -304,8 +304,6 @@ static int battery_init(void **data)
        device_battery_funcs->unregister_changed_event = battery_unregister_changed_event;
        device_battery_funcs->get_current_state = battery_get_current_state;
 
-       *data = (void *)device_battery_funcs;
-
        return 0;
 }