OpenCloudOS-Kernel/drivers/gpu/drm/panel
Laurent Pinchart 6dbe0c4b0f drm/panel: Initialise panel dev and funcs through drm_panel_init()
Instead of requiring all drivers to set the dev and funcs fields of
drm_panel manually after calling drm_panel_init(), pass the data as
arguments to the function. This simplifies the panel drivers, and will
help future refactoring when adding new arguments to drm_panel_init().

The panel drivers have been updated with the following Coccinelle
semantic patch, with manual inspection to verify that no call to
drm_panel_init() with a single argument still exists.

@@
expression panel;
expression device;
identifier ops;
@@
 drm_panel_init(&panel
+	, device, &ops
 );
 ...
(
-panel.dev = device;
-panel.funcs = &ops;
|
-panel.funcs = &ops;
-panel.dev = device;
)

Suggested-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190823193245.23876-3-laurent.pinchart@ideasonboard.com
2019-08-24 10:42:48 +02:00
..
Kconfig drm/panel: Add driver for the Toppoly TD043MTEA1 panel 2019-08-14 22:23:11 +02:00
Makefile drm/panel: Add driver for the Toppoly TD043MTEA1 panel 2019-08-14 22:23:11 +02:00
panel-arm-versatile.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-feiyang-fy07024di26a30d.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-ilitek-ili9322.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-ilitek-ili9881c.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-innolux-p079zca.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-jdi-lt070me05000.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-kingdisplay-kd097d04.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-lg-lb035q02.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-lg-lg4573.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-lvds.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-nec-nl8048hl11.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-novatek-nt39016.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-olimex-lcd-olinuxino.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-orisetech-otm8009a.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-osd-osd101t2587-53ts.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-panasonic-vvx10f034n00.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-raspberrypi-touchscreen.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-raydium-rm67191.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-raydium-rm68200.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-rocktech-jh057n00900.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-ronbo-rb070d30.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-samsung-ld9040.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-samsung-s6d16d0.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-samsung-s6e3ha2.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-samsung-s6e8aa0.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-samsung-s6e63j0x03.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-samsung-s6e63m0.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-seiko-43wvf1g.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-sharp-lq101r1sx01.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-sharp-ls037v7dw01.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-sharp-ls043t1le01.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-simple.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-sitronix-st7701.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-sitronix-st7789v.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-sony-acx565akm.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-tpo-td028ttec1.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-tpo-td043mtea1.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-tpo-tpg110.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00
panel-truly-nt35597.c drm/panel: Initialise panel dev and funcs through drm_panel_init() 2019-08-24 10:42:48 +02:00