media: fimc-is: constify local pointers to fimc_dma_offset
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 24 Dec 2023 11:49:14 +0000 (12:49 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 22 Jan 2024 11:16:42 +0000 (12:16 +0100)
Constify the local variables pointing to "struct fimc_dma_offset" to
annotate the function is not modifying pointed data.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/samsung/exynos4-is/fimc-reg.c

index dbc43b7033244c539116d9010c39b43619b831be..0ed6e22e6c47c7124fe06aeeab1df9bfcc0d7b70 100644 (file)
@@ -167,7 +167,7 @@ void fimc_hw_set_out_dma(struct fimc_ctx *ctx)
 {
        struct fimc_dev *dev = ctx->fimc_dev;
        struct fimc_frame *frame = &ctx->d_frame;
-       struct fimc_dma_offset *offset = &frame->dma_offset;
+       const struct fimc_dma_offset *offset = &frame->dma_offset;
        const struct fimc_fmt *fmt = frame->fmt;
        u32 cfg;
 
@@ -421,7 +421,7 @@ void fimc_hw_set_in_dma(struct fimc_ctx *ctx)
 {
        struct fimc_dev *dev = ctx->fimc_dev;
        struct fimc_frame *frame = &ctx->s_frame;
-       struct fimc_dma_offset *offset = &frame->dma_offset;
+       const struct fimc_dma_offset *offset = &frame->dma_offset;
        u32 cfg;
 
        /* Set the pixel offsets. */