git: 82302a49fde3 - main - qcom_tlmm: use return code instead of always returning true.

From: Adrian Chadd <adrian_at_FreeBSD.org>
Date: Tue, 13 Sep 2022 03:10:53 UTC
The branch main has been updated by adrian:

URL: https://cgit.FreeBSD.org/src/commit/?id=82302a49fde3ff063e4f8187fc3ddf355084f786

commit 82302a49fde3ff063e4f8187fc3ddf355084f786
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2022-09-12 02:33:48 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2022-09-13 03:10:25 +0000

    qcom_tlmm: use return code instead of always returning true.
    
    This was failing due to unused/ignored return values; so just use them.
    
    Reviewed by: imp
    
    Differential Revision: https://reviews.freebsd.org/D36534
---
 sys/dev/qcom_tlmm/qcom_tlmm_pin.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/dev/qcom_tlmm/qcom_tlmm_pin.c b/sys/dev/qcom_tlmm/qcom_tlmm_pin.c
index 0d35908a58a6..6974041fe0d9 100644
--- a/sys/dev/qcom_tlmm/qcom_tlmm_pin.c
+++ b/sys/dev/qcom_tlmm/qcom_tlmm_pin.c
@@ -257,7 +257,7 @@ qcom_tlmm_pin_set(device_t dev, uint32_t pin, unsigned int value)
 	ret = qcom_tlmm_ipq4018_hw_pin_set_output_value(sc, pin, value);
 	GPIO_UNLOCK(sc);
 
-	return (0);
+	return (ret);
 }
 
 int
@@ -273,7 +273,7 @@ qcom_tlmm_pin_get(device_t dev, uint32_t pin, unsigned int *val)
 	ret = qcom_tlmm_ipq4018_hw_pin_get_input_value(sc, pin, val);
 	GPIO_UNLOCK(sc);
 
-	return (0);
+	return (ret);
 }
 
 int
@@ -289,7 +289,7 @@ qcom_tlmm_pin_toggle(device_t dev, uint32_t pin)
 	ret = qcom_tlmm_ipq4018_hw_pin_toggle_output_value(sc, pin);
 	GPIO_UNLOCK(sc);
 
-	return (0);
+	return (ret);
 }
 
 int