mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Kernel/Graphics: Return ENODEV if there's no valid EDID to return
ENODEV better represents the fact that there might be no display device (e.g. a monitor) connected to the connector, therefore we should return this error. Another reason to not use ENOTIMPL is that it's a requirement for all DisplayConnectors to put a valid EDID in place even for a hardware we don't currently support mode-setting in runtime.
This commit is contained in:
parent
b2da5d3e62
commit
9eab59c42b
Notes:
sideshowbarker
2024-07-17 00:23:42 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/9eab59c42b Pull-request: https://github.com/SerenityOS/serenity/pull/17283 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ DisplayConnector::ModeSetting DisplayConnector::current_mode_setting() const
|
|||
ErrorOr<ByteBuffer> DisplayConnector::get_edid() const
|
||||
{
|
||||
if (!m_edid_valid)
|
||||
return Error::from_errno(ENOTIMPL);
|
||||
return Error::from_errno(ENODEV);
|
||||
return ByteBuffer::copy(m_edid_bytes, sizeof(m_edid_bytes));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue