diff options
| author | 2026-03-05 11:21:52 -0800 | |
|---|---|---|
| committer | 2026-03-07 11:40:17 +0000 | |
| commit | e2fa075d5ce1963e7cb7b0ac708ba567e5af66db (patch) | |
| tree | e9638e811cd317410af71bc1e00893554bf155cd /rust/kernel/ssh:/git@git.zx2c4.com | |
| parent | iio: orientation: hid-sensor-rotation: fix quaternion alignment (diff) | |
iio: adc: ti-ads7950: 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 ti_ads7950_get() for output
pins is normalized to the [0, 1] range.
Fixes: 86ef402d805d ("gpiolib: sanitize the return value of gpio_chip::get()")
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
