summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-10-05 18:06:03 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2022-10-24 19:03:53 +0200
commite20f3906885232115acc5cc681915085d4dfcc8f (patch)
tree0dde6f3a47b8e40a779a8d78a2c3c32effbabef1
parentmedia: atomisp: Fix spelling mistake "modee" -> "mode" (diff)
downloadlinux-e20f3906885232115acc5cc681915085d4dfcc8f.tar.xz
linux-e20f3906885232115acc5cc681915085d4dfcc8f.zip
media: mxl5005s: Make array RegAddr static const
Don't populate the read-only array RegAddr on the stack but instead make 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>
-rw-r--r--drivers/media/tuners/mxl5005s.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/tuners/mxl5005s.c b/drivers/media/tuners/mxl5005s.c
index ab4c43df9d18..3a509038c8df 100644
--- a/drivers/media/tuners/mxl5005s.c
+++ b/drivers/media/tuners/mxl5005s.c
@@ -3637,7 +3637,7 @@ static u16 MXL_GetCHRegister_ZeroIF(struct dvb_frontend *fe, u8 *RegNum,
u16 status = 0;
int i;
- u8 RegAddr[] = {43, 136};
+ static const u8 RegAddr[] = {43, 136};
*count = ARRAY_SIZE(RegAddr);