After the commit
6e9640753a86 ("thermal: Support dbus activation
for thermal f/w"), function pointer for register_notifier() and
unregister_notifier() type is incompatible. Fix the warning by
casting inside the function.
Change-Id: Iebc590cc1d3d9a7adaca1a896f6313a225ddb6ca
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
return pass_resmon_get_result(res, RESMON_SRC_THERMAL);
}
-static int thermal_get_scenario(void **scenario, void *user_data)
+static int thermal_get_scenario(void *data, void *user_data)
{
+ void **scenario = data;
struct pass_resource *res = user_data;
struct resmon_result_src_thermal *thermal_result;
struct pass_thermal *thermal;