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>
This commit is contained in:
Hungyu Lin 2026-04-27 05:46:56 +00:00 committed by Greg Kroah-Hartman
parent 13d883fa23
commit 2381baa4a9

View File

@ -501,8 +501,8 @@ int hw_sm750le_de_wait(void)
(DE_STATE2_DE_FIFO_EMPTY | DE_STATE2_DE_MEM_FIFO_EMPTY))
return 0;
}
/* timeout error */
return -1;
return -ETIMEDOUT;
}
int hw_sm750_de_wait(void)
@ -519,8 +519,8 @@ int hw_sm750_de_wait(void)
(SYSTEM_CTRL_DE_FIFO_EMPTY | SYSTEM_CTRL_DE_MEM_FIFO_EMPTY))
return 0;
}
/* timeout error */
return -1;
return -ETIMEDOUT;
}
int hw_sm750_pan_display(struct lynxfb_crtc *crtc,