]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: i2c: ov5648: make read-only arrays regs and values static const
authorColin Ian King <colin.i.king@gmail.com>
Tue, 29 Jul 2025 07:00:21 +0000 (08:00 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 25 Aug 2025 13:40:38 +0000 (15:40 +0200)
commitefe0832f57bd8a7155a63f3375353c27e3967959
tree430ed8515ff7dd8148a4798835e3bc156aef2600
parent3c5ca0a48bb02c9639de9adf3325f85b9cd11af2
media: i2c: ov5648: make read-only arrays regs and values static const

Don't populate the read-only arrays regs and values on the stack at run
time, instead make them static const.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ov5648.c