mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-18 12:31:09 +00:00
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:
committed by
Nolen Johnson
parent
6f623b41ee
commit
a23387f38d
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user