From: kn Date: Wed, 19 Oct 2022 09:11:26 +0000 (+0000) Subject: Constify global tables only used in lookups, OK ratchov X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4688c467b334944097a4b226b00bfecdc72a6d8d;p=openbsd Constify global tables only used in lookups, OK ratchov --- diff --git a/sys/dev/pci/maestro.c b/sys/dev/pci/maestro.c index abbcbba999d..1f68eca1480 100644 --- a/sys/dev/pci/maestro.c +++ b/sys/dev/pci/maestro.c @@ -1,4 +1,4 @@ -/* $OpenBSD: maestro.c,v 1.47 2022/10/18 08:22:19 kn Exp $ */ +/* $OpenBSD: maestro.c,v 1.48 2022/10/19 09:11:26 kn Exp $ */ /* $FreeBSD: /c/ncvs/src/sys/dev/sound/pci/maestro.c,v 1.3 2000/11/21 12:22:11 julian Exp $ */ /* * FreeBSD's ESS Agogo/Maestro driver @@ -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[] = { diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c index 3b301fed636..154773b4247 100644 --- a/sys/dev/usb/uaudio.c +++ b/sys/dev/usb/uaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uaudio.c,v 1.169 2022/03/21 19:22:42 miod Exp $ */ +/* $OpenBSD: uaudio.c,v 1.170 2022/10/19 09:11:26 kn Exp $ */ /* * Copyright (c) 2018 Alexandre Ratchov * @@ -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 };