summaryrefslogtreecommitdiff
path: root/include/gpio.h
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2022-03-15 16:54:53 -0600
committerCommit Bot <commit-bot@chromium.org>2022-03-16 00:49:07 +0000
commit46106ca390e23b43e275599e7dba4fa369e8e301 (patch)
tree05f4f677ef28a7330f6a79d8d504664ac2c26eb9 /include/gpio.h
parent8840c71b910438ed90f5af7372bc6710d3cf07f7 (diff)
downloadchrome-ec-46106ca390e23b43e275599e7dba4fa369e8e301.tar.gz
gpio: Cleanup CONFIG_CMD_GPIO_EXTENDED
Cleanup the GPIO flag descriptios used by GPIO_CMD_GPIO_EXTENDED. This doesn't save any code size, but simplifies the logic. BUG=none BRANCH=none TEST=make buildall TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I71f0db12a2b65bcc2e2bdf6dc48fb643c5cd6c6e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3526272 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'include/gpio.h')
-rw-r--r--include/gpio.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/gpio.h b/include/gpio.h
index e581021e09..d57d6417ab 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -285,9 +285,8 @@ void gpio_set_flags(enum gpio_signal signal, int flags);
#define CONFIG_GPIO_GET_EXTENDED
#endif
-#ifdef CONFIG_GPIO_GET_EXTENDED
/**
- * Get the current flags for a signal.
+ * Get the current flags for a signal. Requires CONFIG_GPIO_GET_EXTENDED.
*
* @param signal Signal to get flags for
* @returns The flags that are currently defined for this signal
@@ -295,13 +294,12 @@ void gpio_set_flags(enum gpio_signal signal, int flags);
int gpio_get_flags(enum gpio_signal signal);
/**
- * Get flags for GPIO by port and mask.
+ * Get flags for GPIO by port and mask. Requires CONFIG_GPIO_GET_EXTENDED.
*
* @param port GPIO port to set (GPIO_*)
* @param mask Bitmask of pins on that port to check: one only.
*/
int gpio_get_flags_by_mask(uint32_t port, uint32_t mask);
-#endif
#ifdef CONFIG_ZEPHYR