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 <linux/delay.h> for usleep_ra...



details:   https://anonhg.NetBSD.org/src/rev/12392ed482ea
branches:  trunk
changeset: 1027844:12392ed482ea
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 00:56:32 2021 +0000

description:
<linux/delay.h> for usleep_range; no arithmetic on void *.

diffstat:

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

diffs (27 lines):

diff -r 06d01afd256a -r 12392ed482ea sys/external/bsd/drm2/dist/drm/drm_dp_dual_mode_helper.c
--- a/sys/external/bsd/drm2/dist/drm/drm_dp_dual_mode_helper.c  Sun Dec 19 00:56:25 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_dp_dual_mode_helper.c  Sun Dec 19 00:56:32 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_dp_dual_mode_helper.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $    */
+/*     $NetBSD: drm_dp_dual_mode_helper.c,v 1.3 2021/12/19 00:56:32 riastradh Exp $    */
 
 /*
  * Copyright © 2016 Intel Corporation
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_dp_dual_mode_helper.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_dp_dual_mode_helper.c,v 1.3 2021/12/19 00:56:32 riastradh Exp $");
 
 #include <linux/delay.h>
 #include <linux/errno.h>
@@ -125,7 +125,7 @@
        msg.buf = data;
 
        memcpy(data, &offset, 1);
-       memcpy(data + 1, buffer, size);
+       memcpy((char *)data + 1, buffer, size);
 
        ret = i2c_transfer(adapter, &msg, 1);
 



Home | Main Index | Thread Index | Old Index