From: jsg Date: Fri, 13 Jan 2023 02:03:06 +0000 (+0000) Subject: drm/i915/dsi: fix MIPI_BKLT_EN_1 native GPIO index X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a8122dae3eafb2e341940de1f02edf6fa9addcd9;p=openbsd drm/i915/dsi: fix MIPI_BKLT_EN_1 native GPIO index From Jani Nikula 0c84b7de26588f4032992ee2a1df6c3d367be829 in linux-6.1.y/6.1.5 6217e9f05a74df48c77ee68993d587cdfdb1feb7 in mainline linux --- diff --git a/sys/dev/pci/drm/i915/display/intel_dsi_vbt.c b/sys/dev/pci/drm/i915/display/intel_dsi_vbt.c index 3dfafae89ce..6d2ba11ce1b 100644 --- a/sys/dev/pci/drm/i915/display/intel_dsi_vbt.c +++ b/sys/dev/pci/drm/i915/display/intel_dsi_vbt.c @@ -437,7 +437,7 @@ static void icl_native_gpio_set_value(struct drm_i915_private *dev_priv, break; case MIPI_BKLT_EN_1: case MIPI_BKLT_EN_2: - index = gpio == MIPI_AVDD_EN_1 ? 0 : 1; + index = gpio == MIPI_BKLT_EN_1 ? 0 : 1; intel_de_rmw(dev_priv, PP_CONTROL(index), EDP_BLC_ENABLE, value ? EDP_BLC_ENABLE : 0);