summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorMatti Vaittinen <mazziesaccount@gmail.com>2026-08-10 10:50:49 +0300
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-08-31 00:52:40 +0100
commitd081c116a16489f7808d35fcf1ee9d4b9869d204 (patch)
tree3bcd3941c22ad3447b8a7d229e5b8cbc434de9f1 /tools/lib/python/kdoc
parentedd56c01d174153bf90160279742ff6f3ad27a93 (diff)
downloadlinux-next-d081c116a16489f7808d35fcf1ee9d4b9869d204.tar.gz
linux-next-d081c116a16489f7808d35fcf1ee9d4b9869d204.zip
iio: adc: rohm-bd79124: Fix GPIO mask check
The ROHM BD79124 has pins which can be configured as GPOs or as ADC inputs. The bd79124gpo_set_multiple() is intended to ensure that a pin which is requested to be toggled, is indeed configured as a GPO. The check uses XOR, causing it to fail if mask is not exactly same as GPO configuration. Eg, if not all GPOs are asked to be toggled at once. Fix this by checking that mask does not contain pins that are not configured as GPO, allowing some of the pins which are configured as GPO to be untouched. Fixes: 3f57a3b9ab74 ("iio: adc: Support ROHM BD79124 ADC") Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions