[PATCH 0/2] staging: sm750fb: improve error handling in de_wait path

Hungyu Lin posted 2 patches 2 months, 1 week ago
There is a newer version of this series
drivers/staging/sm750fb/sm750_accel.c | 22 ++++++++++++----------
drivers/staging/sm750fb/sm750_hw.c    |  4 ++--
2 files changed, 14 insertions(+), 12 deletions(-)
[PATCH 0/2] staging: sm750fb: improve error handling in de_wait path
Posted by Hungyu Lin 2 months, 1 week ago
This series improves error handling in the sm750fb driver.

The de_wait() helpers currently return -1 on timeout and callers
discard error codes by always returning -1. This series replaces
-1 with -ETIMEDOUT and propagates the error code to improve
error reporting.

Patch 1 replaces -1 with -ETIMEDOUT in de_wait() helpers.
Patch 2 propagates error codes in callers instead of returning -1.

Hungyu Lin (2):
  staging: sm750fb: return -ETIMEDOUT on timeout in de_wait functions
  staging: sm750fb: propagate error codes from de_wait()

 drivers/staging/sm750fb/sm750_accel.c | 22 ++++++++++++----------
 drivers/staging/sm750fb/sm750_hw.c    |  4 ++--
 2 files changed, 14 insertions(+), 12 deletions(-)

-- 
2.34.1