Skip to content

Commit 617ed6c

Browse files
committed
drm/i915/dsi: split out icl_dsi.h
Follow the convention of corresponding .h for .c. Signed-off-by: Jani Nikula <[email protected]> Reviewed-by: Rodrigo Vivi <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 7570d06 commit 617ed6c

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

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

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

31+
#include "icl_dsi.h"
3132
#include "intel_atomic.h"
3233
#include "intel_backlight.h"
3334
#include "intel_combo_phy.h"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* SPDX-License-Identifier: MIT */
2+
/*
3+
* Copyright © 2021 Intel Corporation
4+
*/
5+
6+
#ifndef __ICL_DSI_H__
7+
#define __ICL_DSI_H__
8+
9+
struct drm_i915_private;
10+
struct intel_crtc_state;
11+
12+
void icl_dsi_init(struct drm_i915_private *i915);
13+
void icl_dsi_frame_update(struct intel_crtc_state *crtc_state);
14+
15+
#endif /* __ICL_DSI_H__ */

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "i915_trace.h"
1616
#include "i915_vgpu.h"
17-
17+
#include "icl_dsi.h"
1818
#include "intel_atomic.h"
1919
#include "intel_atomic_plane.h"
2020
#include "intel_color.h"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
#include "g4x_dp.h"
7474
#include "g4x_hdmi.h"
7575
#include "i915_drv.h"
76+
#include "icl_dsi.h"
7677
#include "intel_acpi.h"
7778
#include "intel_atomic.h"
7879
#include "intel_atomic_plane.h"

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,6 @@ static inline u16 intel_dsi_encoder_ports(struct intel_encoder *encoder)
166166
return enc_to_intel_dsi(encoder)->ports;
167167
}
168168

169-
/* icl_dsi.c */
170-
void icl_dsi_init(struct drm_i915_private *dev_priv);
171-
void icl_dsi_frame_update(struct intel_crtc_state *crtc_state);
172-
173-
/* intel_dsi.c */
174169
int intel_dsi_bitrate(const struct intel_dsi *intel_dsi);
175170
int intel_dsi_tlpx_ns(const struct intel_dsi *intel_dsi);
176171
enum drm_panel_orientation

0 commit comments

Comments
 (0)