drm/i915/dsi: fix MIPI_BKLT_EN_1 native GPIO index
authorjsg <jsg@openbsd.org>
Fri, 13 Jan 2023 02:03:06 +0000 (02:03 +0000)
committerjsg <jsg@openbsd.org>
Fri, 13 Jan 2023 02:03:06 +0000 (02:03 +0000)
From Jani Nikula
0c84b7de26588f4032992ee2a1df6c3d367be829 in linux-6.1.y/6.1.5
6217e9f05a74df48c77ee68993d587cdfdb1feb7 in mainline linux

sys/dev/pci/drm/i915/display/intel_dsi_vbt.c

index 3dfafae..6d2ba11 100644 (file)
@@ -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);