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



details:   https://anonhg.NetBSD.org/src/rev/a3a106f061cb
branches:  trunk
changeset: 1028359:a3a106f061cb
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 10:48:14 2021 +0000

description:
Make this const.

(Why did I rewrite drm_encoder_slave.h?)

diffstat:

 sys/external/bsd/drm2/i2c/drm_encoder_slave.c         |  6 +++---
 sys/external/bsd/drm2/include/drm/drm_encoder_slave.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 474fc036c8ea -r a3a106f061cb sys/external/bsd/drm2/i2c/drm_encoder_slave.c
--- a/sys/external/bsd/drm2/i2c/drm_encoder_slave.c     Sun Dec 19 10:48:07 2021 +0000
+++ b/sys/external/bsd/drm2/i2c/drm_encoder_slave.c     Sun Dec 19 10:48:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_encoder_slave.c,v 1.1 2015/03/05 17:42:48 riastradh Exp $  */
+/*     $NetBSD: drm_encoder_slave.c,v 1.2 2021/12/19 10:48:14 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_encoder_slave.c,v 1.1 2015/03/05 17:42:48 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_encoder_slave.c,v 1.2 2021/12/19 10:48:14 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/atomic.h>
@@ -205,7 +205,7 @@
        return bus_priv->i2c_client;
 }
 
-static inline struct drm_encoder_slave_funcs *
+static inline const struct drm_encoder_slave_funcs *
 slave_funcs(struct drm_encoder *encoder)
 {
 
diff -r 474fc036c8ea -r a3a106f061cb sys/external/bsd/drm2/include/drm/drm_encoder_slave.h
--- a/sys/external/bsd/drm2/include/drm/drm_encoder_slave.h     Sun Dec 19 10:48:07 2021 +0000
+++ b/sys/external/bsd/drm2/include/drm/drm_encoder_slave.h     Sun Dec 19 10:48:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_encoder_slave.h,v 1.2 2021/12/19 00:50:26 riastradh Exp $  */
+/*     $NetBSD: drm_encoder_slave.h,v 1.3 2021/12/19 10:48:15 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
 
 struct drm_encoder_slave {
        struct drm_encoder              base;
-       struct drm_encoder_slave_funcs  *slave_funcs;
+       const struct drm_encoder_slave_funcs *slave_funcs;
        void                            *slave_priv;
        void                            *bus_priv;
 };



Home | Main Index | Thread Index | Old Index