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 Avoid {0} struc...
details: https://anonhg.NetBSD.org/src/rev/3f83e07b37b9
branches: riastradh-drm2
changeset: 788402:3f83e07b37b9
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:38:33 2013 +0000
description:
Avoid {0} struct initializer in ironlake_set_m_n in intel_display.c.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/intel_display.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r b0d0adfae234 -r 3f83e07b37b9 sys/external/bsd/drm2/dist/drm/i915/intel_display.c
--- a/sys/external/bsd/drm2/dist/drm/i915/intel_display.c Wed Jul 24 03:38:08 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/intel_display.c Wed Jul 24 03:38:33 2013 +0000
@@ -5414,7 +5414,12 @@
struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
enum transcoder cpu_transcoder = intel_crtc->cpu_transcoder;
struct intel_encoder *intel_encoder, *edp_encoder = NULL;
+#ifdef __NetBSD__
+ static const struct fdi_m_n zero_m_n;
+ struct fdi_m_n m_n = zero_m_n;
+#else
struct fdi_m_n m_n = {0};
+#endif
int target_clock, pixel_multiplier, lane, link_bw;
bool is_dp = false, is_cpu_edp = false;
Home |
Main Index |
Thread Index |
Old Index