From patchwork Fri Sep 15 09:26:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 723974 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C8C24EE644B for ; Fri, 15 Sep 2023 09:28:11 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B4740950; Fri, 15 Sep 2023 11:27:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B4740950 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1694770089; bh=Mbdo2cTvdaJ6xGvWgvPEo1XZtZy4diDnCu/ssFEvrWI=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=DI82V/EiICT7y7WSLEhsrxhdixtuX41S1EaGss9d4z7V+Q5WvgFRIDgQl0kCaObpw 5nBYXlmsp+XSbLTqmgjVAzmQZgVSoWTpYjACAV1RqcEoYhbquoYtnh72YcxtqXyo1m h5KQqXgK7mFRsHReUoi4lKSpS1y6GvQmExkSpzEo= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 721C0F8047D; Fri, 15 Sep 2023 11:26:48 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id E6B78F80425; Fri, 15 Sep 2023 11:26:47 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 26DF5F80425; Fri, 15 Sep 2023 11:26:44 +0200 (CEST) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id EB33EF80141 for ; Fri, 15 Sep 2023 11:26:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EB33EF80141 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=kBqAteQJ Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-31c7912416bso1729866f8f.1 for ; Fri, 15 Sep 2023 02:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694770001; x=1695374801; darn=alsa-project.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=I6AkTjApExULwisbP0f8MYFXveFddh4jpBpFZba8uP0=; b=kBqAteQJwmcc1gvmZlwo47vQ5cJT1jlDYq3jz2Rhl6R7K811XunOGO0+Gm5pIjBdN5 dQCBh60ymnlCVcMhX2T6QQy8707klkq46jvqVzCuydUW7qEdhU5YSR1aVbOqdTipP9F0 /KdtfZpJRoSmdmFjpPa7tMZJ/DbkidZ2E+HVWcbL3MOBWd2+I9542JLOLdvhv2+kXDTc GAncfJe75o6iEi7HYUu4gyinjLevWIFcYpQW4qdLXlys4mEfuKOm4h/xA8x8xoIq/OnR ng7aYoUJElN65Hd6dgQk0vPWCu5NsSNblbjhQT1mV0rhvwLITB0E42qgddP5QMEgiUlK 32CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694770001; x=1695374801; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I6AkTjApExULwisbP0f8MYFXveFddh4jpBpFZba8uP0=; b=AdTZ0vH+TPHxZh+u1C7EBBi6DOnReWuCy21fo7+yrsMyUu3Y15oLrm4UbzTeKUQD4M j8cLtWkZrNQNuE5+4oparGOOAnGNnpfuvZQ9j6b1gRWcr4rGyt+Rw4HlwW91284TQ2Gr rWQ+aZbnFxPkXpAeyrrIExfzto1779kl9WcOk5bgwPajZI31bGSL6Om8arNv9WQs4png 1aPKNclkKJANewRRe7NnbZFE2mFEMl060SCmFhPGkqNCrgRvLvheeQuNRcci8+ix2Ymt gFQTE1Nb3F52zXdHyMAEsyeFuO3M3QmqwJZFR0KfkDJwEmo6wgisDOn+jaY3J1QWeKLN DBXg== X-Gm-Message-State: AOJu0Yx7iF6jP7rq6bGLCwjCHTSaIY3nD4EZc606ajOSUGRhgQFKN/Fu paRVNSD35MjW80vhIXvmNsA= X-Google-Smtp-Source: AGHT+IGO7dNEsmwqe62k1eEbBiRKgNNo1d4fDvsoEEl8b2q/cCALAmnkXq8JIS+ehHW+Ftj+DVntWg== X-Received: by 2002:adf:ecc7:0:b0:31f:a717:f1cf with SMTP id s7-20020adfecc7000000b0031fa717f1cfmr893102wro.56.1694770000481; Fri, 15 Sep 2023 02:26:40 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id p20-20020a7bcc94000000b003feea62440bsm4109371wma.43.2023.09.15.02.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:26:40 -0700 (PDT) From: Colin Ian King To: James Schulman , David Rhodes , Richard Fitzgerald , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, patches@opensource.cirrus.com Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] ASoC: cs42l43: make const array controls static Date: Fri, 15 Sep 2023 10:26:39 +0100 Message-Id: <20230915092639.31074-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Message-ID-Hash: UXHF6P6F3VETB6WTVAAVV47SGX7TB64X X-Message-ID-Hash: UXHF6P6F3VETB6WTVAAVV47SGX7TB64X X-MailFrom: colin.i.king@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Don't populate the const array controls on the stack, instead make it static. Signed-off-by: Colin Ian King --- sound/soc/codecs/cs42l43.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42l43.c b/sound/soc/codecs/cs42l43.c index 1a95c370fc4c..4e3bc15f1b25 100644 --- a/sound/soc/codecs/cs42l43.c +++ b/sound/soc/codecs/cs42l43.c @@ -162,7 +162,7 @@ CS42L43_IRQ_COMPLETE(load_detect) static irqreturn_t cs42l43_mic_shutter(int irq, void *data) { struct cs42l43_codec *priv = data; - const char * const controls[] = { + static const char * const controls[] = { "Decimator 1 Switch", "Decimator 2 Switch", "Decimator 3 Switch",