Skip to content

media: imx-jpeg: Constify a few static structs

Rikard Falkeborn linux-arm-kernel linux-media lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2media: imx-jpeg: Constify static struct v4l2_m2m_opsdrivers/media/platform/imx-jpeg/mxc-jpeg.c+1 -10 replies
2/2media: imx-jpeg: Constify static struct mxc_jpeg_fmtdrivers/media/platform/imx-jpeg/mxc-jpeg.c drivers/media/platform/imx-jpeg/mxc-jpeg.h+17 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] media: imx-jpeg: Constify a few static structs

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(-)
Signature · 1 line
2.32.0