[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250618031638.26477-1-andrew.lopes@alumni.usp.br>
Date: Wed, 18 Jun 2025 00:12:15 -0300
From: Andrew Ijano <andrew.ijano@...il.com>
To: jic23@...nel.org
Cc: andrew.lopes@...mni.usp.br,
gustavobastos@....br,
dlechner@...libre.com,
nuno.sa@...log.com,
andy@...nel.org,
jstephan@...libre.com,
linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v6 0/4] iio: accel: sca3000: simplify by using newer infrastructure
The sca3000 driver is old and could be simplified by using newer
infrastructure.
Signed-off-by: Andrew Ijano <andrew.lopes@...mni.usp.br>
Co-developed-by: Gustavo Bastos <gustavobastos@....br>
Signed-off-by: Gustavo Bastos <gustavobastos@....br>
Suggested-by: Jonathan Cameron <jic23@...nel.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
Powered by blists - more mailing lists