drm: xlnx: zynqmp_dpsub: Don't access connector in zynqmp_dp_set_format()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 4 Aug 2021 16:21:41 +0000 (19:21 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 19 Oct 2022 13:51:02 +0000 (16:51 +0300)
commit5827398b0e765324bdd89df96b3e948847dc7663
treeb67d004aecb8496633f9bd00046f7bb1ce0e7d90
parent47e801bd0749f0691a137255e2db35f5348f4f4f
drm: xlnx: zynqmp_dpsub: Don't access connector in zynqmp_dp_set_format()

To prepare for the removal of the connector from the DP encoder, pass
the display info pointer to the zynqmp_dp_set_format() function instead
of accessing the connector internally. The display info is NULL when the
function is called at initialization time, as we have no display info at
that point. This doesn't change the existing behaviour, given that the
zynqmp_dp_set_format() was already handling this as a special case (the
display info isn't initialized at init time and is all zeroes).

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/xlnx/zynqmp_dp.c