Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2023 02:37:41 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0355ecace82c - main - libgpio: Fix type mismatch for gpio_pin_[gs]et
Message-ID:  <202311150237.3AF2bfup009621@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=0355ecace82cce8322e5fcdf48f751d253792ce3

commit 0355ecace82cce8322e5fcdf48f751d253792ce3
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-11-15 02:34:21 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-11-15 02:34:21 +0000

    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
---
 lib/libgpio/libgpio.h | 4 ++--
 1 file 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311150237.3AF2bfup009621>