drm/panel-simple: When using panel-dpi, update desc
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 2 Dec 2021 18:13:02 +0000 (18:13 +0000)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 3 Dec 2021 13:00:19 +0000 (13:00 +0000)
commitc2a92ebcf076c94e829338a5f9110e91e7121a0b
tree50f1838591fd1c9ffb74e0503d208d07ebed1967
parent9a505bc48f037394c96bb013f2f21a8929e4f502
drm/panel-simple: When using panel-dpi, update desc

When using the "panel-dpi" compatible string, desc as passed
from DT is a dumy entry, and panel_dpi_probe allocates a new
one and attaches it to the panel.
However panel_simple_probe has already taken a local copy of
the variable, which means all the validation is done against
the empty dummy structure, not the configured data.

Update the local variable after panel_dpi_probe.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/panel/panel-simple.c