qcacmn: Fix incompatible function pointer assignment

Fix incompatible function pointer assignment.
Define a wrapper around mc timer callbacks to
make them compatible with standard scheduler
message callback function signatures.

Change-Id: I07829680d1758ccbd53e8b1fe10b0e30e100a2c6
CRs-Fixed: 3305719
This commit is contained in:
sandhu
2022-10-19 17:53:49 -07:00
committed by Madan Koyyalamudi
parent db19d5296d
commit 901120c066
4 changed files with 153 additions and 42 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -96,6 +97,36 @@ struct scheduler_msg {
#endif /* WLAN_SCHED_HISTORY_SIZE */
};
struct sched_qdf_mc_timer_cb_wrapper;
/**
* scheduler_qdf_mc_timer_init() - initialize and fill callback and data
* @timer_callback: callback to timer
* @data: data pointer
*
* Return: return pointer to struct sched_qdf_mc_timer_cb_wrapper
*/
struct sched_qdf_mc_timer_cb_wrapper *scheduler_qdf_mc_timer_init(
qdf_mc_timer_callback_t timer_callback,
void *data);
/**
* scheduler_qdf_mc_timer_callback_t_wrapper() - wrapper for mc timer callbacks
* @wrapper_ptr: wrapper ptr
*
* Return: return void ptr
*/
void *scheduler_qdf_mc_timer_deinit_return_data_ptr(
struct sched_qdf_mc_timer_cb_wrapper *wrapper_ptr);
/**
* scheduler_qdf_mc_timer_callback_t_wrapper() - wrapper for mc timer callbacks
* @msg: message pointer
*
* Return: None
*/
QDF_STATUS scheduler_qdf_mc_timer_callback_t_wrapper(struct scheduler_msg *msg);
/**
* sched_history_print() - print scheduler history
*