diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-13 06:38:32 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-11-17 11:52:15 -0500 |
commit | 18a8560cbd627c96477f8f44513e3744d84aced8 (patch) | |
tree | 18bf0dd70d0fc9c2d666312a4607454d5aa51cf2 | |
parent | e88a3f81215e470cd3228a5d746eb7ad9fd1965a (diff) |
[media] radio-shark2: constify radio_tea5777_ops structures
The radio_tea5777_ops structure is never modified, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/radio/radio-shark2.c | 2 | ||||
-rw-r--r-- | drivers/media/radio/radio-tea5777.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/radio/radio-shark2.c b/drivers/media/radio/radio-shark2.c index 8654e0dc5c95..0e65a85d52c6 100644 --- a/drivers/media/radio/radio-shark2.c +++ b/drivers/media/radio/radio-shark2.c | |||
@@ -137,7 +137,7 @@ static int shark_read_reg(struct radio_tea5777 *tea, u32 *reg_ret) | |||
137 | return 0; | 137 | return 0; |
138 | } | 138 | } |
139 | 139 | ||
140 | static struct radio_tea5777_ops shark_tea_ops = { | 140 | static const struct radio_tea5777_ops shark_tea_ops = { |
141 | .write_reg = shark_write_reg, | 141 | .write_reg = shark_write_reg, |
142 | .read_reg = shark_read_reg, | 142 | .read_reg = shark_read_reg, |
143 | }; | 143 | }; |
diff --git a/drivers/media/radio/radio-tea5777.h b/drivers/media/radio/radio-tea5777.h index 4ea43a90a151..4bd942526a1b 100644 --- a/drivers/media/radio/radio-tea5777.h +++ b/drivers/media/radio/radio-tea5777.h | |||
@@ -76,7 +76,7 @@ struct radio_tea5777 { | |||
76 | u32 read_reg; | 76 | u32 read_reg; |
77 | u64 write_reg; | 77 | u64 write_reg; |
78 | struct mutex mutex; | 78 | struct mutex mutex; |
79 | struct radio_tea5777_ops *ops; | 79 | const struct radio_tea5777_ops *ops; |
80 | void *private_data; | 80 | void *private_data; |
81 | u8 card[32]; | 81 | u8 card[32]; |
82 | u8 bus_info[32]; | 82 | u8 bus_info[32]; |