drm/panel: Don't store+check prepared/enabled for simple cases
authorDouglas Anderson <dianders@chromium.org>
Fri, 4 Aug 2023 21:06:04 +0000 (14:06 -0700)
committerDouglas Anderson <dianders@chromium.org>
Wed, 13 Sep 2023 15:36:18 +0000 (08:36 -0700)
commitf8c37b88092e12157b2b707f1a83684b0b97b68e
tree6d9a3470701604ea0097b42ac445e8966498c44c
parent8569c31545385195bdb0c021124e68336e91c693
drm/panel: Don't store+check prepared/enabled for simple cases

As talked about in commit d2aacaf07395 ("drm/panel: Check for already
prepared/enabled in drm_panel"), we want to remove needless code from
panel drivers that was storing and double-checking the
prepared/enabled state. Even if someone was relying on the
double-check before, that double-check is now in the core and not
needed in individual drivers.

This pile of panel drivers appears to be simple to handle. Based on
code inspection they seemed to be using the prepared/enabled state
simply for double-checking that nothing else in the kernel called them
inconsistently. Now that the core drm_panel is doing the double
checking (and warning) it should be very clear that these devices
don't need their own double-check.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230804140605.RFC.1.Ia54954fd2f7645c1b86597494902973f57feeb71@changeid
16 files changed:
drivers/gpu/drm/panel/panel-asus-z00t-tm5p5-n35596.c
drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c
drivers/gpu/drm/panel/panel-novatek-nt35950.c
drivers/gpu/drm/panel/panel-novatek-nt36523.c
drivers/gpu/drm/panel/panel-raydium-rm68200.c
drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c
drivers/gpu/drm/panel/panel-samsung-sofef00.c
drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c
drivers/gpu/drm/panel/panel-sony-td4353-jdi.c
drivers/gpu/drm/panel/panel-sony-tulip-truly-nt35521.c
drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c
drivers/gpu/drm/panel/panel-truly-nt35597.c
drivers/gpu/drm/panel/panel-visionox-r66451.c
drivers/gpu/drm/panel/panel-visionox-rm69299.c
drivers/gpu/drm/panel/panel-visionox-vtdr6130.c