mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +00:00
libgpio: Fix type mismatch for gpio_pin_[gs]et
Reported by: GCC 13 via -Wenum-int-mismatch Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D42577
This commit is contained in:
parent
b7f7cc25c0
commit
0355ecace8
@ -81,8 +81,8 @@ int gpio_pin_set_flags(gpio_handle_t, gpio_config_t *);
|
||||
/*
|
||||
* GPIO pin values.
|
||||
*/
|
||||
int gpio_pin_get(gpio_handle_t, gpio_pin_t);
|
||||
int gpio_pin_set(gpio_handle_t, gpio_pin_t, int);
|
||||
gpio_value_t gpio_pin_get(gpio_handle_t, gpio_pin_t);
|
||||
int gpio_pin_set(gpio_handle_t, gpio_pin_t, gpio_value_t);
|
||||
int gpio_pin_toggle(gpio_handle_t, gpio_pin_t);
|
||||
/*
|
||||
* Helper functions to set pin states.
|
||||
|
Loading…
Reference in New Issue
Block a user