drm: Add DRM_GEM_FOPS
authorRob Clark <robdclark@chromium.org>
Thu, 9 Jun 2022 17:42:11 +0000 (10:42 -0700)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 5 Jul 2022 03:01:11 +0000 (06:01 +0300)
commit1981c35bf7533d70f295b184bbb638d280fe2f36
tree23cd54e38f958e34c9dcac9559e78ddd16d395ab
parent6867c9aff860b23ca5ffa6c427f0fbb7ccf3ac6b
drm: Add DRM_GEM_FOPS

The DEFINE_DRM_GEM_FOPS() helper is a bit limiting if a driver wants to
provide additional file ops, like show_fdinfo().

v2: Split out DRM_GEM_FOPS instead of making DEFINE_DRM_GEM_FOPS
    varardic
v3: nits

Signed-off-by: Rob Clark <robdclark@chromium.org>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Patchwork: https://patchwork.freedesktop.org/patch/488904/
Link: https://lore.kernel.org/r/20220609174213.2265938-1-robdclark@gmail.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
include/drm/drm_gem.h