Commit bffc0692 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Douglas Anderson
Browse files

drm/bridge: ti-sn65dsi86: remove unnecessary GPIO line direction check



As of commit 92ac7de3 ("gpiolib: don't allow setting values on input
lines"), the GPIO core makes sure values cannot be set on input lines.
Remove the unnecessary check.

Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20250620074951.32758-1-brgl@bgdev.pl
parent e6565e76
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1677,11 +1677,6 @@ static int ti_sn_bridge_gpio_set(struct gpio_chip *chip, unsigned int offset,
{
	struct ti_sn65dsi86 *pdata = gpiochip_get_data(chip);

	if (!test_bit(offset, pdata->gchip_output)) {
		dev_err(pdata->dev, "Ignoring GPIO set while input\n");
		return -EPERM;
	}

	val &= 1;
	return regmap_update_bits(pdata->regmap, SN_GPIO_IO_REG,
				  BIT(SN_GPIO_OUTPUT_SHIFT + offset),