media: fimc-lite: constify pointers to v4l2_pix_format_mplane
In few places functions do not modify pointed "struct v4l2_pix_format_mplane", thus the pointer can point to const data for additional safety and self-documenting intention of the function. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
f4036d7eae
commit
185bc53683
@ -738,7 +738,7 @@ static int fimc_lite_try_fmt_mplane(struct file *file, void *fh,
|
||||
static int fimc_lite_s_fmt_mplane(struct file *file, void *priv,
|
||||
struct v4l2_format *f)
|
||||
{
|
||||
struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp;
|
||||
const struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp;
|
||||
struct fimc_lite *fimc = video_drvdata(file);
|
||||
struct flite_frame *frame = &fimc->out_frame;
|
||||
const struct fimc_fmt *fmt = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user