summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe/of.c
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-12-15 16:09:45 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-12-15 16:09:45 +0000
commit276fbc764b2a574a7a85f8deffb49e1763da4b8f (patch)
tree822b7ae49c6172873a6bedbb5fe4c8ab246587f1 /tools/ddcprobe/of.c
parent2898f7dcae895ccd5b302f795c0a442a9d27b472 (diff)
downloaddrakx-276fbc764b2a574a7a85f8deffb49e1763da4b8f.tar
drakx-276fbc764b2a574a7a85f8deffb49e1763da4b8f.tar.gz
drakx-276fbc764b2a574a7a85f8deffb49e1763da4b8f.tar.bz2
drakx-276fbc764b2a574a7a85f8deffb49e1763da4b8f.tar.xz
drakx-276fbc764b2a574a7a85f8deffb49e1763da4b8f.zip
ppc & ppc64 fixes
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;
}