Skip to content

Commit

Permalink
libgpio: Fix type mismatch for gpio_pin_[gs]et
Browse files Browse the repository at this point in the history
Reported by:	GCC 13 via -Wenum-int-mismatch
Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D42577
  • Loading branch information
bsdjhb committed Nov 15, 2023
1 parent b7f7cc2 commit 0355eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/libgpio/libgpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0355eca

Please sign in to comment.