Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/tilcdc: drop use of drmP.h

Dropped drmP.h and all other header files not used by tilcdc_drv.h.
Added the minimal includes and forwards to make the header file
self-contained.

Then dropped the remaining uses of drmP.h and fixed all fall-out.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Emil Velikov <emil.velikov@collabora.com>
Cc: Jyri Sarha <jsarha@ti.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190716064220.18157-15-sam@ravnborg.org

+56 -34
+11 -7
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
··· 15 15 * this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 17 18 + #include <linux/delay.h> 19 + #include <linux/dma-mapping.h> 20 + #include <linux/of_graph.h> 21 + #include <linux/pm_runtime.h> 22 + 18 23 #include <drm/drm_atomic.h> 19 24 #include <drm/drm_atomic_helper.h> 20 25 #include <drm/drm_crtc.h> 21 - #include <drm/drm_flip_work.h> 22 - #include <drm/drm_plane_helper.h> 23 - #include <linux/workqueue.h> 24 - #include <linux/completion.h> 25 - #include <linux/dma-mapping.h> 26 - #include <linux/of_graph.h> 27 - #include <linux/math64.h> 26 + #include <drm/drm_fb_cma_helper.h> 27 + #include <drm/drm_fourcc.h> 28 + #include <drm/drm_gem_cma_helper.h> 29 + #include <drm/drm_modeset_helper_vtables.h> 30 + #include <drm/drm_print.h> 31 + #include <drm/drm_vblank.h> 28 32 29 33 #include "tilcdc_drv.h" 30 34 #include "tilcdc_regs.h"
+15 -4
drivers/gpu/drm/tilcdc/tilcdc_drv.c
··· 18 18 /* LCDC DRM driver, based on da8xx-fb */ 19 19 20 20 #include <linux/component.h> 21 + #include <linux/mod_devicetable.h> 22 + #include <linux/module.h> 21 23 #include <linux/pinctrl/consumer.h> 22 - #include <linux/suspend.h> 23 - #include <drm/drm_atomic.h> 24 + #include <linux/platform_device.h> 25 + #include <linux/pm_runtime.h> 26 + 24 27 #include <drm/drm_atomic_helper.h> 28 + #include <drm/drm_debugfs.h> 29 + #include <drm/drm_drv.h> 25 30 #include <drm/drm_fb_helper.h> 31 + #include <drm/drm_fourcc.h> 32 + #include <drm/drm_gem_cma_helper.h> 26 33 #include <drm/drm_gem_framebuffer_helper.h> 34 + #include <drm/drm_irq.h> 35 + #include <drm/drm_mm.h> 27 36 #include <drm/drm_probe_helper.h> 37 + #include <drm/drm_vblank.h> 38 + 28 39 29 40 #include "tilcdc_drv.h" 41 + #include "tilcdc_external.h" 42 + #include "tilcdc_panel.h" 30 43 #include "tilcdc_regs.h" 31 44 #include "tilcdc_tfp410.h" 32 - #include "tilcdc_panel.h" 33 - #include "tilcdc_external.h" 34 45 35 46 static LIST_HEAD(module_list); 36 47
+16 -13
drivers/gpu/drm/tilcdc/tilcdc_drv.h
··· 18 18 #ifndef __TILCDC_DRV_H__ 19 19 #define __TILCDC_DRV_H__ 20 20 21 - #include <linux/clk.h> 22 21 #include <linux/cpufreq.h> 23 - #include <linux/module.h> 24 - #include <linux/platform_device.h> 25 - #include <linux/pm.h> 26 - #include <linux/pm_runtime.h> 27 - #include <linux/slab.h> 28 - #include <linux/of.h> 29 - #include <linux/of_device.h> 30 - #include <linux/list.h> 22 + #include <linux/irqreturn.h> 31 23 32 - #include <drm/drmP.h> 33 - #include <drm/drm_bridge.h> 34 - #include <drm/drm_fb_cma_helper.h> 35 - #include <drm/drm_gem_cma_helper.h> 24 + #include <drm/drm_print.h> 25 + 26 + struct clk; 27 + struct workqueue_struct; 28 + 29 + struct drm_connector; 30 + struct drm_connector_helper_funcs; 31 + struct drm_crtc; 32 + struct drm_device; 33 + struct drm_display_mode; 34 + struct drm_encoder; 35 + struct drm_framebuffer; 36 + struct drm_minor; 37 + struct drm_pending_vblank_event; 38 + struct drm_plane; 36 39 37 40 /* Defaulting to pixel clock defined on AM335x */ 38 41 #define TILCDC_DEFAULT_MAX_PIXELCLOCK 126000
+1
drivers/gpu/drm/tilcdc/tilcdc_external.c
··· 10 10 11 11 #include <linux/component.h> 12 12 #include <linux/of_graph.h> 13 + 13 14 #include <drm/drm_atomic_helper.h> 14 15 #include <drm/drm_of.h> 15 16
+7 -4
drivers/gpu/drm/tilcdc/tilcdc_panel.c
··· 15 15 * this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 17 18 - #include <linux/pinctrl/pinmux.h> 19 - #include <linux/pinctrl/consumer.h> 20 - #include <linux/backlight.h> 21 18 #include <linux/gpio/consumer.h> 19 + #include <linux/pinctrl/consumer.h> 20 + #include <linux/platform_device.h> 21 + 22 22 #include <video/display_timing.h> 23 23 #include <video/of_display_timing.h> 24 24 #include <video/videomode.h> 25 - #include <drm/drm_atomic_helper.h> 25 + 26 + #include <drm/drm_atomic_state_helper.h> 27 + #include <drm/drm_connector.h> 28 + #include <drm/drm_modeset_helper_vtables.h> 26 29 #include <drm/drm_probe_helper.h> 27 30 28 31 #include "tilcdc_drv.h"
+1 -3
drivers/gpu/drm/tilcdc/tilcdc_plane.c
··· 15 15 * this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 17 18 - #include <drm/drmP.h> 19 - 20 18 #include <drm/drm_atomic.h> 21 19 #include <drm/drm_plane_helper.h> 22 20 #include <drm/drm_atomic_helper.h> 23 - #include <uapi/drm/drm_fourcc.h> 21 + #include <drm/drm_fourcc.h> 24 22 25 23 #include "tilcdc_drv.h" 26 24
+5 -3
drivers/gpu/drm/tilcdc/tilcdc_tfp410.c
··· 15 15 * this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 17 18 - #include <linux/i2c.h> 19 18 #include <linux/gpio.h> 19 + #include <linux/mod_devicetable.h> 20 20 #include <linux/of_gpio.h> 21 - #include <linux/pinctrl/pinmux.h> 22 - #include <linux/pinctrl/consumer.h> 21 + #include <linux/platform_device.h> 22 + 23 23 #include <drm/drm_atomic_helper.h> 24 + #include <drm/drm_encoder.h> 25 + #include <drm/drm_modeset_helper_vtables.h> 24 26 #include <drm/drm_probe_helper.h> 25 27 26 28 #include "tilcdc_drv.h"