Skip to content

Commit 95f2dec

Browse files
committed
drm/i915/display: drop a number of dependencies on i915_drv.h
With the switch to an unordered workqueue dedicated to display, we've stopped using struct drm_i915_private in a number of places, and can drop the dependencies on i915_drv.h. Cc: Luca Coelho <[email protected]> Reviewed-by: Luca Coelho <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6480654 commit 95f2dec

File tree

8 files changed

+17
-9
lines changed

8 files changed

+17
-9
lines changed

drivers/gpu/drm/i915/display/intel_dmc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@
2626
#include <linux/firmware.h>
2727
#include <drm/drm_vblank.h>
2828

29-
#include "i915_drv.h"
29+
#include <drm/drm_file.h>
30+
#include <drm/drm_print.h>
31+
3032
#include "i915_reg.h"
33+
#include "i915_utils.h"
3134
#include "intel_crtc.h"
3235
#include "intel_de.h"
3336
#include "intel_display_power_well.h"

drivers/gpu/drm/i915/display/intel_dmc_wl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#include <drm/drm_print.h>
99

10-
#include "i915_drv.h"
1110
#include "intel_de.h"
1211
#include "intel_display_regs.h"
1312
#include "intel_dmc_regs.h"

drivers/gpu/drm/i915/display/intel_drrs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
#include <linux/debugfs.h>
77

8-
#include "i915_drv.h"
8+
#include <drm/drm_print.h>
9+
910
#include "intel_atomic.h"
1011
#include "intel_de.h"
1112
#include "intel_display_regs.h"

drivers/gpu/drm/i915/display/intel_encoder.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
#include <linux/workqueue.h>
77

8-
#include "i915_drv.h"
98
#include "intel_display_core.h"
109
#include "intel_display_types.h"
1110
#include "intel_encoder.h"
@@ -32,7 +31,7 @@ void intel_encoder_link_check_flush_work(struct intel_encoder *encoder)
3231

3332
void intel_encoder_link_check_queue_work(struct intel_encoder *encoder, int delay_ms)
3433
{
35-
struct intel_display *display = to_i915(encoder->base.dev)->display;
34+
struct intel_display *display = to_intel_display(encoder);
3635

3736
mod_delayed_work(display->wq.unordered,
3837
&encoder->link_check_work, msecs_to_jiffies(delay_ms));

drivers/gpu/drm/i915/display/intel_hdcp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
#include <linux/random.h>
1515

1616
#include <drm/display/drm_hdcp_helper.h>
17+
#include <drm/drm_print.h>
1718
#include <drm/intel/i915_component.h>
1819

19-
#include "i915_drv.h"
2020
#include "i915_reg.h"
21+
#include "i915_utils.h"
2122
#include "intel_connector.h"
2223
#include "intel_de.h"
2324
#include "intel_display_power.h"
@@ -32,6 +33,7 @@
3233
#include "intel_hdcp_regs.h"
3334
#include "intel_hdcp_shim.h"
3435
#include "intel_pcode.h"
36+
#include "intel_step.h"
3537

3638
#define USE_HDCP_GSC(__display) (DISPLAY_VER(__display) >= 14)
3739

drivers/gpu/drm/i915/display/intel_opregion.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@
3131
#include <acpi/video.h>
3232

3333
#include <drm/drm_edid.h>
34+
#include <drm/drm_file.h>
35+
#include <drm/drm_print.h>
3436

35-
#include "i915_drv.h"
37+
#include "i915_utils.h"
3638
#include "intel_acpi.h"
3739
#include "intel_backlight.h"
3840
#include "intel_display_core.h"

drivers/gpu/drm/i915/display/intel_pps.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55

66
#include <linux/debugfs.h>
77

8+
#include <drm/drm_print.h>
9+
810
#include "g4x_dp.h"
9-
#include "i915_drv.h"
1011
#include "i915_reg.h"
12+
#include "i915_utils.h"
1113
#include "intel_de.h"
1214
#include "intel_display_power_well.h"
1315
#include "intel_display_regs.h"

drivers/gpu/drm/i915/display/intel_psr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <drm/drm_debugfs.h>
2929
#include <drm/drm_vblank.h>
3030

31-
#include "i915_drv.h"
3231
#include "i915_reg.h"
3332
#include "intel_alpm.h"
3433
#include "intel_atomic.h"
@@ -48,6 +47,7 @@
4847
#include "intel_psr.h"
4948
#include "intel_psr_regs.h"
5049
#include "intel_snps_phy.h"
50+
#include "intel_step.h"
5151
#include "intel_vblank.h"
5252
#include "intel_vrr.h"
5353
#include "skl_universal_plane.h"

0 commit comments

Comments
 (0)