[media] go7007: constify go7007_hpi_ops structures
The go7007_hpi_ops structures are never modified, so declare them 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>
Cette révision appartient à :

révisé par
Mauro Carvalho Chehab

Parent
2874bf3ec4
révision
ff880348e7
@@ -932,7 +932,7 @@ static void go7007_usb_release(struct go7007 *go)
|
||||
kfree(go->hpi_context);
|
||||
}
|
||||
|
||||
static struct go7007_hpi_ops go7007_usb_ezusb_hpi_ops = {
|
||||
static const struct go7007_hpi_ops go7007_usb_ezusb_hpi_ops = {
|
||||
.interface_reset = go7007_usb_interface_reset,
|
||||
.write_interrupt = go7007_usb_ezusb_write_interrupt,
|
||||
.read_interrupt = go7007_usb_read_interrupt,
|
||||
@@ -942,7 +942,7 @@ static struct go7007_hpi_ops go7007_usb_ezusb_hpi_ops = {
|
||||
.release = go7007_usb_release,
|
||||
};
|
||||
|
||||
static struct go7007_hpi_ops go7007_usb_onboard_hpi_ops = {
|
||||
static const struct go7007_hpi_ops go7007_usb_onboard_hpi_ops = {
|
||||
.interface_reset = go7007_usb_interface_reset,
|
||||
.write_interrupt = go7007_usb_onboard_write_interrupt,
|
||||
.read_interrupt = go7007_usb_read_interrupt,
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur