summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2020-06-27 09:28:15 +0000
committerjdolecek <jdolecek@NetBSD.org>2020-06-27 09:28:15 +0000
commit4c649719bb89d9fcdefbd77d694d8b7caae34c1c (patch)
tree9241071820a92013edb0c04f182111696b5b6dc8 /sys/dev
parent6bda4f84c39c7ded64284c8a0f1c8e5bd3357441 (diff)
small constify
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/aic79xx.c10
-rw-r--r--sys/dev/ic/aic7xxx.c8
2 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/ic/aic79xx.c b/sys/dev/ic/aic79xx.c
index 5b081d5174f..42981686c8e 100644
--- a/sys/dev/ic/aic79xx.c
+++ b/sys/dev/ic/aic79xx.c
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: aic79xx.c,v 1.54 2020/06/27 09:03:15 jdolecek Exp $"
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_controller_info(struct ahd_softc *ahd, char *tbuf, size_t l)
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 --git a/sys/dev/ic/aic7xxx.c b/sys/dev/ic/aic7xxx.c
index 7bd884d8c36..2ac03fcc975 100644
--- a/sys/dev/ic/aic7xxx.c
+++ b/sys/dev/ic/aic7xxx.c
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.140 2020/06/27 09:03:15 jdolecek Exp $
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",