Skip to content

Commit 1fdac12

Browse files
committed
drm/i915/dsi: drop unused but set variable vbp
Prepare for re-enabling -Wunused-but-set-variable. The vbp is not used for anything in the readout, as we get e.g. crtc_vtotal from BXT_MIPI_TRANS_VTOTAL. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Jouni Högander <jouni.hogander@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/27efd245aa75226adcac01eff7b21781970f2736.1685119007.git.jani.nikula@intel.com
1 parent ac12d25 commit 1fdac12

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ static void bxt_dsi_get_pipe_config(struct intel_encoder *encoder,
10391039
unsigned int lane_count = intel_dsi->lane_count;
10401040
unsigned int bpp, fmt;
10411041
enum port port;
1042-
u16 hactive, hfp, hsync, hbp, vfp, vsync, vbp;
1042+
u16 hactive, hfp, hsync, hbp, vfp, vsync;
10431043
u16 hfp_sw, hsync_sw, hbp_sw;
10441044
u16 crtc_htotal_sw, crtc_hsync_start_sw, crtc_hsync_end_sw,
10451045
crtc_hblank_start_sw, crtc_hblank_end_sw;
@@ -1104,7 +1104,6 @@ static void bxt_dsi_get_pipe_config(struct intel_encoder *encoder,
11041104
/* vertical values are in terms of lines */
11051105
vfp = intel_de_read(dev_priv, MIPI_VFP_COUNT(port));
11061106
vsync = intel_de_read(dev_priv, MIPI_VSYNC_PADDING_COUNT(port));
1107-
vbp = intel_de_read(dev_priv, MIPI_VBP_COUNT(port));
11081107

11091108
adjusted_mode->crtc_htotal = hactive + hfp + hsync + hbp;
11101109
adjusted_mode->crtc_hsync_start = hfp + adjusted_mode->crtc_hdisplay;

0 commit comments

Comments
 (0)