V4L/DVB (9974): v4l2-dev: allow drivers to pass v4l2_device as parent
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 23 Dec 2008 10:35:17 +0000 (07:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:35 +0000 (09:39 -0200)
Drivers that use v4l2_device can set that as parent pointer in the v4l2_dev
field instead of using the struct device parent field.

This allows v4l2-dev.c to check whether this driver is v4l2_device based,
and if so then it can offer additional services.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

No differences found