mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 08:12:41 -04:00
media: fimc-is: constify local pointers to fimc_vid_cap
Constify the local variables pointing to "struct fimc_vid_cap" 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
4303e2063e
commit
7d441e2989
@@ -598,7 +598,7 @@ static const struct mbus_pixfmt_desc pix_desc[] = {
|
||||
int fimc_hw_set_camera_source(struct fimc_dev *fimc,
|
||||
struct fimc_source_info *source)
|
||||
{
|
||||
struct fimc_vid_cap *vc = &fimc->vid_cap;
|
||||
const struct fimc_vid_cap *vc = &fimc->vid_cap;
|
||||
struct fimc_frame *f = &vc->ctx->s_frame;
|
||||
u32 bus_width, cfg = 0;
|
||||
int i;
|
||||
@@ -670,7 +670,7 @@ void fimc_hw_set_camera_offset(struct fimc_dev *fimc, const struct fimc_frame *f
|
||||
int fimc_hw_set_camera_type(struct fimc_dev *fimc,
|
||||
const struct fimc_source_info *source)
|
||||
{
|
||||
struct fimc_vid_cap *vid_cap = &fimc->vid_cap;
|
||||
const struct fimc_vid_cap *vid_cap = &fimc->vid_cap;
|
||||
u32 csis_data_alignment = 32;
|
||||
u32 cfg, tmp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user