From 1ca6df33138d44f4e863fee4d6d0f054f7519bc3 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Fri, 3 Aug 2018 16:07:29 +0200 Subject: [PATCH] nrf5x_common: gpio: remove unused pin_num() function This came up when compiling an application for an NRF5x-based board with LLVM/clang. The function does not seem to be used throughout the file so I just removed it. --- cpu/nrf5x_common/periph/gpio.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cpu/nrf5x_common/periph/gpio.c b/cpu/nrf5x_common/periph/gpio.c index cacd1d9e8e..368d61e34e 100644 --- a/cpu/nrf5x_common/periph/gpio.c +++ b/cpu/nrf5x_common/periph/gpio.c @@ -55,18 +55,6 @@ static inline NRF_GPIO_Type* port(gpio_t pin) #endif } -/** - * @brief Get a pin's offset - */ -static inline int pin_num(gpio_t pin) -{ -#ifdef CPU_MODEL_NRF52840XXAA - return (pin & PIN_MASK); -#else - return (int)pin; -#endif -} - int gpio_init(gpio_t pin, gpio_mode_t mode) { switch (mode) {