lkml.org 
[lkml]   [2021]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] media: imx-jpeg: Constify a few static structs
Date
Constify two structs that are never modified.

The first patch constifies a static v4l2_m2m_ops struct which contains
function pointers.

The second constifies mxc_jpeg_fmt, which contains read-only data. In
order to do that, a number of function arguments, return values and
pointers was made const as well.

Rikard Falkeborn (2):
media: imx-jpeg: Constify static struct v4l2_m2m_ops
media: imx-jpeg: Constify static struct mxc_jpeg_fmt

drivers/media/platform/imx-jpeg/mxc-jpeg.c | 18 +++++++++---------
drivers/media/platform/imx-jpeg/mxc-jpeg.h | 18 +++++++++---------
2 files changed, 18 insertions(+), 18 deletions(-)

--
2.32.0

\
 
 \ /
  Last update: 2021-06-12 01:42    [W:1.961 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site