The last set-value parameter, data4, receives address to the user_data,
which is type of 'const void *'.
Change-Id: I6eaf48357b8eb5c4bfc551832b3c35aff2b2aef7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
int reason;
const void *user_data;
- if (!data1 || !data2 || !data3)
+ if (!data1 || !data2 || !data3 || !data4)
return -EINVAL;
curr = *(uint64_t *) data1;
next = *(uint64_t *) data2;
reason = *(int *) data3;
- user_data = data4;
+ user_data = *(const void **) data4;
power_request_change_state_strict(curr, next, reason, user_data);