[PATCH 0/3] drm/mipi-dsi: Make remove callback return void

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Fri Jul 8 09:49:19 UTC 2022


Hello,

the intention of this patch series is to make it obvious to mipi-dsi
driver authors that they cannot rely on the mipi-dsi (or driver) core to
handle errors that occur at remove time. This is done by changing the
return type of the remove callback from int to void.

The first two patches make two drivers (obviously) always return zero.
Then in the final patch only return 0 are dropped and so it's easier to
see that there are no side effects.

A positive side effect of the last patch is that mipi_dsi_drv_remove()
now obviously always returns zero, which in turn prepares making driver
core remove functions return void.

Best regards
Uwe

Uwe Kleine-König (3):
  drm/panel: simple: Make panel_simple_remove() return void
  drm/panel-novatek-nt35510: Emit an error message if power off fails
  drm/mipi-dsi: Make remove callback return void

 drivers/gpu/drm/bridge/chipone-icn6211.c             |  4 +---
 drivers/gpu/drm/bridge/tc358762.c                    |  4 +---
 drivers/gpu/drm/bridge/tc358764.c                    |  4 +---
 drivers/gpu/drm/drm_mipi_dsi.c                       |  4 +++-
 drivers/gpu/drm/panel/panel-asus-z00t-tm5p5-n35596.c |  4 +---
 drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c       |  4 +---
 drivers/gpu/drm/panel/panel-boe-himax8279d.c         |  4 +---
 drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c       |  4 +---
 drivers/gpu/drm/panel/panel-dsi-cm.c                 |  4 +---
 drivers/gpu/drm/panel/panel-elida-kd35t133.c         |  4 +---
 drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c    |  4 +---
 .../gpu/drm/panel/panel-feiyang-fy07024di26a30d.c    |  4 +---
 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c        |  4 +---
 drivers/gpu/drm/panel/panel-innolux-p079zca.c        |  4 +---
 drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c         |  4 +---
 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c       |  4 +---
 drivers/gpu/drm/panel/panel-khadas-ts050.c           |  4 +---
 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c   |  4 +---
 drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c   |  4 +---
 drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c   |  4 +---
 drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c     |  4 +---
 drivers/gpu/drm/panel/panel-novatek-nt35510.c        |  7 ++++---
 drivers/gpu/drm/panel/panel-novatek-nt35560.c        |  4 +---
 drivers/gpu/drm/panel/panel-novatek-nt35950.c        |  4 +---
 drivers/gpu/drm/panel/panel-novatek-nt36672a.c       |  4 +---
 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c     |  4 +---
 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c   |  4 +---
 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c |  4 +---
 drivers/gpu/drm/panel/panel-raydium-rm67191.c        |  4 +---
 drivers/gpu/drm/panel/panel-raydium-rm68200.c        |  4 +---
 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c         |  4 +---
 drivers/gpu/drm/panel/panel-samsung-s6d16d0.c        |  4 +---
 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c        |  4 +---
 drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c     |  4 +---
 drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c    |  3 +--
 .../gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c |  4 +---
 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c        |  4 +---
 drivers/gpu/drm/panel/panel-samsung-sofef00.c        |  4 +---
 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c      |  6 ++----
 drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c      |  4 +---
 drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c      |  4 +---
 drivers/gpu/drm/panel/panel-simple.c                 | 12 ++++++------
 drivers/gpu/drm/panel/panel-sitronix-st7701.c        |  4 +---
 drivers/gpu/drm/panel/panel-sitronix-st7703.c        |  4 +---
 .../gpu/drm/panel/panel-sony-tulip-truly-nt35521.c   |  4 +---
 drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c         |  4 +---
 drivers/gpu/drm/panel/panel-truly-nt35597.c          |  3 +--
 drivers/gpu/drm/panel/panel-visionox-rm69299.c       |  3 +--
 drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c     |  4 +---
 include/drm/drm_mipi_dsi.h                           |  2 +-
 50 files changed, 61 insertions(+), 147 deletions(-)


base-commit: f2906aa863381afb0015a9eb7fefad885d4e5a56
-- 
2.36.1



More information about the dri-devel mailing list