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

[media] drivers/media/usb/as102: constify as102_priv_ops_t structure

The as102_priv_ops_t 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 242c5033
...@@ -52,7 +52,7 @@ struct as10x_bus_adapter_t { ...@@ -52,7 +52,7 @@ struct as10x_bus_adapter_t {
struct as10x_cmd_t *cmd, *rsp; struct as10x_cmd_t *cmd, *rsp;
/* bus adapter private ops callback */ /* bus adapter private ops callback */
struct as102_priv_ops_t *ops; const struct as102_priv_ops_t *ops;
}; };
struct as102_dev_t { struct as102_dev_t {
......
...@@ -189,7 +189,7 @@ static int as102_read_ep2(struct as10x_bus_adapter_t *bus_adap, ...@@ -189,7 +189,7 @@ static int as102_read_ep2(struct as10x_bus_adapter_t *bus_adap,
return actual_len; return actual_len;
} }
static struct as102_priv_ops_t as102_priv_ops = { static const struct as102_priv_ops_t as102_priv_ops = {
.upload_fw_pkt = as102_send_ep1, .upload_fw_pkt = as102_send_ep1,
.xfer_cmd = as102_usb_xfer_cmd, .xfer_cmd = as102_usb_xfer_cmd,
.as102_read_ep2 = as102_read_ep2, .as102_read_ep2 = as102_read_ep2,
......
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