diff options
author | Maxime Ripard <mripard@kernel.org> | 2025-06-26 13:05:01 +0300 |
---|---|---|
committer | Maxime Ripard <mripard@kernel.org> | 2025-06-27 12:22:47 +0300 |
commit | 921c41e509746aabecbbb2595ebf41a9d8fdc4e2 (patch) | |
tree | 64b032e2975bd8c98f3b5387a3eb4a6f687dad68 /scripts/lib/kdoc/kdoc_files.py | |
parent | 073667fce1667eab31d6a62cdd7fb795933ec7e8 (diff) | |
download | linux-921c41e509746aabecbbb2595ebf41a9d8fdc4e2.tar.xz |
drm/panel: panel-simple: Make panel_simple_probe return its panel
In order to fix the regession introduced by commit de04bb0089a9
("drm/panel/panel-simple: Use the new allocation in place of
devm_kzalloc()"), we need to move the panel_desc lookup into the common
panel_simple_probe() function.
There's two callers for that function, the probe implementations of the
platform and MIPI-DSI drivers panel-simple implements.
The MIPI-DSI driver's probe will need to access the current panel_desc
to initialize properly, which won't be possible anymore if we make that
lookup in panel_simple_probe().
However, we can make panel_simple_probe() return the initialized
panel_simple structure it allocated, which will contain a pointer to the
associated panel_desc in its desc field.
This doesn't fix de04bb0089a9 ("drm/panel/panel-simple: Use the new
allocation in place of devm_kzalloc()") still, but makes progress
towards that goal.
Fixes: de04bb0089a9 ("drm/panel/panel-simple: Use the new allocation in place of devm_kzalloc()")
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Tested-by: Francesco Dolcini <francesco.dolcini@toradex.com> # Toradex Colibri iMX6
Link: https://lore.kernel.org/r/20250626-drm-panel-simple-fixes-v2-3-5afcaa608bdc@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions