Use C99 struct init for struct audio_hw_if
authorkn <kn@openbsd.org>
Wed, 19 Oct 2022 19:14:16 +0000 (19:14 +0000)
committerkn <kn@openbsd.org>
Wed, 19 Oct 2022 19:14:16 +0000 (19:14 +0000)
commit5a8d990a1c03ae1f0ca22f781f3c3638f48a3afc
treecf1508c61485971af8cc5a9e2aa6d5492a3392ad
parenta08d2734c1dc95fe96d7c7cb0d28c4603f812f67
Use C99 struct init for struct audio_hw_if

This audio(9) struct will lose a member, but drivers init their struct quite
inconsistently, most pre-C99 style.

Use C99 style everywhere, to get rid of all annoying differences and allow
for easy member removals/additions:
- don't change current order of members
- no explicit NULL members
- no comments or blank lines
- trailing comma in last member line

GENERIC.MP builds fine with this on arm64, amd64, i386 and sparc64.

macppc and alpha build-tested by miod
OK ratchov miod
37 files changed:
sys/arch/hppa/gsc/harmony.c
sys/arch/luna88k/cbus/nec86.c
sys/arch/macppc/dev/aoa.c
sys/arch/macppc/dev/awacs.c
sys/arch/macppc/dev/daca.c
sys/arch/macppc/dev/onyx.c
sys/arch/macppc/dev/snapper.c
sys/arch/macppc/dev/tumbler.c
sys/arch/sparc64/dev/ce4231.c
sys/dev/isa/ess.c
sys/dev/isa/gus.c
sys/dev/isa/pas.c
sys/dev/isa/sb.c
sys/dev/pci/auacer.c
sys/dev/pci/auglx.c
sys/dev/pci/auich.c
sys/dev/pci/auixp.c
sys/dev/pci/autri.c
sys/dev/pci/auvia.c
sys/dev/pci/azalia.c
sys/dev/pci/cmpci.c
sys/dev/pci/cs4280.c
sys/dev/pci/cs4281.c
sys/dev/pci/eap.c
sys/dev/pci/emuxki.c
sys/dev/pci/envy.c
sys/dev/pci/esa.c
sys/dev/pci/eso.c
sys/dev/pci/fms.c
sys/dev/pci/maestro.c
sys/dev/pci/neo.c
sys/dev/pci/sv.c
sys/dev/pci/yds.c
sys/dev/sbus/cs4231.c
sys/dev/tc/bba.c
sys/dev/usb/uaudio.c
sys/dev/usb/utvfu.c