summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-04-04 23:55:14 +0700
committerLinus Walleij <linus.walleij@linaro.org>2019-04-08 11:17:43 +0200
commit27157af66324d529b43231c12b5d1e1a3e9fa620 (patch)
tree7113bdece028625a5e3d93b82eb1883c894c7ae6 /drivers
parent4f2f95e9a81299266a4a4f771ac6eb9395528d73 (diff)
gpio: mmio: Drop bgpio_dir_inverted
The direction inversion semantics are now handled by simply using the registers for in/out available, no need to keep track of inversion semantics exmplicitly anymore. Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Reviewed-by: Jan Kotas <jank@cadence.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio-mmio.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpio/gpio-mmio.c b/drivers/gpio/gpio-mmio.c
index 04be18b95485..6f904c874678 100644
--- a/drivers/gpio/gpio-mmio.c
+++ b/drivers/gpio/gpio-mmio.c
@@ -533,13 +533,6 @@ static int bgpio_setup_direction(struct gpio_chip *gc,
gc->direction_output = bgpio_dir_out;
gc->direction_input = bgpio_dir_in;
gc->get_direction = bgpio_get_dir;
- /*
- * If only dirin is available, this means we need
- * inverted semantics when handling get/set registers
- * so detect this here.
- */
- if (dirin && !dirout)
- gc->bgpio_dir_inverted = true;
} else {
if (flags & BGPIOF_NO_OUTPUT)
gc->direction_output = bgpio_dir_out_err;