media: add 'index' to struct media_v2_pad
authorHans Verkuil <hansverk@cisco.com>
Tue, 27 Feb 2018 12:24:09 +0000 (07:24 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 25 Jul 2018 11:42:53 +0000 (07:42 -0400)
commit30b914c8d825da7d4c651ade34667cef05e3ee27
treeca326f568e4ebc8b4b90649a3949b91ee4e45901
parent76e464888b1c367fddaf67f23ee3e0aa4ca8cef4
media: add 'index' to struct media_v2_pad

The v2 pad structure never exposed the pad index, which made it impossible
to call the MEDIA_IOC_SETUP_LINK ioctl, which needs that information.

It is really trivial to just expose this information, so implement this.

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