media: s5p-mfc: constify fw_name strings
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 24 Dec 2023 15:44:03 +0000 (16:44 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 22 Jan 2024 11:16:43 +0000 (12:16 +0100)
Constify stored pointers to firmware names for code safety.  These are
not modified by the driver.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Aakarsh Jain <aakarsh.jain@samsung.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_common.h

index 59450b324f7d0fa75a58a45bcc2c75482c19afc1..cd4361ac6d5df6e4a68dfabb3595b653b1ebf5af 100644 (file)
@@ -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;