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:
David Herrmann 2013-01-12 13:40:50 +01:00
parent 5f348ccec7
commit 9f27d05319
6 changed files with 0 additions and 18 deletions

View File

@ -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,

View File

@ -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))

View File

@ -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);

View File

@ -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,

View File

@ -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,

View File

@ -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>