diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-12-06 13:51:38 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-01 07:31:48 -0200 |
commit | f691ba9864ad0ed1bd67ad27ed95ed2dce6e15e2 (patch) | |
tree | e51fe3599db02ae9e751dc094fb0010b6c4aa8f5 /drivers/media/usb/as102/as102_usb_drv.c | |
parent | 242c5033508991221d787043b734740770c850be (diff) | |
download | blackbird-obmc-linux-f691ba9864ad0ed1bd67ad27ed95ed2dce6e15e2.tar.gz blackbird-obmc-linux-f691ba9864ad0ed1bd67ad27ed95ed2dce6e15e2.zip |
[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: 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>
Diffstat (limited to 'drivers/media/usb/as102/as102_usb_drv.c')
-rw-r--r-- | drivers/media/usb/as102/as102_usb_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/as102/as102_usb_drv.c b/drivers/media/usb/as102/as102_usb_drv.c index 3f669066ccf6..0e8030c071b8 100644 --- a/drivers/media/usb/as102/as102_usb_drv.c +++ b/drivers/media/usb/as102/as102_usb_drv.c @@ -189,7 +189,7 @@ static int as102_read_ep2(struct as10x_bus_adapter_t *bus_adap, 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, .xfer_cmd = as102_usb_xfer_cmd, .as102_read_ep2 = as102_read_ep2, |