linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/4] iio: accel: sca3000: simplify by using newer infrastructure
@ 2025-06-18  3:12 Andrew Ijano
  2025-06-18  3:12 ` [PATCH v6 1/4] iio: accel: sca3000: replace usages of internal read data helpers by spi helpers Andrew Ijano
                   ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Andrew Ijano @ 2025-06-18  3:12 UTC (permalink / raw)
  To: jic23
  Cc: andrew.lopes, gustavobastos, dlechner, nuno.sa, andy, jstephan,
	linux-iio, linux-kernel

The sca3000 driver is old and could be simplified by using newer
infrastructure.

Signed-off-by: Andrew Ijano <andrew.lopes@alumni.usp.br>
Co-developed-by: Gustavo Bastos <gustavobastos@usp.br>
Signed-off-by: Gustavo Bastos <gustavobastos@usp.br>
Suggested-by: Jonathan Cameron <jic23@kernel.org>
---
v5 -> v6:
- break up changes related to read data helpers in two patches
- fix formatting
- add local scope for switch() cases that use guard()
- use sysfs_emit_at() instead of sprintf()

v4 -> v5:
- break up the changes in three patches
- replace error_ret labels by simple returns
- use spi_w8r16be() for be16 reads
- use guard(mutex) for handling mutex lock

v3 -> v4:
- clean the code and remove redundant operations

v2 -> v3:
- replace usages of internal read data helpers by spi helpers

v1 -> v2:
- simplify the return of the internal read data function
---
Andrew Ijano (4):
  iio: accel: sca3000: replace usages of internal read data helpers by
    spi helpers
  iio: accel: sca3000: clean sca3000_read_data()
  iio: accel: sca3000: use lock guards
  iio: accel: sca3000: use sysfs_emit_at() instead of sprintf()

 drivers/iio/accel/sca3000.c | 384 ++++++++++++++----------------------
 1 file changed, 145 insertions(+), 239 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-07-06  9:42 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-18  3:12 [PATCH v6 0/4] iio: accel: sca3000: simplify by using newer infrastructure Andrew Ijano
2025-06-18  3:12 ` [PATCH v6 1/4] iio: accel: sca3000: replace usages of internal read data helpers by spi helpers Andrew Ijano
2025-06-21 17:38   ` Jonathan Cameron
2025-07-05  3:17     ` Andrew Ijano
2025-06-18  3:12 ` [PATCH v6 2/4] iio: accel: sca3000: clean sca3000_read_data() Andrew Ijano
2025-06-21 17:40   ` Jonathan Cameron
2025-06-18  3:12 ` [PATCH v6 3/4] iio: accel: sca3000: use lock guards Andrew Ijano
2025-06-21 17:55   ` Jonathan Cameron
2025-07-05  3:37     ` Andrew Ijano
2025-07-06  9:37       ` Jonathan Cameron
2025-06-18  3:12 ` [PATCH v6 4/4] iio: accel: sca3000: use sysfs_emit_at() instead of sprintf() Andrew Ijano
2025-06-21 17:58   ` Jonathan Cameron
2025-07-05  3:45     ` Andrew Ijano
2025-07-06  9:41       ` Jonathan Cameron
2025-06-18  5:55 ` [PATCH v6 0/4] iio: accel: sca3000: simplify by using newer infrastructure Andy Shevchenko
2025-06-18 12:24   ` Andrew Ijano
2025-06-18 17:41     ` Andy Shevchenko
2025-06-18 18:20       ` Andrew Ijano
2025-06-19 15:23         ` Andy Shevchenko
2025-07-05  3:03           ` Andrew Ijano
2025-07-05 18:18             ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).