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

[media] s5p-tv: constify mxr_layer_ops structures

The mxr_layer_ops structures are never modified, so declare
them as const.

Done with the help of Coccinelle.
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 4c9c6d86
...@@ -300,7 +300,7 @@ void mxr_release_video(struct mxr_device *mdev); ...@@ -300,7 +300,7 @@ void mxr_release_video(struct mxr_device *mdev);
struct mxr_layer *mxr_graph_layer_create(struct mxr_device *mdev, int idx); struct mxr_layer *mxr_graph_layer_create(struct mxr_device *mdev, int idx);
struct mxr_layer *mxr_vp_layer_create(struct mxr_device *mdev, int idx); struct mxr_layer *mxr_vp_layer_create(struct mxr_device *mdev, int idx);
struct mxr_layer *mxr_base_layer_create(struct mxr_device *mdev, struct mxr_layer *mxr_base_layer_create(struct mxr_device *mdev,
int idx, char *name, struct mxr_layer_ops *ops); int idx, char *name, const struct mxr_layer_ops *ops);
void mxr_base_layer_release(struct mxr_layer *layer); void mxr_base_layer_release(struct mxr_layer *layer);
void mxr_layer_release(struct mxr_layer *layer); void mxr_layer_release(struct mxr_layer *layer);
......
...@@ -235,7 +235,7 @@ struct mxr_layer *mxr_graph_layer_create(struct mxr_device *mdev, int idx) ...@@ -235,7 +235,7 @@ struct mxr_layer *mxr_graph_layer_create(struct mxr_device *mdev, int idx)
{ {
struct mxr_layer *layer; struct mxr_layer *layer;
int ret; int ret;
struct mxr_layer_ops ops = { const struct mxr_layer_ops ops = {
.release = mxr_graph_layer_release, .release = mxr_graph_layer_release,
.buffer_set = mxr_graph_buffer_set, .buffer_set = mxr_graph_buffer_set,
.stream_set = mxr_graph_stream_set, .stream_set = mxr_graph_stream_set,
......
...@@ -1070,7 +1070,7 @@ static void mxr_vfd_release(struct video_device *vdev) ...@@ -1070,7 +1070,7 @@ static void mxr_vfd_release(struct video_device *vdev)
} }
struct mxr_layer *mxr_base_layer_create(struct mxr_device *mdev, struct mxr_layer *mxr_base_layer_create(struct mxr_device *mdev,
int idx, char *name, struct mxr_layer_ops *ops) int idx, char *name, const struct mxr_layer_ops *ops)
{ {
struct mxr_layer *layer; struct mxr_layer *layer;
......
...@@ -207,7 +207,7 @@ struct mxr_layer *mxr_vp_layer_create(struct mxr_device *mdev, int idx) ...@@ -207,7 +207,7 @@ struct mxr_layer *mxr_vp_layer_create(struct mxr_device *mdev, int idx)
{ {
struct mxr_layer *layer; struct mxr_layer *layer;
int ret; int ret;
struct mxr_layer_ops ops = { const struct mxr_layer_ops ops = {
.release = mxr_vp_layer_release, .release = mxr_vp_layer_release,
.buffer_set = mxr_vp_buffer_set, .buffer_set = mxr_vp_buffer_set,
.stream_set = mxr_vp_stream_set, .stream_set = mxr_vp_stream_set,
......
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