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 Make const compi...



details:   https://anonhg.NetBSD.org/src/rev/56813f02703c
branches:  trunk
changeset: 1028697:56813f02703c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:47:33 2021 +0000

description:
Make const compiler warnings happier


Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/display/intel_lspcon.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0084d2a5b4da -r 56813f02703c sys/external/bsd/drm2/dist/drm/i915/display/intel_lspcon.c
--- a/sys/external/bsd/drm2/dist/drm/i915/display/intel_lspcon.c        Sun Dec 19 11:47:25 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/display/intel_lspcon.c        Sun Dec 19 11:47:33 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intel_lspcon.c,v 1.2 2021/12/18 23:45:30 riastradh Exp $       */
+/*     $NetBSD: intel_lspcon.c,v 1.3 2021/12/19 11:47:33 riastradh Exp $       */
 
 /*
  * Copyright © 2016 Intel Corporation
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intel_lspcon.c,v 1.2 2021/12/18 23:45:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intel_lspcon.c,v 1.3 2021/12/19 11:47:33 riastradh Exp $");
 
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_dp_dual_mode_helper.h>
@@ -388,7 +388,7 @@
        while (val < len) {
                /* DPCD write for AVI IF can fail on a slow FW day, so retry */
                for (retry = 0; retry < 5; retry++) {
-                       ret = drm_dp_dpcd_write(aux, reg, (void *)data, 1);
+                       ret = drm_dp_dpcd_write(aux, reg, (void *)__UNCONST(data), 1);
                        if (ret == 1) {
                                break;
                        } else if (retry < 4) {



Home | Main Index | Thread Index | Old Index