mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
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:
parent
3257a7673b
commit
e20f390688
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user