From 28eb4788810c7a7fc697f61fe837166cd7c68c29 Mon Sep 17 00:00:00 2001 From: Anton Staaf Date: Tue, 26 Jan 2016 11:06:06 -0800 Subject: 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 BRANCH=None BUG=None TEST=make buildall -j Change-Id: Ic924cd520689c0805a2784be5005dbecfe89f389 Reviewed-on: https://chromium-review.googlesource.com/323873 Commit-Ready: Anton Staaf Tested-by: Anton Staaf Reviewed-by: Shawn N --- include/gpio.h | 5 ----- 1 file changed, 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.*/ -- cgit v1.2.1