]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915/dsi: Fix wrong initial value for GPIOs in bxt_gpio_set_value()
authorHans de Goede <hdegoede@redhat.com>
Fri, 3 Nov 2023 20:18:25 +0000 (22:18 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 22 Nov 2023 16:50:36 +0000 (18:50 +0200)
Fix wrong initial value for GPIOs in bxt_gpio_set_value().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231103201831.1037416-11-andriy.shevchenko@linux.intel.com
drivers/gpu/drm/i915/display/intel_dsi_vbt.c

index 8e6beef90e5ed7e26247e43240d7061ad1e21b46..0f9da0168a7b456be9499ef25594cce374b5e195 100644 (file)
@@ -356,9 +356,7 @@ static void bxt_gpio_set_value(struct intel_connector *connector,
        if (!gpio_desc) {
                gpio_desc = devm_gpiod_get_index(dev_priv->drm.dev,
                                                 NULL, gpio_index,
-                                                value ? GPIOD_OUT_LOW :
-                                                GPIOD_OUT_HIGH);
-
+                                                value ? GPIOD_OUT_HIGH : GPIOD_OUT_LOW);
                if (IS_ERR_OR_NULL(gpio_desc)) {
                        drm_err(&dev_priv->drm,
                                "GPIO index %u request failed (%ld)\n",