All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iio: Implement and utilize register structures for ISA drivers
@ 2022-07-07 17:21 William Breathitt Gray
  2022-07-07 17:21 ` [PATCH v2 1/2] iio: adc: stx104: Implement and utilize register structures William Breathitt Gray
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: William Breathitt Gray @ 2022-07-07 17:21 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, linux-kernel, William Breathitt Gray, Fred Eckert

Changes in v2:
 - Rename 'ad' member to 'ssr_ad' to indicate access to Software Strobe
   Register as well; relevant comments updated
 - Dereference DAC channel address via array subscripts in the
   stx104_write_raw() function in order to match rest of code
 - Replace struct cio_dac_reg with direct u16 pointer to the DAC
   address; this greatly simplifies the cio-dac patch

The STX104 and CIO-DAC drivers were updated to use I/O memory accessor
calls such as ioread8()/iowrite8() in previous patch series [1]. This
patch series is a continuation of the effort to improve the code
readability and reduce magic numbers by implementing and utilizing named
register data structures.

[1] https://lore.kernel.org/all/cover.1652201921.git.william.gray@linaro.org/

William Breathitt Gray (2):
  iio: adc: stx104: Implement and utilize register structures
  iio: dac: cio-dac: Cleanup indexing for DAC writes

 drivers/iio/adc/stx104.c  | 74 ++++++++++++++++++++++++++-------------
 drivers/iio/dac/cio-dac.c | 10 +++---
 2 files changed, 55 insertions(+), 29 deletions(-)


base-commit: 338222d8e1121bcb78a86fb39982eddcc367a5bc
-- 
2.36.1


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

end of thread, other threads:[~2022-07-16 17:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-07 17:21 [PATCH v2 0/2] iio: Implement and utilize register structures for ISA drivers William Breathitt Gray
2022-07-07 17:21 ` [PATCH v2 1/2] iio: adc: stx104: Implement and utilize register structures William Breathitt Gray
2022-07-07 17:21 ` [PATCH v2 2/2] iio: dac: cio-dac: Cleanup indexing for DAC writes William Breathitt Gray
2022-07-16 17:48 ` [PATCH v2 0/2] iio: Implement and utilize register structures for ISA drivers Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.