]> 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)
commit8f66a5c61a98ac69a054b72d872976e2d42ac705
treeeae8ed69f4c78dc2d52009e61678cca1149ca8df
parentf7d79c3babf7ad349c1fd247021c37440b2f93da
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