]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/exynos: exynos7_drm_decon: Consstify struct decon_data
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 18 Mar 2025 08:07:38 +0000 (09:07 +0100)
committerInki Dae <inki.dae@samsung.com>
Wed, 23 Apr 2025 13:53:02 +0000 (22:53 +0900)
static 'struct decon_data' is only read, so it can be const for code
safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos7_drm_decon.c

index 5170f72b08309d7e0363263776c69d93fca6357d..f91daefa9d2bc5e314c279822047e60ee0d7ca99 100644 (file)
@@ -43,13 +43,13 @@ struct decon_data {
        unsigned int wincon_burstlen_shift;
 };
 
-static struct decon_data exynos7_decon_data = {
+static const struct decon_data exynos7_decon_data = {
        .vidw_buf_start_base = 0x80,
        .shadowcon_win_protect_shift = 10,
        .wincon_burstlen_shift = 11,
 };
 
-static struct decon_data exynos7870_decon_data = {
+static const struct decon_data exynos7870_decon_data = {
        .vidw_buf_start_base = 0x880,
        .shadowcon_win_protect_shift = 8,
        .wincon_burstlen_shift = 10,