summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-02-18 22:06:54 +0300
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-02-23 12:41:43 +0300
commite62b94a690c8cd7050c3d308e01ee1b24ee9bb0b (patch)
treec86329e6c7b0908135b2bef7d98b0896c98c6c95 /include
parent5a32ebabb6819fafce99e7bc6575ca568af6d22a (diff)
downloadlinux-e62b94a690c8cd7050c3d308e01ee1b24ee9bb0b.tar.xz
gpio: stp-xway: normalize return value of gpio_get
The GPIO get callback is expected to return 0 or 1 (or a negative error code). Ensure that the value returned by xway_stp_get() is normalized to the [0, 1] range. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Link: https://patch.msgid.link/20260218190657.2974723-5-dmitry.torokhov@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions