mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 18:13:26 -04:00
media: fimc-is: constify local pointers to fimc_dma_offset
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>
This commit is contained in:
committed by
Hans Verkuil
parent
f157398a2a
commit
4303e2063e
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user