No description
Find a file
Dumitru Ceclan a334f875a8 iio: adc: ad7124: fix DT configuration parsing
commit 61cbfb5368 upstream.

The cfg pointer is set before reading the channel number that the
configuration should point to. This causes configurations to be shifted
by one channel.
For example setting bipolar to the first channel defined in the DT will
cause bipolar mode to be active on the second defined channel.

Fix by moving the cfg pointer setting after reading the channel number.

Fixes: 7b8d045e49 ("iio: adc: ad7124: allow more than 8 channels")
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240806085133.114547-1-dumitru.ceclan@analog.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-12 11:13:06 +02:00
arch MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed 2024-09-12 11:13:05 +02:00
block block: don't call bio_uninit from bio_endio 2024-09-12 11:12:59 +02:00
certs
crypto crypto: ecc - Fix off-by-one missing to clear most significant digit 2024-09-08 07:56:40 +02:00
Documentation cgroup/cpuset: Delay setting of CS_CPU_EXCLUSIVE until valid partition 2024-09-12 11:12:50 +02:00
drivers iio: adc: ad7124: fix DT configuration parsing 2024-09-12 11:13:06 +02:00
fs fs: only copy to userspace on success in listmount() 2024-09-12 11:13:05 +02:00
include bpf, net: Fix a potential race in do_sock_getsockopt() 2024-09-12 11:12:57 +02:00
init rust: fix the default format for CONFIG_{RUSTC,BINDGEN}_VERSION_TEXT 2024-08-29 17:35:52 +02:00
io_uring io_uring/kbuf: return correct iovec count from classic buffer peek 2024-09-04 13:30:11 +02:00
ipc
kernel smp: Add missing destroy_work_on_stack() call in smp_call_on_cpu() 2024-09-12 11:13:02 +02:00
lib kunit/overflow: Fix UB in overflow_allocation_test 2024-09-12 11:13:05 +02:00
LICENSES
mm userfaultfd: fix checks for huge PMDs 2024-09-12 11:12:47 +02:00
net tcp: process the 3rd ACK with sk_socket for TFO/MPTCP 2024-09-12 11:13:06 +02:00
rust rust: kbuild: fix export of bss symbols 2024-09-12 11:12:55 +02:00
samples
scripts scripts: fix gfp-translate after ___GFP_*_BITS conversion to an enum 2024-09-12 11:12:56 +02:00
security smack: unix sockets: fix accept()ed socket label 2024-09-12 11:12:50 +02:00
sound ASoc: TAS2781: replace beXX_to_cpup with get_unaligned_beXX for potentially broken alignment 2024-09-12 11:13:00 +02:00
tools kselftests: dmabuf-heaps: Ensure the driver name is null-terminated 2024-09-12 11:13:04 +02:00
usr
virt
.clang-format
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS Fixes for the I2C testunit, the Renesas R-Car driver and some 2024-07-13 16:34:22 -07:00
Makefile Linux 6.10.9 2024-09-08 07:56:41 +02:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the reStructuredText markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.