Commit ae19ba91 authored by Jani Nikula's avatar Jani Nikula
Browse files

drm/i915/display: include media/cec-notifier.h and linux/debugfs.h where needed



Use a forward declaration for struct cec_notifier instead of including
media/cec-notifier.h in intel_display_types.h, and only include it where
needed.

Also realize that a lot of places depend on including linux/debugfs.h
via intel_display_types.h -> media/cec-notifier.h -> media/cec.h, and
include that too where needed.

v2: hsw_ips.c also needs debugfs.h (kernel test robot)

Reviewed-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240827104521.4151471-1-jani.nikula@intel.com
parent 5cc65297
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@
 * Copyright © 2022 Intel Corporation
 */

#include <linux/debugfs.h>

#include "hsw_ips.h"
#include "i915_drv.h"
#include "i915_reg.h"
+2 −0
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@
 * Copyright 2024, Intel Corporation.
 */

#include <linux/debugfs.h>

#include "intel_alpm.h"
#include "intel_crtc.h"
#include "intel_de.h"
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
 *
 */

#include <linux/debugfs.h>
#include <linux/firmware.h>

#include <drm/display/drm_dp_helper.h>
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
 * DEALINGS IN THE SOFTWARE.
 */

#include <linux/debugfs.h>
#include <linux/time.h>

#include <drm/drm_fixed.h>
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
 * Copyright © 2020 Intel Corporation
 */

#include <linux/debugfs.h>
#include <linux/string_helpers.h>

#include <drm/drm_debugfs.h>
Loading