summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe/of.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ddcprobe/of.c')
-rw-r--r--tools/ddcprobe/of.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/ddcprobe/of.c b/tools/ddcprobe/of.c
index aab0632f1..f8fdc30dd 100644
--- a/tools/ddcprobe/of.c
+++ b/tools/ddcprobe/of.c
@@ -138,6 +138,9 @@ int vbe_get_edid_info(struct vbe_edid1_info * ret)
man = ntohs(man);
memcpy(&ret->manufacturer_name, &man, 2);
+ /* byteswap to match the contents of MonitorsDB */
+ ret->product_code = ((ret->product_code >> 8) & 0xff) | ((ret->product_code & 0xff) << 8);
+
free(mem);
return 1;
}