From: kn Date: Wed, 19 Oct 2022 07:59:26 +0000 (+0000) Subject: Constify audio_hw_if struct X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=36a50a7e79dac2bc53859a6f54d6d2b4248bde1e;p=openbsd Constify audio_hw_if struct The only driver with a non-const audio(9) struct. OK gnezdo --- diff --git a/sys/arch/arm64/dev/aplmca.c b/sys/arch/arm64/dev/aplmca.c index 07a53103be4..559dd765933 100644 --- a/sys/arch/arm64/dev/aplmca.c +++ b/sys/arch/arm64/dev/aplmca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aplmca.c,v 1.3 2022/09/02 17:54:42 kettenis Exp $ */ +/* $OpenBSD: aplmca.c,v 1.4 2022/10/19 07:59:26 kn Exp $ */ /* * Copyright (c) 2022 Mark Kettenis * @@ -135,7 +135,7 @@ int aplmca_trigger_input(void *, void *, void *, int, int aplmca_halt_output(void *); int aplmca_halt_input(void *); -struct audio_hw_if aplmca_hw_if = { +const struct audio_hw_if aplmca_hw_if = { .set_params = aplmca_set_params, .get_props = aplmca_get_props, .allocm = aplmca_allocm,