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:
parent
a9ae700695
commit
776ecf4b73
@ -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;
|
||||
|
||||
@ -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_ */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user