drm/crc: make drm_debugfs_crc.h self-contained and fix kernel-doc
authorJani Nikula <jani.nikula@intel.com>
Wed, 6 Mar 2024 18:31:12 +0000 (20:31 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 7 Mar 2024 15:17:25 +0000 (17:17 +0200)
Add a number of require includes and forward declare struct
drm_crtc. s/crc/crcs/ kernel-doc to match code.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/290b006bb348a03bd7c4c062d337df21fdaced53.1709749576.git.jani.nikula@intel.com
include/drm/drm_debugfs_crc.h

index b225eeb30d05fc5141a5aec10573daa4afee5b1b..1b4c98c2f8383c12e8b8d95479e6384428c4772e 100644 (file)
 #ifndef __DRM_DEBUGFS_CRC_H__
 #define __DRM_DEBUGFS_CRC_H__
 
+#include <linux/spinlock_types.h>
+#include <linux/types.h>
+#include <linux/wait.h>
+
+struct drm_crtc;
+
 #define DRM_MAX_CRC_NR         10
 
 /**
  * struct drm_crtc_crc_entry - entry describing a frame's content
  * @has_frame_counter: whether the source was able to provide a frame number
  * @frame: number of the frame this CRC is about, if @has_frame_counter is true
- * @crc: array of values that characterize the frame
+ * @crcs: array of values that characterize the frame
  */
 struct drm_crtc_crc_entry {
        bool has_frame_counter;