linux/drivers/gpu/drm/omapdrm
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
..
displays drm: omapdrm: displays: Get encoder source at connect time 2018-03-01 09:18:18 +02:00
dss drm: omapdrm: dss: Support passing private data to debugfs show handlers 2018-03-01 09:18:18 +02:00
Kconfig drm/omap: Get rid of DRM_OMAP_NUM_CRTCS config option 2017-04-03 12:36:40 +03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
omap_connector.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
omap_connector.h drm: omapdrm: Deconstruct the omap_drv.h header. 2017-12-19 10:32:00 +02:00
omap_crtc.c drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
omap_crtc.h drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
omap_debugfs.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
omap_dmm_priv.h drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
omap_dmm_tiler.c drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
omap_dmm_tiler.h drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
omap_drv.c drm: omapdrm: Split init and cleanup from probe and remove functions 2018-03-01 09:18:18 +02:00
omap_drv.h drm: omapdrm: Split init and cleanup from probe and remove functions 2018-03-01 09:18:18 +02:00
omap_encoder.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
omap_encoder.h drm: omapdrm: Deconstruct the omap_drv.h header. 2017-12-19 10:32:00 +02:00
omap_fb.c drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
omap_fb.h drm: omapdrm: Deconstruct the omap_drv.h header. 2017-12-19 10:32:00 +02:00
omap_fbdev.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
omap_fbdev.h drm: omapdrm: Deconstruct the omap_drv.h header. 2017-12-19 10:32:00 +02:00
omap_gem_dmabuf.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
omap_gem.c drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
omap_gem.h drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
omap_irq.c drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
omap_irq.h drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
omap_plane.c drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
omap_plane.h drm: omapdrm: Deconstruct the omap_drv.h header. 2017-12-19 10:32:00 +02:00
tcm-sita.c drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
tcm-sita.h drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
tcm.h drm: omapdrm: Use kernel integer types 2018-03-01 09:09:10 +02:00
TODO