This function is a no-op and not used. Hence, remove it.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
.init = video_init,
.destroy = video_destroy,
.segfault = NULL, /* TODO */
- .use = NULL,
.poll = NULL,
.sleep = video_sleep,
.wake_up = video_wake_up,
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))
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);
.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,
.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,
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);
.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>