aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-10-04 10:02:14 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-10-09 08:02:00 -0400
commitdb6df013c3fbf3a87e2fbf675bd900b5e1167f00 (patch)
tree1b41151b0c8ba691b9d327f1f110c418731de5b3 /drivers/media
parentmedia: bttv-input: make const array addr_list static (diff)
downloadlinux-dev-db6df013c3fbf3a87e2fbf675bd900b5e1167f00.tar.xz
linux-dev-db6df013c3fbf3a87e2fbf675bd900b5e1167f00.zip
media: ivtv: 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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/pci/ivtv/ivtv-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/ivtv/ivtv-i2c.c b/drivers/media/pci/ivtv/ivtv-i2c.c
index 5e4e52147fb7..55ef1385519e 100644
--- a/drivers/media/pci/ivtv/ivtv-i2c.c
+++ b/drivers/media/pci/ivtv/ivtv-i2c.c
@@ -239,7 +239,7 @@ struct i2c_client *ivtv_i2c_new_ir_legacy(struct ivtv *itv)
* allocations, so this function must be called after all other i2c
* devices we care about are registered.
*/
- const unsigned short addr_list[] = {
+ static const unsigned short addr_list[] = {
0x1a, /* Hauppauge IR external - collides with WM8739 */
0x18, /* Hauppauge IR internal */
I2C_CLIENT_END