summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Staaf <robotboy@chromium.org>2016-01-26 11:06:06 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-01-27 08:44:21 -0800
commit28eb4788810c7a7fc697f61fe837166cd7c68c29 (patch)
treebf3419d52f872f0c9e8732e20878fb0811fb77b7
parent255a55106292891caead93c1e4b87beee18ca8f7 (diff)
downloadchrome-ec-28eb4788810c7a7fc697f61fe837166cd7c68c29.tar.gz
GPIO: Remove GPIO_TO_PORT_MASK_PAIR
This macro is no longer used, removing it so that it doesn't get used as we work towards removing port/mask from the public GPIO API. Signed-off-by: Anton Staaf <robotboy@chromium.org> BRANCH=None BUG=None TEST=make buildall -j Change-Id: Ic924cd520689c0805a2784be5005dbecfe89f389 Reviewed-on: https://chromium-review.googlesource.com/323873 Commit-Ready: Anton Staaf <robotboy@chromium.org> Tested-by: Anton Staaf <robotboy@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r--include/gpio.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/gpio.h b/include/gpio.h
index 8c7e420cd9..6e134c28fe 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -49,11 +49,6 @@
/* Convert GPIO mask to GPIO number / index. */
#define GPIO_MASK_TO_NUM(mask) (__fls(mask))
-/* Convert a GPIO to a port + mask pair */
-#define GPIO_TO_PORT_MASK_PAIR(gpio) \
- { gpio_list[(gpio)].port, \
- GPIO_MASK_TO_NUM(gpio_list[(gpio)].mask) }
-
/* NOTE: This is normally included from board.h, thru config.h and common.h But,
* some boards and unit tests don't have a gpio_signal enum defined, so we
* define an emtpy one here.*/