disp: msm: dsi: fix function type for dsi_display_clk_ctrl

dsi_display_clk_ctrl is assigned as a callback function to struct
sde_connector_ops::clk_ctrl. This changes changes the function type to
match the pointer type to avoid Control-Flow Integrity (CFI) failures.

Bug: 148470764
Change-Id: Id67a6971a597b047524cf6eac6c48c057e8f9e9a
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
Sami Tolvanen
2021-07-26 07:01:56 +00:00
committed by Nolen Johnson
parent 6f623b41ee
commit a23387f38d
2 changed files with 2 additions and 4 deletions

View File

@ -268,8 +268,7 @@ int dsi_display_link_clk_force_update_ctrl(void *handle);
*
* return: error code in case of failure or 0 for success.
*/
int dsi_display_clk_ctrl(void *handle,
enum dsi_clk_type clk_type, enum dsi_clk_state clk_state);
int dsi_display_clk_ctrl(void *handle, u32 clk_type, u32 clk_state);
/**
* dsi_clk_set_link_frequencies() - set frequencies for link clks

View File

@ -1291,8 +1291,7 @@ int dsi_display_link_clk_force_update_ctrl(void *handle)
return rc;
}
int dsi_display_clk_ctrl(void *handle,
enum dsi_clk_type clk_type, enum dsi_clk_state clk_state)
int dsi_display_clk_ctrl(void *handle, u32 clk_type, u32 clk_state)
{
int rc = 0;