summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunhee Seo <yuni.seo@samsung.com>2024-07-16 13:47:40 +0900
committerYunhee Seo <yuni.seo@samsung.com>2024-07-16 13:48:48 +0900
commitc8642611f1cdb43f22943b8b7bf8286d4df157e7 (patch)
tree451eb02cc132799f9b1c2c9e6c0b77586f781e59
parent5cefa06679651b8c6985387724ac2350808509a0 (diff)
downloaddevice-emulator-c8642611f1cdb43f22943b8b7bf8286d4df157e7.tar.gz
device-emulator-c8642611f1cdb43f22943b8b7bf8286d4df157e7.tar.bz2
device-emulator-c8642611f1cdb43f22943b8b7bf8286d4df157e7.zip
battery: Remove old function pointer initializer code
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>
-rw-r--r--hw/battery/battery.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/battery/battery.c b/hw/battery/battery.c
index 7487629..3686f78 100644
--- a/hw/battery/battery.c
+++ b/hw/battery/battery.c
@@ -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;
}