uterm: remove uterm_video_use()
This function is a no-op and not used. Hence, remove it. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
5f348ccec7
commit
9f27d05319
@ -571,7 +571,6 @@ static const struct video_ops fbdev_video_ops = {
|
||||
.init = video_init,
|
||||
.destroy = video_destroy,
|
||||
.segfault = NULL, /* TODO */
|
||||
.use = NULL,
|
||||
.poll = NULL,
|
||||
.sleep = video_sleep,
|
||||
.wake_up = video_wake_up,
|
||||
|
@ -574,14 +574,6 @@ void uterm_video_segfault(struct uterm_video *video)
|
||||
VIDEO_CALL(video->ops->segfault, 0, video);
|
||||
}
|
||||
|
||||
int uterm_video_use(struct uterm_video *video)
|
||||
{
|
||||
if (!video)
|
||||
return -EINVAL;
|
||||
|
||||
return video_do_use(video);
|
||||
}
|
||||
|
||||
struct uterm_display *uterm_video_get_displays(struct uterm_video *video)
|
||||
{
|
||||
if (!video || shl_dlist_empty(&video->displays))
|
||||
|
@ -191,7 +191,6 @@ void uterm_video_ref(struct uterm_video *video);
|
||||
void uterm_video_unref(struct uterm_video *video);
|
||||
|
||||
void uterm_video_segfault(struct uterm_video *video);
|
||||
int uterm_video_use(struct uterm_video *video);
|
||||
struct uterm_display *uterm_video_get_displays(struct uterm_video *video);
|
||||
int uterm_video_register_cb(struct uterm_video *video, uterm_video_cb cb,
|
||||
void *data);
|
||||
|
@ -1102,7 +1102,6 @@ static const struct video_ops drm_video_ops = {
|
||||
.init = video_init,
|
||||
.destroy = video_destroy,
|
||||
.segfault = NULL, /* TODO: reset all saved CRTCs on segfault */
|
||||
.use = NULL,
|
||||
.poll = video_poll,
|
||||
.sleep = video_sleep,
|
||||
.wake_up = video_wake_up,
|
||||
|
@ -550,7 +550,6 @@ static const struct video_ops dumb_video_ops = {
|
||||
.init = video_init,
|
||||
.destroy = video_destroy,
|
||||
.segfault = NULL, /* TODO: reset all saved CRTCs on segfault */
|
||||
.use = NULL,
|
||||
.poll = video_poll,
|
||||
.sleep = video_sleep,
|
||||
.wake_up = video_wake_up,
|
||||
|
@ -70,7 +70,6 @@ struct video_ops {
|
||||
int (*init) (struct uterm_video *video, const char *node);
|
||||
void (*destroy) (struct uterm_video *video);
|
||||
void (*segfault) (struct uterm_video *video);
|
||||
int (*use) (struct uterm_video *video);
|
||||
int (*poll) (struct uterm_video *video);
|
||||
void (*sleep) (struct uterm_video *video);
|
||||
int (*wake_up) (struct uterm_video *video);
|
||||
@ -177,11 +176,6 @@ static inline bool video_need_hotplug(const struct uterm_video *video)
|
||||
.action = (act), \
|
||||
})
|
||||
|
||||
static inline int video_do_use(struct uterm_video *video)
|
||||
{
|
||||
return VIDEO_CALL(video->ops->use, -EOPNOTSUPP, video);
|
||||
}
|
||||
|
||||
#if defined(BUILD_ENABLE_VIDEO_DRM) || defined(BUILD_ENABLE_VIDEO_DUMB)
|
||||
|
||||
#include <xf86drm.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user