aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-02-05 10:30:22 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2019-02-25 08:40:58 +0100
commita2b760a60194aaa754dc78dd037d81ee6c3508a1 (patch)
treeeae8ed69f4c78dc2d52009e61678cca1149ca8df /include/linux/mmc
parentmmc: bcm2835: Deduplicate reset of driver data on remove (diff)
downloadwireguard-linux-a2b760a60194aaa754dc78dd037d81ee6c3508a1.tar.xz
wireguard-linux-a2b760a60194aaa754dc78dd037d81ee6c3508a1.zip
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>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/slot-gpio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mmc/slot-gpio.h b/include/linux/mmc/slot-gpio.h
index feebd7aa6f5c..9fd3ce64a885 100644
--- a/include/linux/mmc/slot-gpio.h
+++ b/include/linux/mmc/slot-gpio.h
@@ -22,7 +22,7 @@ int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id,
unsigned int idx, bool override_active_level,
unsigned int debounce, bool *gpio_invert);
int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id,
- unsigned int idx, bool override_active_level,
+ unsigned int idx,
unsigned int debounce, bool *gpio_invert);
void mmc_gpio_set_cd_isr(struct mmc_host *host,
irqreturn_t (*isr)(int irq, void *dev_id));