diff options
author | Anton Staaf <robotboy@chromium.org> | 2016-01-25 09:53:49 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-01-27 08:44:22 -0800 |
commit | 0801ac67b9310ff6d75e57430235857ecd3ce0a0 (patch) | |
tree | 0bde99a5a173a82c3fd4b92de996adb987ff5097 /include/gpio.h | |
parent | 28eb4788810c7a7fc697f61fe837166cd7c68c29 (diff) | |
download | chrome-ec-0801ac67b9310ff6d75e57430235857ecd3ce0a0.tar.gz |
GPIO: Remove gpio_get_level_reg function
After talking with Simon Glass about this we concluded that this was an
optimization that is not needed, as such, and since it is only used in
one location and only available from one chip family I'm removing it.
This further simplifies the GPIO API and removes more uses of port/mask
pairs.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
Change-Id: I40754a385e0a4fa3a56d67fca1dd59fc8f3cc85a
Reviewed-on: https://chromium-review.googlesource.com/323827
Commit-Ready: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/gpio.h')
-rw-r--r-- | include/gpio.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/gpio.h b/include/gpio.h index 6e134c28fe..b259025739 100644 --- a/include/gpio.h +++ b/include/gpio.h @@ -141,18 +141,6 @@ int gpio_config_pin(enum module_id id, enum gpio_signal signal, int enable); int gpio_get_level(enum gpio_signal signal); /** - * Get faster access to a GPIO level. - * - * Use this function to find out the register address and mask for a GPIO - * value. Then you can just check that instead of calling gpio_get_level(). - * - * @param signal Signal to return details for - * @param mask Mask value to use - * @return pointer to register to read to get GPIO value - */ -uint16_t *gpio_get_level_reg(enum gpio_signal signal, uint32_t *mask); - -/** * Return the name of a given GPIO signal. * * @param signal Signal to name |