linux-stable/drivers
Ian Ray 7d797975cf drivers: iio: adc: ltc2497: fix LSB shift
commit 6327a930ab upstream.

Correct the "sub_lsb" shift for the ltc2497 and drop the sub_lsb element
which is now constant.

An earlier version of the code shifted by 14 but this was a consequence
of reading three bytes into a __be32 buffer and using be32_to_cpu(), so
eight extra bits needed to be skipped.  Now we use get_unaligned_be24()
and thus the additional skip is wrong.

Fixes: 2187cfeb36 ("drivers: iio: adc: ltc2497: LTC2499 support")
Signed-off-by: Ian Ray <ian.ray@ge.com>
Link: https://lore.kernel.org/r/20230127125714.44608-1-ian.ray@ge.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-13 17:02:44 +02:00
..
accel
accessibility
acpi ACPI: bus: Rework system-level device notification handling 2023-04-06 12:12:36 +02:00
amba
android
ata
atm
auxdisplay
base
bcma
block loop: LOOP_CONFIGURE: send uevents for partitions 2023-04-06 12:12:37 +02:00
bluetooth
bus bus: imx-weim: fix branch condition evaluates to a garbage value 2023-03-30 12:51:42 +02:00
cdrom
char
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl cxl/pci: Handle excessive CDAT length 2023-04-13 17:02:42 +02:00
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware firmware: arm_scmi: Fix device node validation for mailbox transport 2023-03-30 12:51:41 +02:00
fpga
fsi
gnss
gpio gpio: davinci: Add irq chip flag to skip set wake 2023-04-13 17:02:40 +02:00
gpu drm/i915/huc: Cancel HuC delayed load timer on reset. 2023-04-13 17:02:38 +02:00
greybus
hid
hsi
hte
hv Drivers: vmbus: Check for channel allocation before looking up relids 2023-04-13 17:02:35 +02:00
hwmon
hwspinlock
hwtracing
i2c i2c: xgene-slimpro: Fix out-of-bounds bug in xgene_slimpro_i2c_xfer() 2023-03-30 12:51:42 +02:00
i3c
idle Revert "cpuidle, intel_idle: Fix CPUIDLE_FLAG_IRQ_ENABLE *again*" 2023-04-06 12:12:48 +02:00
iio drivers: iio: adc: ltc2497: fix LSB shift 2023-04-13 17:02:44 +02:00
infiniband
input Input: goodix - add Lenovo Yoga Book X90F to nine_bytes_report DMI table 2023-04-06 12:12:41 +02:00
interconnect
iommu iommu/vt-d: Allow zero SAGAW if second-stage not supported 2023-04-06 12:12:40 +02:00
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md dm: fix improper splitting for abnormal bios 2023-04-13 17:02:34 +02:00
media Revert "venus: firmware: Correct non-pix start and end addresses" 2023-04-06 12:12:40 +02:00
memory
memstick
message
mfd
misc
mmc
most
mtd mtd: rawnand: meson: invalidate cache on polling ECC bit 2023-04-06 12:12:33 +02:00
mux
net net: stmmac: check fwnode for phy device before scanning for phy 2023-04-13 17:02:42 +02:00
nfc
ntb
nubus
nvdimm
nvme nvme-pci: add NVME_QUIRK_BOGUS_NID for Lexar NM620 2023-04-06 12:12:29 +02:00
nvmem
of
opp
parisc
parport
pci PCI/DOE: Fix memory leak with CONFIG_DEBUG_OBJECTS=y 2023-04-13 17:02:42 +02:00
pcmcia
peci
perf
phy
pinctrl pinctrl: at91-pio4: fix domain name assignment 2023-04-06 12:12:43 +02:00
platform platform/x86: think-lmi: Clean up display of current_value on Thinkstation 2023-04-13 17:02:39 +02:00
pnp
power
powercap
pps
ps3
ptp ptp_qoriq: fix memory leak in probe() 2023-04-06 12:12:33 +02:00
pwm pwm: meson: Explicitly set .polarity in .get_state() 2023-04-13 17:02:36 +02:00
rapidio
ras
regulator regulator: Handle deferred clk 2023-04-06 12:12:35 +02:00
remoteproc
reset
rpmsg
rtc
s390 s390/vfio-ap: fix memory leak in vfio_ap device driver 2023-04-06 12:12:36 +02:00
sbus
scsi scsi: mpt3sas: Don't print sense pool info twice 2023-04-06 12:12:33 +02:00
sh
siox
slimbus
soc soc: qcom: llcc: Fix slice configuration values for SC8280XP 2023-03-30 12:51:41 +02:00
soundwire
spi
spmi
ssb
staging
target
tc
tee tee: amdtee: fix race condition in amdtee_open_session 2023-03-30 12:51:41 +02:00
thermal thermal: intel: int340x: processor_thermal: Fix additional deadlock 2023-04-06 12:12:43 +02:00
thunderbolt thunderbolt: Limit USB3 bandwidth of certain Intel USB4 host routers 2023-04-06 12:12:22 +02:00
tty
ufs
uio
usb USB: serial: option: add Quectel RM500U-CN modem 2023-04-13 17:02:44 +02:00
vdpa
vfio
vhost
video fbdev: au1200fb: Fix potential divide by zero 2023-04-06 12:12:30 +02:00
virt
virtio
vlynq
w1
watchdog
xen
zorro
Kconfig
Makefile