Commit 5a4e33c1 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Jonathan Cameron

iio: ad9523: Fix displayed phase

Fix the displayed phase for the ad9523 driver. Currently the most
significant decimal place is dropped and all other digits are shifted one
to the left. This is due to a multiplication by 10, which is not necessary,
so remove it.
Signed-off-by: default avatarLars-Peter Clausen <>
Signed-off-by: default avatarAlexandru Ardelean <>
Fixes: cd1678f9 ("iio: frequency: New driver for AD9523 SPI Low Jitter Clock Generator")
Cc: <>
Signed-off-by: default avatarJonathan Cameron <>
parent ffc0d638
......@@ -653,7 +653,7 @@ static int ad9523_read_raw(struct iio_dev *indio_dev,
code = (AD9523_CLK_DIST_DIV_PHASE_REV(ret) * 3141592) /
*val = code / 1000000;
*val2 = (code % 1000000) * 10;
*val2 = code % 1000000;
return -EINVAL;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment