Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic small constify



details:   https://anonhg.NetBSD.org/src/rev/8226131f92a3
branches:  trunk
changeset: 973322:8226131f92a3
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Jun 27 09:28:15 2020 +0000

description:
small constify

diffstat:

 sys/dev/ic/aic79xx.c |  10 +++++-----
 sys/dev/ic/aic7xxx.c |   8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (80 lines):

diff -r a4b18506259a -r 8226131f92a3 sys/dev/ic/aic79xx.c
--- a/sys/dev/ic/aic79xx.c      Sat Jun 27 09:03:15 2020 +0000
+++ b/sys/dev/ic/aic79xx.c      Sat Jun 27 09:28:15 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic79xx.c,v 1.54 2020/06/27 09:03:15 jdolecek Exp $    */
+/*     $NetBSD: aic79xx.c,v 1.55 2020/06/27 09:28:15 jdolecek Exp $    */
 
 /*
  * Core routines and tables shareable across OS platforms.
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic79xx.c,v 1.54 2020/06/27 09:03:15 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic79xx.c,v 1.55 2020/06/27 09:28:15 jdolecek Exp $");
 
 #include <dev/ic/aic79xx_osm.h>
 #include <dev/ic/aic79xx_inline.h>
@@ -63,7 +63,7 @@
 struct ahd_softc_tailq ahd_tailq = TAILQ_HEAD_INITIALIZER(ahd_tailq);
 
 /***************************** Lookup Tables **********************************/
-const char *ahd_chip_names[] =
+const char * const ahd_chip_names[] =
 {
        "NONE",
        "aic7901",
@@ -5983,14 +5983,14 @@
                ahd->scb_data.maxhscbs);
 }
 
-static const char *channel_strings[] = {
+static const char * const channel_strings[] = {
        "Primary Low",
        "Primary High",
        "Secondary Low",
        "Secondary High"
 };
 
-static const char *termstat_strings[] = {
+static const char * const termstat_strings[] = {
        "Terminated Correctly",
        "Over Terminated",
        "Under Terminated",
diff -r a4b18506259a -r 8226131f92a3 sys/dev/ic/aic7xxx.c
--- a/sys/dev/ic/aic7xxx.c      Sat Jun 27 09:03:15 2020 +0000
+++ b/sys/dev/ic/aic7xxx.c      Sat Jun 27 09:28:15 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic7xxx.c,v 1.140 2020/06/27 09:03:15 jdolecek Exp $   */
+/*     $NetBSD: aic7xxx.c,v 1.141 2020/06/27 09:28:15 jdolecek Exp $   */
 
 /*
  * Core routines and tables shareable across OS platforms.
@@ -39,7 +39,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGES.
  *
- * $Id: aic7xxx.c,v 1.140 2020/06/27 09:03:15 jdolecek Exp $
+ * $Id: aic7xxx.c,v 1.141 2020/06/27 09:28:15 jdolecek Exp $
  *
  * //depot/aic7xxx/aic7xxx/aic7xxx.c#112 $
  *
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.140 2020/06/27 09:03:15 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.141 2020/06/27 09:28:15 jdolecek Exp $");
 
 #include <dev/ic/aic7xxx_osm.h>
 #include <dev/ic/aic7xxx_inline.h>
@@ -60,7 +60,7 @@
 struct ahc_softc_tailq ahc_tailq = TAILQ_HEAD_INITIALIZER(ahc_tailq);
 
 /***************************** Lookup Tables **********************************/
-const char *ahc_chip_names[] =
+const char * const ahc_chip_names[] =
 {
        "NONE",
        "aic7770",



Home | Main Index | Thread Index | Old Index