From 776ecf4b73e87292ddd21ec8aef2d77b7c186486 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Thu, 25 Nov 2021 12:27:20 +0100 Subject: [PATCH] drivers: gpio: stm32: do not expose gpio_stm32_clock_request The function is only used by the driver itself. This likely comes from pre-runtime PM API usage. Signed-off-by: Gerard Marull-Paretas --- drivers/gpio/gpio_stm32.c | 2 +- drivers/gpio/gpio_stm32.h | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpio/gpio_stm32.c b/drivers/gpio/gpio_stm32.c index 736540bc258..22602ce17ae 100644 --- a/drivers/gpio/gpio_stm32.c +++ b/drivers/gpio/gpio_stm32.c @@ -241,7 +241,7 @@ int gpio_stm32_configure(const struct device *dev, int pin, int conf, int altf) /** * @brief GPIO port clock handling */ -int gpio_stm32_clock_request(const struct device *dev, bool on) +static int gpio_stm32_clock_request(const struct device *dev, bool on) { const struct gpio_stm32_config *cfg = dev->config; int ret = 0; diff --git a/drivers/gpio/gpio_stm32.h b/drivers/gpio/gpio_stm32.h index 7e98d15784a..e33c5566590 100644 --- a/drivers/gpio/gpio_stm32.h +++ b/drivers/gpio/gpio_stm32.h @@ -243,12 +243,4 @@ struct gpio_stm32_data { */ int gpio_stm32_configure(const struct device *dev, int pin, int conf, int altf); -/** - * @brief Enable / disable GPIO port clock. - * - * @param dev GPIO port device pointer - * @param on boolean for on/off clock request - */ -int gpio_stm32_clock_request(const struct device *dev, bool on); - #endif /* ZEPHYR_DRIVERS_GPIO_GPIO_STM32_H_ */