hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/include/linux/mmc/slot-gpio.h
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Generic GPIO card-detect helper header
34 *
45 * Copyright (C) 2011, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107
118 #ifndef MMC_SLOT_GPIO_H
....@@ -17,18 +14,12 @@
1714 struct mmc_host;
1815
1916 int mmc_gpio_get_ro(struct mmc_host *host);
20
-int mmc_gpio_request_ro(struct mmc_host *host, unsigned int gpio);
21
-
2217 int mmc_gpio_get_cd(struct mmc_host *host);
23
-int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio,
24
- unsigned int debounce);
25
-
2618 int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id,
2719 unsigned int idx, bool override_active_level,
28
- unsigned int debounce, bool *gpio_invert);
20
+ unsigned int debounce);
2921 int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id,
30
- unsigned int idx, bool override_active_level,
31
- unsigned int debounce, bool *gpio_invert);
22
+ unsigned int idx, unsigned int debounce);
3223 void mmc_gpio_set_cd_isr(struct mmc_host *host,
3324 irqreturn_t (*isr)(int irq, void *dev_id));
3425 int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on);