Skip to content

Commit 7570d06

Browse files
committed
drm/i915/dsi: split out vlv_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 01e5262 commit 7570d06

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
#include "skl_universal_plane.h"
112112
#include "vlv_dsi_pll.h"
113113
#include "vlv_sideband.h"
114+
#include "vlv_dsi.h"
114115

115116
static void intel_set_transcoder_timings(const struct intel_crtc_state *crtc_state);
116117
static void intel_set_pipe_src_size(const struct intel_crtc_state *crtc_state);

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,11 @@ int intel_dsi_bitrate(const struct intel_dsi *intel_dsi);
175175
int intel_dsi_tlpx_ns(const struct intel_dsi *intel_dsi);
176176
enum drm_panel_orientation
177177
intel_dsi_get_panel_orientation(struct intel_connector *connector);
178-
179-
/* vlv_dsi.c */
180-
void vlv_dsi_wait_for_fifo_empty(struct intel_dsi *intel_dsi, enum port port);
181-
enum mipi_dsi_pixel_format pixel_format_from_register_bits(u32 fmt);
182178
int intel_dsi_get_modes(struct drm_connector *connector);
183179
enum drm_mode_status intel_dsi_mode_valid(struct drm_connector *connector,
184180
struct drm_display_mode *mode);
185181
struct intel_dsi_host *intel_dsi_host_init(struct intel_dsi *intel_dsi,
186182
const struct mipi_dsi_host_ops *funcs,
187183
enum port port);
188-
void vlv_dsi_init(struct drm_i915_private *dev_priv);
189184

190185
#endif /* _INTEL_DSI_H */

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
#include "intel_display_types.h"
4343
#include "intel_dsi.h"
4444
#include "intel_dsi_vbt.h"
45+
#include "vlv_dsi.h"
4546
#include "vlv_sideband.h"
4647

4748
#define MIPI_TRANSFER_MODE_SHIFT 0

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
#include "intel_fifo_underrun.h"
4343
#include "intel_panel.h"
4444
#include "skl_scaler.h"
45+
#include "vlv_dsi.h"
4546
#include "vlv_dsi_pll.h"
4647
#include "vlv_sideband.h"
4748

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* SPDX-License-Identifier: MIT */
2+
/*
3+
* Copyright © 2021 Intel Corporation
4+
*/
5+
6+
#ifndef __VLV_DSI_H__
7+
#define __VLV_DSI_H__
8+
9+
#include <linux/types.h>
10+
11+
enum port;
12+
struct drm_i915_private;
13+
struct intel_dsi;
14+
15+
void vlv_dsi_wait_for_fifo_empty(struct intel_dsi *intel_dsi, enum port port);
16+
enum mipi_dsi_pixel_format pixel_format_from_register_bits(u32 fmt);
17+
void vlv_dsi_init(struct drm_i915_private *dev_priv);
18+
19+
#endif /* __VLV_DSI_H__ */

0 commit comments

Comments
 (0)