From d85a9e30d1cdeb9b78f6b2e2773e3625067b72c8 Mon Sep 17 00:00:00 2001 From: Peter Bigot Date: Mon, 27 Jan 2020 06:40:24 -0600 Subject: [PATCH] gpio: remove unused internal API Remove macros and a state structure that are not used anywhere and incompletely describe a GPIO pin specifier. Signed-off-by: Peter Bigot --- include/drivers/gpio.h | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/include/drivers/gpio.h b/include/drivers/gpio.h index 180affe31f5..f70813fb371 100644 --- a/include/drivers/gpio.h +++ b/include/drivers/gpio.h @@ -1387,34 +1387,6 @@ static inline int z_impl_gpio_get_pending_int(struct device *dev) return api->get_pending_int(dev); } -/** @cond INTERNAL_HIDDEN */ -struct gpio_pin_config { - char *gpio_controller; - u32_t gpio_pin; -}; - -#define GPIO_DECLARE_PIN_CONFIG_IDX(_idx) \ - struct gpio_pin_config gpio_pin_ ##_idx -#define GPIO_DECLARE_PIN_CONFIG \ - GPIO_DECLARE_PIN_CONFIG_IDX() - -#define GPIO_PIN_IDX(_idx, _controller, _pin) \ - .gpio_pin_ ##_idx = { \ - .gpio_controller = (_controller),\ - .gpio_pin = (_pin), \ - } -#define GPIO_PIN(_controller, _pin) \ - GPIO_PIN_IDX(, _controller, _pin) - -#define GPIO_GET_CONTROLLER_IDX(_idx, _conf) \ - ((_conf)->gpio_pin_ ##_idx.gpio_controller) -#define GPIO_GET_PIN_IDX(_idx, _conf) \ - ((_conf)->gpio_pin_ ##_idx.gpio_pin) - -#define GPIO_GET_CONTROLLER(_conf) GPIO_GET_CONTROLLER_IDX(, _conf) -#define GPIO_GET_PIN(_conf) GPIO_GET_PIN_IDX(, _conf) -/** @endcond */ - /** * @} */