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>
This commit is contained in:
Colin Ian King 2022-10-05 17:06:03 +01:00 committed by Hans Verkuil
parent 3257a7673b
commit e20f390688

View File

@ -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);