mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] media: imx-jpeg: Constify a few static structs
@ 2021-06-11 23:41 Rikard Falkeborn
  2021-06-11 23:42 ` [PATCH 1/2] media: imx-jpeg: Constify static struct v4l2_m2m_ops Rikard Falkeborn
  2021-06-11 23:42 ` [PATCH 2/2] media: imx-jpeg: Constify static struct mxc_jpeg_fmt Rikard Falkeborn
  0 siblings, 2 replies; 3+ messages in thread
From: Rikard Falkeborn @ 2021-06-11 23:41 UTC (permalink / raw)
  To: Mirela Rabulea, Mauro Carvalho Chehab, Shawn Guo, Sascha Hauer
  Cc: NXP Linux Team, Fabio Estevam, linux-media, linux-arm-kernel,
	linux-kernel, Pengutronix Kernel Team, Rikard Falkeborn

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-11 23:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11 23:41 [PATCH 0/2] media: imx-jpeg: Constify a few static structs Rikard Falkeborn
2021-06-11 23:42 ` [PATCH 1/2] media: imx-jpeg: Constify static struct v4l2_m2m_ops Rikard Falkeborn
2021-06-11 23:42 ` [PATCH 2/2] media: imx-jpeg: Constify static struct mxc_jpeg_fmt Rikard Falkeborn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®