Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915/display i915: No need fo...
details: https://anonhg.NetBSD.org/src/rev/d95d324969e0
branches: trunk
changeset: 1028890:d95d324969e0
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:24:49 2021 +0000
description:
i915: No need for #ifdef __NetBSD__ to sprinkle legitimate const.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/display/intel_bios.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diffs (35 lines):
diff -r ec8a6b98bb20 -r d95d324969e0 sys/external/bsd/drm2/dist/drm/i915/display/intel_bios.c
--- a/sys/external/bsd/drm2/dist/drm/i915/display/intel_bios.c Sun Dec 19 12:24:36 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/display/intel_bios.c Sun Dec 19 12:24:49 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intel_bios.c,v 1.3 2021/12/19 11:38:03 riastradh Exp $ */
+/* $NetBSD: intel_bios.c,v 1.4 2021/12/19 12:24:49 riastradh Exp $ */
/*
* Copyright © 2006 Intel Corporation
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intel_bios.c,v 1.3 2021/12/19 11:38:03 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intel_bios.c,v 1.4 2021/12/19 12:24:49 riastradh Exp $");
#include <drm/drm_dp_helper.h>
#include <drm/i915_drm.h>
@@ -188,16 +188,10 @@
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