media: v4l2-device.h: always expose mdev
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 3 May 2018 14:52:51 +0000 (10:52 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 11 May 2018 15:26:56 +0000 (11:26 -0400)
commitacd14c181fc201a397aaff02af3b8c3f1dcf233f
tree1fbd97b1598eb8eeaa73750bb4f982f664476d5a
parent3ad3b7a2ebaefae37a7eafed0779324987ca5e56
media: v4l2-device.h: always expose mdev

The mdev field is only present if CONFIG_MEDIA_CONTROLLER is set.
But since we will need to pass the media_device to vb2 and the
control framework it is very convenient to just make this field
available all the time. If CONFIG_MEDIA_CONTROLLER is not set,
then it will just be NULL.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
include/media/v4l2-device.h