summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorSalah Triki <salah.triki@gmail.com>2026-08-19 12:41:01 +0100
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-08-31 00:52:42 +0100
commitd380bf5f94a892e546d9a94e8557ad866b043a2a (patch)
tree8a8d5bf030826967b23aea51de2b8d0afdd9fbca /tools/lib/python/kdoc/python_version.py
parentbaf7e43b7fb5afb777353bf265ddf9d909f72b9f (diff)
downloadlinux-next-d380bf5f94a892e546d9a94e8557ad866b043a2a.tar.gz
linux-next-d380bf5f94a892e546d9a94e8557ad866b043a2a.zip
iio: accel: sca3000: fix frequency divider condition check
When setting the sampling frequency, the check for `base_freq / 2` is followed by an independent `if` statement for `base_freq / 4`. If `val` equals `base_freq / 2`, the second check fails and falls through to the `else if (val != base_freq)` branch, returning `-EINVAL` erroneously. Fix this by chaining the checks with `else if`. Fixes: e0f3fc9b47e6 ("iio: accel: sca3000_core: implemented IIO_CHAN_INFO_SAMP_FREQ") Signed-off-by: Salah Triki <salah.triki@gmail.com> Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com> Cc: stable@vger.kernel.org Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions