From: Krzysztof Kozlowski Date: Sun, 24 Dec 2023 15:44:03 +0000 (+0100) Subject: media: s5p-mfc: constify fw_name strings X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dd761d3cf4d518db197c8e03e3447ddfdccdb27e;p=linux.git media: s5p-mfc: constify fw_name strings Constify stored pointers to firmware names for code safety. These are not modified by the driver. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Aakarsh Jain Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_common.h b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_common.h index 59450b324f7d0..cd4361ac6d5df 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_common.h +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_common.h @@ -229,7 +229,7 @@ struct s5p_mfc_variant { unsigned int port_num; u32 version_bit; struct s5p_mfc_buf_size *buf_size; - char *fw_name[MFC_FW_MAX_VERSIONS]; + const char *fw_name[MFC_FW_MAX_VERSIONS]; const char *clk_names[MFC_MAX_CLOCKS]; int num_clocks; bool use_clock_gating;