media: imx: Use get_mbus_config instead of parsing upstream DT endpoints
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 24 Aug 2022 10:32:10 +0000 (12:32 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 7 Dec 2022 16:58:46 +0000 (17:58 +0100)
commit7318abface486d6a6389731810f5b60650daedb5
tree0bfbb416395b61fc92f6ef6a843a71b50d24da39
parente65faec54192984e157eb8e49ea29d4eccacf185
media: imx: Use get_mbus_config instead of parsing upstream DT endpoints

Stop parsing upstream neighbors' device-tree endpoints to retrieve the
media bus configuration. Instead use the get_mbus_config op and throw an
error if the upstream subdevice does not implement it.

Also drop the corresponding TODO entry and the now unused
imx_media_get_pad_fwnode() function.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Tested-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/imx/TODO
drivers/staging/media/imx/imx-media-csi.c
drivers/staging/media/imx/imx-media-utils.c
drivers/staging/media/imx/imx-media.h