]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: sm750fb: return -ETIMEDOUT on timeout in de_wait functions
authorHungyu Lin <dennylin0707@gmail.com>
Mon, 27 Apr 2026 05:46:56 +0000 (05:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 May 2026 14:15:47 +0000 (16:15 +0200)
commit2381baa4a9a0fe96007933084bc05fa4e40258f4
tree783d0c7e0fb3bf1f26c58f95580fd68b6939a54e
parent13d883fa23289979f9fe28f28c6505bea5e0393c
staging: sm750fb: return -ETIMEDOUT on timeout in de_wait functions

The hw_sm750le_de_wait() and hw_sm750_de_wait() functions return -1
when a timeout occurs. Replace these with -ETIMEDOUT to use a proper
errno value and better describe the error condition.

All callers check the return value as non-zero, so this change does
not alter existing behavior.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Link: https://patch.msgid.link/20260427054657.758-2-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750_hw.c