]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: slot-gpio: Remove override_active_level on WP
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Feb 2019 09:30:22 +0000 (10:30 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Feb 2019 07:40:58 +0000 (08:40 +0100)
commitdc21d6b6a4977da3ca3beaeb5f01e830fa26cb20
treeeae8ed69f4c78dc2d52009e61678cca1149ca8df
parent8976f233b9cb89848534a767746354354b4e9ebe
mmc: slot-gpio: Remove override_active_level on WP

The argument "override_active_level" made it possible to
enforce a specific polarity on the write-protect
GPIO line. All callers in the kernel pass "false" to this
call after I have converted all drivers to use GPIO machine
descriptors, so remove the argument and clean out this.

This kind of polarity inversion should be handled by the
GPIO descriptor inside the GPIO library if needed.

This rids us of one instance of the kludgy calls into
the gpiod_get_raw_value() API.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/host.c
drivers/mmc/core/slot-gpio.c
drivers/mmc/host/davinci_mmc.c
drivers/mmc/host/mmc_spi.c
drivers/mmc/host/mmci.c
drivers/mmc/host/pxamci.c
drivers/mmc/host/s3cmci.c
drivers/mmc/host/sdhci-esdhc-imx.c
include/linux/mmc/slot-gpio.h