diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-16 01:30:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 08:25:11 -0400 |
commit | db4a8505ff86f6ccbe4880969c1d45c2d0ea7987 (patch) | |
tree | 4c7db3feae11e2c7713b2780ce4cff9795b0768a /drivers/media/radio/radio-cadet.c | |
parent | 44ce8fc4764294db148819830803e440deb5e1a3 (diff) | |
download | lwn-db4a8505ff86f6ccbe4880969c1d45c2d0ea7987.tar.gz lwn-db4a8505ff86f6ccbe4880969c1d45c2d0ea7987.zip |
media: radio: constify pnp_device_id
pnp_device_id are not supposed to change at runtime. All functions
working with pnp_device_id provided by <linux/pnp.h> work with
const pnp_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/radio/radio-cadet.c')
-rw-r--r-- | drivers/media/radio/radio-cadet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c index cbaf850f4791..6888b7db449d 100644 --- a/drivers/media/radio/radio-cadet.c +++ b/drivers/media/radio/radio-cadet.c @@ -528,7 +528,7 @@ static const struct v4l2_ctrl_ops cadet_ctrl_ops = { #ifdef CONFIG_PNP -static struct pnp_device_id cadet_pnp_devices[] = { +static const struct pnp_device_id cadet_pnp_devices[] = { /* ADS Cadet AM/FM Radio Card */ {.id = "MSM0c24", .driver_data = 0}, {.id = ""} |