Commit e20f3906 authored by Colin Ian King's avatar Colin Ian King Committed by Hans Verkuil
Browse files

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: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 3257a767
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);