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 Constify some pointer arguments.



details:   https://anonhg.NetBSD.org/src/rev/c33fb24a2918
branches:  trunk
changeset: 1027872:c33fb24a2918
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:02:10 2021 +0000

description:
Constify some pointer arguments.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_connector.c         |  8 ++++----
 sys/external/bsd/drm2/dist/include/drm/drm_connector.h |  6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (57 lines):

diff -r 640f1d3f7f8a -r c33fb24a2918 sys/external/bsd/drm2/dist/drm/drm_connector.c
--- a/sys/external/bsd/drm2/dist/drm/drm_connector.c    Sun Dec 19 01:02:02 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_connector.c    Sun Dec 19 01:02:10 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_connector.c,v 1.3 2021/12/19 00:56:01 riastradh Exp $      */
+/*     $NetBSD: drm_connector.c,v 1.4 2021/12/19 01:02:10 riastradh Exp $      */
 
 /*
  * Copyright (c) 2016 Intel Corporation
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_connector.c,v 1.3 2021/12/19 00:56:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_connector.c,v 1.4 2021/12/19 01:02:10 riastradh Exp $");
 
 #include <drm/drm_connector.h>
 #include <drm/drm_edid.h>
@@ -2357,7 +2357,7 @@
  * tile group or NULL if not found.
  */
 struct drm_tile_group *drm_mode_get_tile_group(struct drm_device *dev,
-                                              char topology[8])
+                                              const char topology[8])
 {
        struct drm_tile_group *tg;
        int id;
@@ -2387,7 +2387,7 @@
  * new tile group or NULL.
  */
 struct drm_tile_group *drm_mode_create_tile_group(struct drm_device *dev,
-                                                 char topology[8])
+                                                 const char topology[8])
 {
        struct drm_tile_group *tg;
        int ret;
diff -r 640f1d3f7f8a -r c33fb24a2918 sys/external/bsd/drm2/dist/include/drm/drm_connector.h
--- a/sys/external/bsd/drm2/dist/include/drm/drm_connector.h    Sun Dec 19 01:02:02 2021 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drm_connector.h    Sun Dec 19 01:02:10 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_connector.h,v 1.2 2021/12/18 23:45:45 riastradh Exp $      */
+/*     $NetBSD: drm_connector.h,v 1.3 2021/12/19 01:02:10 riastradh Exp $      */
 
 /*
  * Copyright (c) 2016 Intel Corporation
@@ -1577,9 +1577,9 @@
 };
 
 struct drm_tile_group *drm_mode_create_tile_group(struct drm_device *dev,
-                                                 char topology[8]);
+                                                 const char topology[8]);
 struct drm_tile_group *drm_mode_get_tile_group(struct drm_device *dev,
-                                              char topology[8]);
+                                              const char topology[8]);
 void drm_mode_put_tile_group(struct drm_device *dev,
                             struct drm_tile_group *tg);
 



Home | Main Index | Thread Index | Old Index