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

Hungyu Lin posted 2 patches 2 months ago
drivers/staging/sm750fb/sm750_accel.c | 20 +++++++++++++-------
drivers/staging/sm750fb/sm750_hw.c    |  4 ++--
2 files changed, 15 insertions(+), 9 deletions(-)
[PATCH v2 0/2] staging: sm750fb: improve error handling in de_wait path
Posted by Hungyu Lin 2 months ago
This series improves error handling in the sm750fb driver.

The de_wait() helpers previously returned -1 on timeout, and
callers discarded the error code 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 from de_wait().

v2:
- Restore the removed comment in sm750_accel.c as requested

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 | 20 +++++++++++++-------
 drivers/staging/sm750fb/sm750_hw.c    |  4 ++--
 2 files changed, 15 insertions(+), 9 deletions(-)

-- 
2.34.1