public inbox for linux-kernel-mentees@lists.linux-foundation.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Fix and refactor output disable logic
@ 2025-04-20 17:47 Gabriel Shahrouzi
  2025-04-20 17:47 ` [PATCH v2 1/3] iio: frequency: Use SLEEP bit instead of RESET to disable output Gabriel Shahrouzi
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Gabriel Shahrouzi @ 2025-04-20 17:47 UTC (permalink / raw)
  To: gregkh, jic23, lars, linux-iio, linux-kernel, linux-staging,
	Michael.Hennerich
  Cc: gshahrouzi, skhan, linux-kernel-mentees

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-04-22 16:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-20 17:47 [PATCH v2 0/3] Fix and refactor output disable logic Gabriel Shahrouzi
2025-04-20 17:47 ` [PATCH v2 1/3] iio: frequency: Use SLEEP bit instead of RESET to disable output Gabriel Shahrouzi
2025-04-20 17:47 ` [PATCH v2 2/3] staging: iio: ad9832: Refactor powerdown control Gabriel Shahrouzi
2025-04-20 17:47 ` [PATCH v2 3/3] staging: iio: ad9832: Add minor improvements to ad9832_write_powerdown Gabriel Shahrouzi
2025-04-22 10:08   ` Dan Carpenter
2025-04-22 16:14     ` Gabriel Shahrouzi
2025-04-22 16:25     ` Gabriel Shahrouzi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox