Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

As of commit 92ac7de3175e3 ("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: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20250620074951.32758-1-brgl@bgdev.pl

authored by

Bartosz Golaszewski and committed by
Douglas Anderson
bffc0692 e6565e76

-5
-5
drivers/gpu/drm/bridge/ti-sn65dsi86.c
··· 1677 1677 { 1678 1678 struct ti_sn65dsi86 *pdata = gpiochip_get_data(chip); 1679 1679 1680 - if (!test_bit(offset, pdata->gchip_output)) { 1681 - dev_err(pdata->dev, "Ignoring GPIO set while input\n"); 1682 - return -EPERM; 1683 - } 1684 - 1685 1680 val &= 1; 1686 1681 return regmap_update_bits(pdata->regmap, SN_GPIO_IO_REG, 1687 1682 BIT(SN_GPIO_OUTPUT_SHIFT + offset),