Re: maestro(4), uaudio(4): constify globals

2022-10-19 Thread Alexandre Ratchov
On Wed, Oct 19, 2022 at 08:33:17AM +, Klemens Nanni wrote:
> Used only for lookups;  builds on i386.
> 
> OK?
> 

sure!



maestro(4), uaudio(4): constify globals

2022-10-19 Thread Klemens Nanni
Used only for lookups;  builds on i386.

OK?

Index: usb/uaudio.c
===
RCS file: /cvs/src/sys/dev/usb/uaudio.c,v
retrieving revision 1.169
diff -u -p -r1.169 uaudio.c
--- usb/uaudio.c21 Mar 2022 19:22:42 -  1.169
+++ usb/uaudio.c19 Oct 2022 08:32:24 -
@@ -501,7 +501,7 @@ const struct audio_hw_if uaudio_hw_if = 
  * don't care about continuous sample rates or other "advanced"
  * features which complicate implementation.
  */
-int uaudio_rates[] = {
+const int uaudio_rates[] = {
8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000,
64000, 88200, 96000, 128000, 176400, 192000
 };
Index: pci/maestro.c
===
RCS file: /cvs/src/sys/dev/pci/maestro.c,v
retrieving revision 1.46
diff -u -p -r1.46 maestro.c
--- pci/maestro.c   21 Mar 2022 19:22:41 -  1.46
+++ pci/maestro.c   19 Oct 2022 08:31:53 -
@@ -552,7 +552,7 @@ const struct audio_hw_if maestro_hw_if =
maestro_trigger_input
 };
 
-struct {
+const struct {
u_short vendor, product;
int flags;
 } maestro_pcitab[] = {