summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2026-10-27 17:19:11 +0100
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-11-02 00:39:54 +0000
commite6dfbd84b833ed595a5236b027357e917de28260 (patch)
tree965bfbe0f4009b5d36ee9bd615484fc610234a82 /rust/kernel/alloc
parentf3fc8718af9189aad13a2ad7f5b256475bb14b21 (diff)
iio: addac: ad74413r: fix the values of set_multiple
ad74413r_gpio_set_multiple() walks over the lines in the mask and looks up the new value of each with if (*bits & offset) offset is the number of the line, not a bit mask. Line 0 is always driven low, line 1 gets the value meant for line 0, line 2 the one meant for line 1, and line 3 is driven high if either of these two is. Test the bit which belongs to the line. Fixes: fea251b6a5db ("iio: addac: add AD74413R driver") Cc: stable <stable@kernel.org> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions