Commit 18a8560c authored by Julia Lawall's avatar Julia Lawall Committed by Mauro Carvalho Chehab

[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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent e88a3f81
...@@ -137,7 +137,7 @@ static int shark_read_reg(struct radio_tea5777 *tea, u32 *reg_ret) ...@@ -137,7 +137,7 @@ static int shark_read_reg(struct radio_tea5777 *tea, u32 *reg_ret)
return 0; return 0;
} }
static struct radio_tea5777_ops shark_tea_ops = { static const struct radio_tea5777_ops shark_tea_ops = {
.write_reg = shark_write_reg, .write_reg = shark_write_reg,
.read_reg = shark_read_reg, .read_reg = shark_read_reg,
}; };
......
...@@ -76,7 +76,7 @@ struct radio_tea5777 { ...@@ -76,7 +76,7 @@ struct radio_tea5777 {
u32 read_reg; u32 read_reg;
u64 write_reg; u64 write_reg;
struct mutex mutex; struct mutex mutex;
struct radio_tea5777_ops *ops; const struct radio_tea5777_ops *ops;
void *private_data; void *private_data;
u8 card[32]; u8 card[32];
u8 bus_info[32]; u8 bus_info[32];
......
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