summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibEDID/EDID.cpp
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-09-24 16:27:39 +0300
committerLinus Groh <mail@linusgroh.de>2022-09-24 15:36:19 +0100
commit50ed50752f5cf0d66f8d478a006eb57a019fe954 (patch)
tree7189e175f87dd652fa9cd8ef087a72c9351477b2 /Userland/Libraries/LibEDID/EDID.cpp
parentc04b107e26175033af8a36855f9d3bed9756a734 (diff)
downloadserenity-50ed50752f5cf0d66f8d478a006eb57a019fe954.zip
LibEDID: Remove head index when retrieving an EDID from DisplayConnector
We simply don't need that field anymore, as it was used when one FramebufferDevice could contain multiple framebuffers within it, each for a connected screen head.
Diffstat (limited to 'Userland/Libraries/LibEDID/EDID.cpp')
-rw-r--r--Userland/Libraries/LibEDID/EDID.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Userland/Libraries/LibEDID/EDID.cpp b/Userland/Libraries/LibEDID/EDID.cpp
index b5354e1c88..aa8c2feb92 100644
--- a/Userland/Libraries/LibEDID/EDID.cpp
+++ b/Userland/Libraries/LibEDID/EDID.cpp
@@ -198,11 +198,10 @@ ErrorOr<Parser> Parser::from_bytes(ByteBuffer&& bytes)
}
#ifndef KERNEL
-ErrorOr<Parser> Parser::from_display_connector_device(int display_connector_fd, size_t head)
+ErrorOr<Parser> Parser::from_display_connector_device(int display_connector_fd)
{
RawBytes edid_bytes;
GraphicsHeadEDID edid_info {};
- edid_info.head_index = head;
edid_info.bytes = &edid_bytes[0];
edid_info.bytes_size = sizeof(edid_bytes);
if (graphics_connector_get_head_edid(display_connector_fd, &edid_info) < 0) {
@@ -226,7 +225,7 @@ ErrorOr<Parser> Parser::from_display_connector_device(int display_connector_fd,
return from_bytes(move(edid_byte_buffer));
}
-ErrorOr<Parser> Parser::from_display_connector_device(String const& display_connector_device, size_t head)
+ErrorOr<Parser> Parser::from_display_connector_device(String const& display_connector_device)
{
int display_connector_fd = open(display_connector_device.characters(), O_RDWR | O_CLOEXEC);
if (display_connector_fd < 0) {
@@ -236,7 +235,7 @@ ErrorOr<Parser> Parser::from_display_connector_device(String const& display_conn
ScopeGuard fd_guard([&] {
close(display_connector_fd);
});
- return from_display_connector_device(display_connector_fd, head);
+ return from_display_connector_device(display_connector_fd);
}
#endif