media: atomisp: make array idx_map static const
Subsystems (5)
Media (V4L/DVB) Staging Kernel janitors Intel MID (Mobile Internet Device) platform +1 more subsystems
PATCH 1/1 media: atomisp: make array idx_map static const
Don't populate the read-only array idx_map on the stack but instead it static const. Also makes the object code a little smaller.
Signed-off-by Colin Ian King <[email protected]>
--- .../atomisp/pci/isp/kernels/macc/macc1_5/ia_css_macc1_5.host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/atomisp/pci/isp/kernels/macc/macc1_5/ia_css_macc1_5.host.c +1 -1
@@ -44,7 +44,7 @@ ia_css_macc1_5_vmem_encode( unsigned int size) {unsigned int i, j, k, idx; -unsigned int idx_map[] = { +static const unsigned int idx_map[] = {0 ,1 ,3 ,2 ,6 ,7 ,5 ,4 ,12 ,13 ,15 ,14 ,10 ,11 ,9 ,8 };
Signature · 1 line
2.32.0