提交 4be2f470 编写于 作者: D Douglas Schilling Landgraf 提交者: Mauro Carvalho Chehab

V4L/DVB (6483): ivtv-streams: make file_operations const

Signed-off-by: NDouglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 bdd36658
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include "ivtv-cards.h" #include "ivtv-cards.h"
#include "ivtv-streams.h" #include "ivtv-streams.h"
static struct file_operations ivtv_v4l2_enc_fops = { static const struct file_operations ivtv_v4l2_enc_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.read = ivtv_v4l2_read, .read = ivtv_v4l2_read,
.write = ivtv_v4l2_write, .write = ivtv_v4l2_write,
...@@ -53,7 +53,7 @@ static struct file_operations ivtv_v4l2_enc_fops = { ...@@ -53,7 +53,7 @@ static struct file_operations ivtv_v4l2_enc_fops = {
.poll = ivtv_v4l2_enc_poll, .poll = ivtv_v4l2_enc_poll,
}; };
static struct file_operations ivtv_v4l2_dec_fops = { static const struct file_operations ivtv_v4l2_dec_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.read = ivtv_v4l2_read, .read = ivtv_v4l2_read,
.write = ivtv_v4l2_write, .write = ivtv_v4l2_write,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册