Re: dev/isa: ess, pas: constify string table

2022-10-19 Thread Alexandre Ratchov
On Tue, Oct 18, 2022 at 02:27:53PM +, Klemens Nanni wrote:
> Each only used once for a printf() call in *_attach().
> Seen while tweaking their *_hw_if struct.
> 
> OK?
> 

ok



dev/isa: ess, pas: constify string table

2022-10-18 Thread Klemens Nanni
Each only used once for a printf() call in *_attach().
Seen while tweaking their *_hw_if struct.

OK?

Index: dev/isa/ess.c
===
RCS file: /cvs/src/sys/dev/isa/ess.c,v
retrieving revision 1.28
diff -u -p -r1.28 ess.c
--- dev/isa/ess.c   21 Mar 2022 19:22:40 -  1.28
+++ dev/isa/ess.c   18 Oct 2022 14:21:45 -
@@ -181,7 +181,7 @@ voidess_clear_mreg_bits(struct ess_soft
 void   ess_set_mreg_bits(struct ess_softc *, u_char, u_char);
 void   ess_read_multi_mix_reg(struct ess_softc *, u_char, u_int8_t *, 
bus_size_t);
 
-static char *essmodel[] = {
+static const char *essmodel[] = {
"unsupported",
"1888",
"1887",
Index: dev/isa/pas.c
===
RCS file: /cvs/src/sys/dev/isa/pas.c,v
retrieving revision 1.33
diff -u -p -r1.33 pas.c
--- dev/isa/pas.c   6 Apr 2022 18:59:28 -   1.33
+++ dev/isa/pas.c   18 Oct 2022 14:21:37 -
@@ -136,7 +136,7 @@ const struct audio_hw_if pas_hw_if = {
 /* The Address Translation code is used to convert I/O register addresses to
be relative to the given base -register */
 
-static char *pasnames[] = {
+static const char *pasnames[] = {
"",
"Plus",
"CDPC",