OpenCloudOS-Kernel/drivers/gpu/drm/omapdrm/dss
Laurent Pinchart f33656e1fe drm: omapdrm: dss: Support passing private data to debugfs show handlers
To simplify implementation of debugfs seq_file show handlers, the driver
passes the pointer to the show function through the debugfs_create_file
data pointer. This prevents using the pointer to pass driver private
data to the show handler, and requires all handlers to use global
variables to access private data.

To prepare for the removal of global private data in the driver, rework
the debugfs infrastructure to allow passing a private data pointer to
show handlers.

The price to pay is explicit removal of debugfs files to free the
internally allocated memory. This is desirable anyway as debugfs entries
should be removed when a component driver is unbound, otherwise crashes
will occur due to access to freed memory when the components will be
dynamically allocated instead of stored in global variables.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
2018-03-01 09:18:18 +02:00
..
Kconfig omapdrm: hdmi4: hook up the HDMI CEC support 2017-10-12 10:49:14 +03:00
Makefile main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
base.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
core.c drm: omapdrm: Simplify platform registration 2017-12-19 11:21:32 +02:00
dispc.c drm: omapdrm: dss: Support passing private data to debugfs show handlers 2018-03-01 09:18:18 +02:00
dispc.h drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
dispc_coefs.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
display.c drm: omapdrm: dss: Make omapdss_default_get_timings static 2018-03-01 09:18:18 +02:00
dpi.c drm: omapdrm: dss: Pass DSS pointer to dss clock functions 2018-03-01 09:18:18 +02:00
dsi.c drm: omapdrm: dss: Support passing private data to debugfs show handlers 2018-03-01 09:18:18 +02:00
dss-of.c drm: omapdrm: dss: Don't export functions internal to omapdss-base 2018-03-01 09:18:18 +02:00
dss.c drm: omapdrm: dss: Support passing private data to debugfs show handlers 2018-03-01 09:18:18 +02:00
dss.h drm: omapdrm: dss: Support passing private data to debugfs show handlers 2018-03-01 09:18:18 +02:00
hdmi.h drm: omapdrm: dss: Support passing private data to debugfs show handlers 2018-03-01 09:18:18 +02:00
hdmi4.c drm: omapdrm: dss: Support passing private data to debugfs show handlers 2018-03-01 09:18:18 +02:00
hdmi4_cec.c omapdrm/dss/hdmi4_cec: fix interrupt handling 2018-01-02 14:20:10 +02:00
hdmi4_cec.h omapdrm: hdmi4_cec: add OMAP4 HDMI CEC support 2017-10-12 10:49:14 +03:00
hdmi4_core.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
hdmi4_core.h omapdrm: hdmi4: make low-level functions available 2017-10-12 10:49:14 +03:00
hdmi5.c drm: omapdrm: dss: Support passing private data to debugfs show handlers 2018-03-01 09:18:18 +02:00
hdmi5_core.c drm: omapdrm: Use unsigned int type 2018-03-01 09:09:10 +02:00
hdmi5_core.h
hdmi_common.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hdmi_phy.c drm: omapdrm: Use unsigned int type 2018-03-01 09:09:10 +02:00
hdmi_pll.c drm: omapdrm: dss: Pass PLL pointer to dss_ctrl_pll_enable() 2018-03-01 09:18:18 +02:00
hdmi_wp.c drm: omapdrm: Use unsigned int type 2018-03-01 09:09:10 +02:00
omapdss-boot-init.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
omapdss.h drm: omapdrm: dss: Make omapdss_default_get_timings static 2018-03-01 09:18:18 +02:00
output.c drm: omapdrm: dss: Don't export functions internal to omapdss-base 2018-03-01 09:18:18 +02:00
pll.c drm: omapdrm: Use unsigned int type 2018-03-01 09:09:10 +02:00
sdi.c drm: omapdrm: dss: Pass DSS pointer to dss clock functions 2018-03-01 09:18:18 +02:00
venc.c drm: omapdrm: dss: Support passing private data to debugfs show handlers 2018-03-01 09:18:18 +02:00
video-pll.c drm: omapdrm: dss: Pass PLL pointer to dss_ctrl_pll_enable() 2018-03-01 09:18:18 +02:00