[PATCH] media: s5p-jpeg: Constify struct v4l2_m2m_ops

Jacek Anaszewski jacek.anaszewski at gmail.com
Fri Dec 3 11:22:40 PST 2021


Hi Rikard,

Thanks for the patch.

On 11/30/21 10:27 PM, Rikard Falkeborn wrote:
> The only usage of the v4l2_m2m_ops structs is to pass their address to
> v4l2_m2m_init() which takes a pointer to const struct v4l2_m2m_ops as
> argument. Make them const to allow the compiler to put them in read-only
> memory.
> 
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn at gmail.com>
> ---
>   drivers/media/platform/s5p-jpeg/jpeg-core.c | 6 +++---
>   drivers/media/platform/s5p-jpeg/jpeg-core.h | 2 +-
>   2 files changed, 4 insertions(+), 4 deletions(-)

Acked-by: Jacek Anaszewski <jacek.anaszewski at gmail.com>

-- 
Best regards,
Jacek Anaszewski



More information about the linux-arm-kernel mailing list