From patchwork Fri Oct 1 11:50:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rikard Falkeborn X-Patchwork-Id: 12530403 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF123C433EF for ; Fri, 1 Oct 2021 11:52:13 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9C597610C8 for ; Fri, 1 Oct 2021 11:52:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9C597610C8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2AA8116D5; Fri, 1 Oct 2021 13:51:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2AA8116D5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1633089131; bh=LKig4MrPzfslwphRF1C+TQxSwRMj5tYu3qW2lxnVEJE=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=vAU/VCOs84mc78xVts8e2qf+/ItftP1v5dNobJjo/nBvoCPmGO/gv1GF37Q864Pp/ 2kmzECJmxi2f3Ehsmn1Y8gm7URWEER2qVBK+XqnMEShyGYLtRYVz4zrZUTtxqCz5XV C6fFM+ltWZ/bIRaUYIWV0TRl9bLTCVurNNAxrdzI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6DFCAF801F7; Fri, 1 Oct 2021 13:50:42 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6F054F802C4; Fri, 1 Oct 2021 13:50:40 +0200 (CEST) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 347CEF80227 for ; Fri, 1 Oct 2021 13:50:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 347CEF80227 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WTBuQ0rP" Received: by mail-lf1-x133.google.com with SMTP id x27so37305579lfa.9 for ; Fri, 01 Oct 2021 04:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Tikr9EZMT945WPgYWh9Nfqx3BfJVYbeGQaW2V2Yhcjc=; b=WTBuQ0rPJV/Ok7LCI1PrJ5Kfqf/f8P4JU0bXCUh8b+0fVB+ECaS+PnN6ERStQR/Qgr o490bxUOqMG9zVsqcsc/uS0JK/q8anPUCMONRy0F26ul+BBL1nKAOd625zXLpttdoUDO /dK6/2+JWkofULHsShHZs0UfKsD4DW5IB2QkXkDv3xw9Or3qkd6Inu7jpaPug9zUyzqS LkvOOr4i00ugU+lwpwcaPqyAn8yJE5FU0cr4J+G67Z/5PEpTMh4MCJn5a6b0Wb6SP6Ga 2Di5bptMVEkg90mEgQWXg9nDavmQ62EhKEmzfGrdfg8xH8BsFl5L3O019Qn1IWQg+dJn uLdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Tikr9EZMT945WPgYWh9Nfqx3BfJVYbeGQaW2V2Yhcjc=; b=7l7hauGiKR2EDJLg1R/+HFtqko1R6DeknQ8B8TsLxE2d3NKmMoz1YtJtvfwzdCQM2P FY6MpGx9sVaFWlAe/baBOjPwlxjc3RGkCzsD9ll083X7xcSeOE37lWJL4xMBZsu64v5w Dj2pAnpq4CYPPzbR9OQ6cMNHEIZpjbPy1/X18t89MrcllzbpqFv/3/44vXphXgQy1aZ7 vIAb7CqZHyIWm2obXpYccBaN6Ez90MZEZdlcG/w4na7Bx0Jz362EaeexsjuiPedFYARc yGgRDmLz+zIswpSifPKOra71/EzccoDVUSDCqT6FMepHXFDWdY4riR9nPLqblIhJ6JpM 6WOg== X-Gm-Message-State: AOAM530Wq6GL6BZa9txd9XZeS57qzhaQP8XeKvNVrzQVh/Vwgad4W/9q i+8nK48Uc/qj8IQOfyziTc2bCHoKj80F2A== X-Google-Smtp-Source: ABdhPJxJDmWHcrZik6HLvUlDJZz6hv3jM85md+Uns+Jp1F0snEfO/mWYcaJEPiAfhnFmZ3RcGB8RCw== X-Received: by 2002:ac2:5c50:: with SMTP id s16mr5003776lfp.605.1633089035692; Fri, 01 Oct 2021 04:50:35 -0700 (PDT) Received: from localhost.localdomain (h-98-128-228-193.NA.cust.bahnhof.se. [98.128.228.193]) by smtp.gmail.com with ESMTPSA id j7sm346340lfh.23.2021.10.01.04.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 04:50:35 -0700 (PDT) From: Rikard Falkeborn To: Srinivas Kandagatla , Banajit Goswami Subject: [PATCH] ASoC: qcom: apq8096: Constify static snd_soc_ops Date: Fri, 1 Oct 2021 13:50:30 +0200 Message-Id: <20211001115030.10402-1-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Liam Girdwood , linux-kernel@vger.kernel.org, Rikard Falkeborn , Takashi Iwai , Mark Brown X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The struct iapq8096_ops is only assigned to the ops field in the snd_soc_dai_link struct which is a pointer to const struct snd_soc_ops. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- sound/soc/qcom/apq8096.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/apq8096.c b/sound/soc/qcom/apq8096.c index 1a69baefc5ce..c7b7d0864d1a 100644 --- a/sound/soc/qcom/apq8096.c +++ b/sound/soc/qcom/apq8096.c @@ -60,7 +60,7 @@ static int msm_snd_hw_params(struct snd_pcm_substream *substream, return ret; } -static struct snd_soc_ops apq8096_ops = { +static const struct snd_soc_ops apq8096_ops = { .hw_params = msm_snd_hw_params, };