Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a265b30 authored by Colin Ian King's avatar Colin Ian King Committed by Mauro Carvalho Chehab
Browse files

media: cx23885: make const array addr_list static



The const array addr_list can be made static, saves populating it on
the stack and will make it read-only.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent db6df013
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -340,7 +340,7 @@ int cx23885_i2c_register(struct cx23885_i2c *bus)
	/* Instantiate the IR receiver device, if present */
	if (0 == bus->i2c_rc) {
		struct i2c_board_info info;
		const unsigned short addr_list[] = {
		static const unsigned short addr_list[] = {
			0x6b, I2C_CLIENT_END
		};