Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: frequency: adf4350: Fix ADF4350_REG3_12BIT_CLKDIV_MODE

The clk div bits (2 bits wide) do not start in bit 16 but in bit 15. Fix it
accordingly.

Fixes: e31166f0fd48 ("iio: frequency: New driver for Analog Devices ADF4350/ADF4351 Wideband Synthesizers")
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250829-adf4350-fix-v2-2-0bf543ba797d@analog.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Michael Hennerich and committed by
Jonathan Cameron
1d8fdabe 33d7ecbf

+1 -1
+1 -1
include/linux/iio/frequency/adf4350.h
··· 51 51 52 52 /* REG3 Bit Definitions */ 53 53 #define ADF4350_REG3_12BIT_CLKDIV(x) ((x) << 3) 54 - #define ADF4350_REG3_12BIT_CLKDIV_MODE(x) ((x) << 16) 54 + #define ADF4350_REG3_12BIT_CLKDIV_MODE(x) ((x) << 15) 55 55 #define ADF4350_REG3_12BIT_CSR_EN (1 << 18) 56 56 #define ADF4351_REG3_CHARGE_CANCELLATION_EN (1 << 21) 57 57 #define ADF4351_REG3_ANTI_BACKLASH_3ns_EN (1 << 22)