Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm/i915 Fix const in ge...
details: https://anonhg.NetBSD.org/src/rev/98f46b3feb9f
branches: riastradh-drm2
changeset: 788381:98f46b3feb9f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:31:45 2013 +0000
description:
Fix const in get_lvds_dvo_timing.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/intel_bios.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r 30bbfb26b093 -r 98f46b3feb9f sys/external/bsd/drm2/dist/drm/i915/intel_bios.c
--- a/sys/external/bsd/drm2/dist/drm/i915/intel_bios.c Wed Jul 24 03:31:29 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/intel_bios.c Wed Jul 24 03:31:45 2013 +0000
@@ -168,9 +168,16 @@
int dvo_timing_offset =
lvds_lfp_data_ptrs->ptr[0].dvo_timing_offset -
lvds_lfp_data_ptrs->ptr[0].fp_timing_offset;
+#ifdef __NetBSD__
+ const char *entry = (const char *)lvds_lfp_data->data +
+ lfp_data_size * index;
+
+ return (const struct lvds_dvo_timing *)(entry + dvo_timing_offset);
+#else
char *entry = (char *)lvds_lfp_data->data + lfp_data_size * index;
return (struct lvds_dvo_timing *)(entry + dvo_timing_offset);
+#endif
}
/* get lvds_fp_timing entry
Home |
Main Index |
Thread Index |
Old Index