thermal: Fix incompatible-pointer-types 21/222021/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 9 Jan 2020 05:21:30 +0000 (14:21 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 9 Jan 2020 05:44:03 +0000 (14:44 +0900)
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>
src/pass/pass-thermal.c

index ff2ebae28bb88428ef2df969decd2dd375c445a6..095a4c1c983ec6b4d0dfb6c43b153f153e2bdf84 100644 (file)
@@ -130,8 +130,9 @@ static inline void *get_thermal_result(struct pass_resource *res)
        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;