aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-11-15 02:34:21 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-11-15 02:34:21 +0000
commit0355ecace82cce8322e5fcdf48f751d253792ce3 (patch)
tree22fece2917fefdb1f921fcd2f7e030320790ed64
parentb7f7cc25c01aeacaafb86ebcffdeb258b7933b08 (diff)
downloadsrc-0355ecace82cce8322e5fcdf48f751d253792ce3.tar.gz
src-0355ecace82cce8322e5fcdf48f751d253792ce3.zip
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
-rw-r--r--lib/libgpio/libgpio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libgpio/libgpio.h b/lib/libgpio/libgpio.h
index b493d63dc9e2..35651ecd8cca 100644
--- a/lib/libgpio/libgpio.h
+++ b/lib/libgpio/libgpio.h
@@ -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.