Hi all, I am submitting two patches to address an issue in the AD9832 and AD9834 IIO drivers. The current implementation allows an invalid phase value of 4096 to pass due to incorrect range checking. The phase registers for both devices are 12 bits, meaning valid values should range from 0 to 4095. These patches modify the condition to use a greater-than-or-equal-to check, ensuring only valid phase values are accepted. Zicheng Qu (2): staging: iio: ad9834: Correct phase range check staging: iio: ad9832: Correct phase range check drivers/staging/iio/frequency/ad9832.c | 2 +- drivers/staging/iio/frequency/ad9834.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.34.1