[media] davinci: vpif_capture: get subdevs from DT when available
authorKevin Hilman <khilman@baylibre.com>
Tue, 6 Jun 2017 23:37:39 +0000 (20:37 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Jun 2017 15:17:12 +0000 (12:17 -0300)
commit4a5f8ae50b66a40cd9cec8f72f5f64611504ddc1
tree1b1e41ac27bd605f125c7a99c714b067831aa3b7
parent6e3520f2e20262fbf913ffff14f1d345c7b82c25
[media] davinci: vpif_capture: get subdevs from DT when available

Enable  getting of subdevs from DT ports and endpoints.

The _get_pdata() function was larely inspired by (i.e. stolen from)
am437x-vpfe.c

Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/davinci/vpif_capture.c
drivers/media/platform/davinci/vpif_display.c
include/media/davinci/vpif_types.h