提交 ff4f3876 编写于 作者: R Rob Clark 提交者: Greg Kroah-Hartman

staging: drm/omap: drm API update: make fops struct const

Update to reflect changes in:
"Make the per-driver file_operations struct const"
Signed-off-by: NRob Clark <rob@ti.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 b7cdd9e6
...@@ -708,6 +708,18 @@ static struct vm_operations_struct omap_gem_vm_ops = { ...@@ -708,6 +708,18 @@ static struct vm_operations_struct omap_gem_vm_ops = {
.close = drm_gem_vm_close, .close = drm_gem_vm_close,
}; };
static const struct file_operations omapdriver_fops = {
.owner = THIS_MODULE,
.open = drm_open,
.unlocked_ioctl = drm_ioctl,
.release = drm_release,
.mmap = omap_gem_mmap,
.poll = drm_poll,
.fasync = drm_fasync,
.read = drm_read,
.llseek = noop_llseek,
};
static struct drm_driver omap_drm_driver = { static struct drm_driver omap_drm_driver = {
.driver_features = .driver_features =
DRIVER_HAVE_IRQ | DRIVER_MODESET | DRIVER_GEM, DRIVER_HAVE_IRQ | DRIVER_MODESET | DRIVER_GEM,
...@@ -738,17 +750,7 @@ static struct drm_driver omap_drm_driver = { ...@@ -738,17 +750,7 @@ static struct drm_driver omap_drm_driver = {
.dumb_destroy = omap_gem_dumb_destroy, .dumb_destroy = omap_gem_dumb_destroy,
.ioctls = ioctls, .ioctls = ioctls,
.num_ioctls = DRM_OMAP_NUM_IOCTLS, .num_ioctls = DRM_OMAP_NUM_IOCTLS,
.fops = { .fops = &omapdriver_fops,
.owner = THIS_MODULE,
.open = drm_open,
.unlocked_ioctl = drm_ioctl,
.release = drm_release,
.mmap = omap_gem_mmap,
.poll = drm_poll,
.fasync = drm_fasync,
.read = drm_read,
.llseek = noop_llseek,
},
.name = DRIVER_NAME, .name = DRIVER_NAME,
.desc = DRIVER_DESC, .desc = DRIVER_DESC,
.date = DRIVER_DATE, .date = DRIVER_DATE,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册