uterm_video: add udev device parameter to video_new()
When triggered by seat monitor we need to be able to create uterm_video objects on a concrete device so enable passing it in. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
60b4fb5100
commit
335182556c
@ -57,7 +57,7 @@ struct display_ops {
|
||||
};
|
||||
|
||||
struct video_ops {
|
||||
int (*init) (struct uterm_video *video);
|
||||
int (*init) (struct uterm_video *video, struct udev_device *dev);
|
||||
void (*destroy) (struct uterm_video *video);
|
||||
void (*segfault) (struct uterm_video *video);
|
||||
int (*use) (struct uterm_video *video);
|
||||
|
@ -454,7 +454,7 @@ int uterm_video_new(struct uterm_video **out,
|
||||
if (ret)
|
||||
goto err_umon;
|
||||
|
||||
ret = VIDEO_CALL(video->ops->init, 0, video);
|
||||
ret = VIDEO_CALL(video->ops->init, 0, video, NULL);
|
||||
if (ret)
|
||||
goto err_umon_add;
|
||||
|
||||
|
@ -659,7 +659,7 @@ err_close:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int video_init(struct uterm_video *video)
|
||||
static int video_init(struct uterm_video *video, struct udev_device *dev_ign)
|
||||
{
|
||||
struct udev_enumerate *e;
|
||||
struct udev_list_entry *name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user