]> git.baikalelectronics.ru Git - kernel.git/commit
media: gspca: make array regs_to_read static const
authorColin Ian King <colin.i.king@gmail.com>
Sun, 9 Jan 2022 20:45:57 +0000 (21:45 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 23 Jan 2022 20:18:43 +0000 (21:18 +0100)
commit387c66830dd80c32a855b731c2dee26865fdba79
treeb88ca902f0c558ab8b7653512e2ddfe838af7dfc
parentc3c86866526750530fa0def988f9e15eb79124e5
media: gspca: make array regs_to_read static const

Don't populate the read-only array regs_to_read on the stack but
instead it static const. Also makes the object code a little smaller.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/gspca/jl2005bcd.c