Skip to content

Commit 8ab1df5

Browse files
committed
drm/i915/dsi: remove dependency on i915_drv.h
Remove final references to struct drm_i915_private and drop dependency on i915_drv.h. Reviewed-by: Gustavo Sousa <[email protected]> Link: https://lore.kernel.org/r/2cee3cd9d7d9bec8dfe9c21fe5d172b1843b3d97.1746529001.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <[email protected]>
1 parent d66f470 commit 8ab1df5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
*/
55

66
#include <drm/drm_mipi_dsi.h>
7+
#include <drm/drm_print.h>
78

8-
#include "i915_drv.h"
9+
#include "intel_display_core.h"
910
#include "intel_dsi.h"
1011
#include "intel_panel.h"
1112

@@ -116,14 +117,14 @@ struct intel_dsi_host *intel_dsi_host_init(struct intel_dsi *intel_dsi,
116117
enum drm_panel_orientation
117118
intel_dsi_get_panel_orientation(struct intel_connector *connector)
118119
{
119-
struct drm_i915_private *dev_priv = to_i915(connector->base.dev);
120+
struct intel_display *display = to_intel_display(connector);
120121
enum drm_panel_orientation orientation;
121122

122123
orientation = connector->panel.vbt.dsi.orientation;
123124
if (orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN)
124125
return orientation;
125126

126-
orientation = dev_priv->display.vbt.orientation;
127+
orientation = display->vbt.orientation;
127128
if (orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN)
128129
return orientation;
129130

0 commit comments

Comments
 (0)