Commit 85c9e6d5 authored by Siddharth Menon's avatar Siddharth Menon Committed by Jonathan Cameron
Browse files

iio: frequency: ad9832: Use FIELD_PREP macro to set bit fields



Use bitfield and bitmask macros to clearly specify AD9832 SPI
command fields to make register write code more readable.

Suggested-by: default avatarMarcelo Schmitt <marcelo.schmitt1@gmail.com>
Reviewed-by: default avatarMarcelo Schmitt <marcelo.schmitt1@gmail.com>
Signed-off-by: default avatarSiddharth Menon <simeddon@gmail.com>
Link: https://patch.msgid.link/20250416140259.13431-1-simeddon@gmail.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 8f2d5147
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment