drm/bridge: ti-sn65dsi86: remove unnecessary GPIO line direction check
Subsystems (4)
PATCH 1/1 drm/bridge: ti-sn65dsi86: remove unnecessary GPIO line direction check
From: Bartosz Golaszewski <[email protected]>
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.
--- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/gpu/drm/bridge/ti-sn65dsi86.c +0 -5
@@ -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),
Signature · 1 line
2.48.1
Hi,
Quoted 11 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
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 <[email protected]>--- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 5 ----- 1 file changed, 5 deletions(-)
Hi,
Quoted 11 lines · Doug Anderson
Hi,
Quoted 7 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
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.
Quoted 6 lines
Quoted 4 lines
Signed-off-by Bartosz Golaszewski <[email protected]>--- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 5 ----- 1 file changed, 5 deletions(-)Reviewed-by Douglas Anderson <[email protected]>
Pushed to drm-misc-next:
[1/1] drm/bridge: ti-sn65dsi86: remove unnecessary GPIO line direction check
commit: bffc0692359f8d06d989657c00b274802a791692