Patch 1 includes the initial fix.
Patch 2 refactors the code to use the out_altvoltage_powerdown ABI.
Patch 3 adds small improvements by minimizing the size of types and
doing a redundancy check.
Not sure whether to include a read function for powerdown as well since
all the other attributes only had write permissions. I can also do this
for the other attributes to help modernize the driver.
Gabriel Shahrouzi (3):
iio: frequency: Use SLEEP bit instead of RESET to disable output
staging: iio: ad9832: Refactor powerdown control
staging: iio: ad9832: Add minor improvements to ad9832_write_powerdown
drivers/staging/iio/frequency/ad9832.c | 50 ++++++++++++++++++--------
1 file changed, 36 insertions(+), 14 deletions(-)
--
2.43.0