diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-08-08 06:38:31 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-08-24 23:45:09 -0400 |
commit | 214fc309d1387e822d606a33a10e31cacfe83520 (patch) | |
tree | 2c266dd95d8da7f54d7b43c20e5c2c0ebe6165be /drivers/mmc/host/mvsdio.c | |
parent | 7725a52c03df4dff3ac3fc621749407fb319d47f (diff) |
mmc: slot-gpio: Add debouncing capability to mmc_gpio_request_cd()
Add a debounce parameter to the mmc_gpio_request_cd() function that
enables GPIO debouncing when set to a non-zero value. This can be used
by MMC host drivers to enable debouncing on the card detect signal.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/mvsdio.c')
-rw-r--r-- | drivers/mmc/host/mvsdio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c index 4ddd83f98658..06c5b0b28ebc 100644 --- a/drivers/mmc/host/mvsdio.c +++ b/drivers/mmc/host/mvsdio.c | |||
@@ -757,7 +757,8 @@ static int __init mvsd_probe(struct platform_device *pdev) | |||
757 | if (mvsd_data->gpio_card_detect && | 757 | if (mvsd_data->gpio_card_detect && |
758 | gpio_is_valid(mvsd_data->gpio_card_detect)) { | 758 | gpio_is_valid(mvsd_data->gpio_card_detect)) { |
759 | ret = mmc_gpio_request_cd(mmc, | 759 | ret = mmc_gpio_request_cd(mmc, |
760 | mvsd_data->gpio_card_detect); | 760 | mvsd_data->gpio_card_detect, |
761 | 0); | ||
761 | if (ret) | 762 | if (ret) |
762 | goto out; | 763 | goto out; |
763 | } else { | 764 | } else { |