Skip to content

Commit 78703a5

Browse files
Xenoamorbuha
authored andcommitted
Fix icp_val exceeding 6 bits ad9361.c
Signed-off-by: Joshua Booth <[email protected]>
1 parent 3d4ad73 commit 78703a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rf-transceiver/ad9361/ad9361.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6646,7 +6646,7 @@ int32_t ad9361_bbpll_set_rate(struct refclk_scale *clk_priv, uint32_t rate,
66466646
/* 25uA/LSB, Offset 25uA */
66476647
icp_val = NO_OS_DIV_ROUND_CLOSEST((uint32_t)tmp, 25U) - 1;
66486648

6649-
icp_val = no_os_clamp(icp_val, 1, 64);
6649+
icp_val = no_os_clamp(icp_val, 1, 63);
66506650

66516651
ad9361_spi_write(spi, REG_CP_CURRENT, icp_val);
66526652
ad9361_spi_writem(spi, REG_LOOP_FILTER_3, lf_defaults,

0 commit comments

Comments
 (0)