Commit ce672a1b authored by Sam Ravnborg's avatar Sam Ravnborg

drm/vkms: drop use of drmP.h

Drop use of the deprecated drmP.h header.
Replace it with the necessary includes in the individual .c files.
The header files was self-contained, and extra includes were not added
there.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarRodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Acked-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Cc: Haneen Mohammed <hamohammed.sa@gmail.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: David Airlie <airlied@linux.ie>
Link: https://patchwork.freedesktop.org/patch/msgid/20190630061922.7254-13-sam@ravnborg.org
parent c0f4b75c
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+
#include "vkms_drv.h"
#include <linux/crc32.h> #include <linux/crc32.h>
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_vblank.h>
#include "vkms_drv.h"
/** /**
* compute_crc - Compute CRC value on output frame * compute_crc - Compute CRC value on output frame
......
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+
#include "vkms_drv.h"
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_probe_helper.h> #include <drm/drm_probe_helper.h>
#include <drm/drm_vblank.h>
#include "vkms_drv.h"
static enum hrtimer_restart vkms_vblank_simulate(struct hrtimer *timer) static enum hrtimer_restart vkms_vblank_simulate(struct hrtimer *timer)
{ {
......
...@@ -10,12 +10,19 @@ ...@@ -10,12 +10,19 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <drm/drm_gem.h> #include <linux/platform_device.h>
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_drv.h>
#include <drm/drm_fb_helper.h> #include <drm/drm_fb_helper.h>
#include <drm/drm_file.h>
#include <drm/drm_gem.h>
#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_ioctl.h>
#include <drm/drm_probe_helper.h> #include <drm/drm_probe_helper.h>
#include <drm/drm_vblank.h>
#include "vkms_drv.h" #include "vkms_drv.h"
#define DRIVER_NAME "vkms" #define DRIVER_NAME "vkms"
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
#ifndef _VKMS_DRV_H_ #ifndef _VKMS_DRV_H_
#define _VKMS_DRV_H_ #define _VKMS_DRV_H_
#include <drm/drmP.h> #include <linux/hrtimer.h>
#include <drm/drm.h> #include <drm/drm.h>
#include <drm/drm_gem.h> #include <drm/drm_gem.h>
#include <drm/drm_encoder.h> #include <drm/drm_encoder.h>
#include <linux/hrtimer.h>
#define XRES_MIN 20 #define XRES_MIN 20
#define YRES_MIN 20 #define YRES_MIN 20
......
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+
#include <linux/shmem_fs.h> #include <linux/shmem_fs.h>
#include <linux/vmalloc.h>
#include "vkms_drv.h" #include "vkms_drv.h"
......
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+
#include "vkms_drv.h"
#include <drm/drm_plane_helper.h>
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_plane_helper.h>
#include "vkms_drv.h"
static const u32 vkms_formats[] = { static const u32 vkms_formats[] = {
DRM_FORMAT_XRGB8888, DRM_FORMAT_XRGB8888,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment