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 <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-11-25 12:27:20 +01:00 committed by Carles Cufí
parent a9ae700695
commit 776ecf4b73
2 changed files with 1 additions and 9 deletions

View File

@ -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;

View File

@ -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_ */