diff mbox series

media: tuners: mxl5005s: make array static const, reduces object code size

Message ID 20220507180302.25853-1-colin.i.king@gmail.com (mailing list archive)
State New, archived
Headers show
Series media: tuners: mxl5005s: make array static const, reduces object code size | expand

Commit Message

Colin Ian King May 7, 2022, 6:03 p.m. UTC
Don't populate the array RegAddr on the stack, instead make it static
const. Also makes the object code smaller.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 drivers/media/tuners/mxl5005s.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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