linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/3] iio: accel: sca3000: simplify by using newer infrastructure
@ 2025-06-11 19:39 Andrew Ijano
  2025-06-11 19:39 ` [PATCH v5 1/3] iio: accel: sca3000: replace error_ret labels by simple returns Andrew Ijano
                   ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: Andrew Ijano @ 2025-06-11 19:39 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>
---
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 (3):
  iio: accel: sca3000: replace error_ret labels by simple returns
  iio: accel: sca3000: replace usages of internal read data helpers by
    spi helpers
  iio: accel: sca3000: use guard(mutex)() for handling mutex lock

 drivers/iio/accel/sca3000.c | 366 +++++++++++++-----------------------
 1 file changed, 133 insertions(+), 233 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-06-18  2:36 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-11 19:39 [PATCH v5 0/3] iio: accel: sca3000: simplify by using newer infrastructure Andrew Ijano
2025-06-11 19:39 ` [PATCH v5 1/3] iio: accel: sca3000: replace error_ret labels by simple returns Andrew Ijano
2025-06-12  6:20   ` Nuno Sá
2025-06-12  6:41     ` Nuno Sá
2025-06-14 19:12       ` Andrew Ijano
2025-06-12 12:56   ` Andy Shevchenko
2025-06-14 11:48     ` Jonathan Cameron
2025-06-14 19:16       ` Andrew Ijano
2025-06-11 19:39 ` [PATCH v5 2/3] iio: accel: sca3000: replace usages of internal read data helpers by spi helpers Andrew Ijano
2025-06-12  6:29   ` Nuno Sá
2025-06-14 19:33     ` Andrew Ijano
2025-06-18  2:36       ` Andrew Ijano
2025-06-12 13:22   ` Andy Shevchenko
2025-06-14 21:06     ` Andrew Ijano
2025-06-14 21:50       ` Andy Shevchenko
2025-06-15  3:21         ` Andrew Ijano
2025-06-11 19:39 ` [PATCH v5 3/3] iio: accel: sca3000: use guard(mutex)() for handling mutex lock Andrew Ijano
2025-06-12  6:38   ` Nuno Sá
2025-06-14 11:54     ` Jonathan Cameron
2025-06-14 21:17     ` Andrew Ijano
2025-06-12 14:48   ` kernel test robot
2025-06-12 15:52   ` kernel test robot
2025-06-12 16:06     ` David Lechner
2025-06-14 21:21       ` Andrew Ijano
2025-06-14 12:01   ` Jonathan Cameron
2025-06-14 21:40     ` Andrew Ijano

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).