output buffer write fops fixes
Status from this message: Applied to the fixes-togreg branch of iio.git and marked for stable.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | iio: buffer: correctly return bytes written in output buffersdrivers/ | +1 | 2 replies | |
| 2/3 | iio: buffer: make sure O_NONBLOCK is respecteddrivers/ | +11 | 2 replies | |
| 3/3 | iio: buffer: fix coding style warningsdrivers/ | +49 | 4 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Lars-Peter Clausen |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] output buffer write fops fixes
This patchset adds some fixes for output buffers:
1) Always return the number of bytes that we effectively copied;
2) Make sure we never block if O_NONBLOCK is passed.
With 2) some refactoring was done on the loop which makes it (IMHO) a bit neater. Also note all of this is by code inspection and not really tested on a real system. Even though the changes are fairly trivial, I do intend to run a small test to make sure nothing basic broke.
Since I was touching this file, I jut felt I could fix all the checkpatch complains :)
Nuno Sá (3):
iio: buffer: correctly return bytes written in output buffers
iio: buffer: make sure O_NONBLOCK is respected
iio: buffer: fix coding style warnings
drivers/iio/industrialio-buffer.c | 119 +++++++++++++++--------------- 1 file changed, 61 insertions(+), 58 deletions(-)
Signature · 1 line
2.39.2