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

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
......@@ -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
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment