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 Fix const in drm_mat...
details: https://anonhg.NetBSD.org/src/rev/1838e291a88a
branches: riastradh-drm2
changeset: 788262:1838e291a88a
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:58:25 2013 +0000
description:
Fix const in drm_match_cea_mode in drm_edid.c.
diffstat:
sys/external/bsd/drm2/dist/drm/drm_edid.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r dd8855a4684f -r 1838e291a88a sys/external/bsd/drm2/dist/drm/drm_edid.c
--- a/sys/external/bsd/drm2/dist/drm/drm_edid.c Wed Jul 24 02:58:09 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_edid.c Wed Jul 24 02:58:25 2013 +0000
@@ -1549,11 +1549,19 @@
*/
u8 drm_match_cea_mode(struct drm_display_mode *to_match)
{
+#ifdef __NetBSD__
+ const struct drm_display_mode *cea_mode;
+#else
struct drm_display_mode *cea_mode;
+#endif
u8 mode;
for (mode = 0; mode < drm_num_cea_modes; mode++) {
+#ifdef __NetBSD__
+ cea_mode = &edid_cea_modes[mode];
+#else
cea_mode = (struct drm_display_mode *)&edid_cea_modes[mode];
+#endif
if (drm_mode_equal(to_match, cea_mode))
return mode + 1;
Home |
Main Index |
Thread Index |
Old Index