Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3595097pxj; Tue, 15 Jun 2021 04:33:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/krOt2H3jeAIINLFed3VqP77U6WbvcBtI7U3v4tTwncMxeMZS/RB6hfh364Ff+vpvvThq X-Received: by 2002:a5d:9484:: with SMTP id v4mr18565895ioj.147.1623756833872; Tue, 15 Jun 2021 04:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623756833; cv=none; d=google.com; s=arc-20160816; b=pKGGMAlFbUOwkqypKTvmE2riY0SZN988iKa+l4VWsCYLVAEgsSftcR7poJ0AvfBF/f 0RuOKIL1Wz21aiOPCVImRRvm3CbXNURK8O27nY2DZxar4MDnDT9HdtRun3A0cRtXJ0Gu dkefpvya8T9LghRzRQHd0M1Q7C6t3kXU0xxGgK7SGV4yAlZ2HqRrM3YAQgIyGOBZoKws GWUPymxRAKaso1Y9BfL4biYSNdrOHbvYJCjOyceS8e9GhMWTOZcKNFMGBvi/Ur3r2Gg+ OzY9/oTPte7O9pOiPkYzBFqVL8UW0jJ3Rt/W/wthpIi7TxOtvxhjeJRst31GRnQdNtOj CPpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=EZw3umOTKEXxZ/hJ1WoJznLwYuHn3pTyX0iqvKNM9yk=; b=jocTUyH46dZKcL5glt9sZwIxKJdpeJdZu7SID9UKAwajtfxdo5Noyac8aEjMxfnYXE AXfqG/XeyT8KLKcGkEQSbBjxVw1BYACcW0nrwgS+s4bvT71QoIuL+mTdj3c9srqDgN57 AO6fR+wWKvPAMkobHvvWl9aHprKoRww2hpygCkuZlHJbZBa7zmcyPl6owmvK0td4dlZz uRE//vOuI83iybxo2HY/0jW9zBRzVb6Qrljsml3Uvd24i9vsXefcskw5Erv4U7HLnnaQ kJ+haaNA7Y2oaaOjTLiGyZRGJszHVRt6PEKb5bextZrTMz+vCXNpTDFKGcIQtFvDka/e MRIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si16603240ild.63.2021.06.15.04.33.41; Tue, 15 Jun 2021 04:33:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229947AbhFOLen (ORCPT + 99 others); Tue, 15 Jun 2021 07:34:43 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:4786 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbhFOLem (ORCPT ); Tue, 15 Jun 2021 07:34:42 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G45df6YCJzXg5V; Tue, 15 Jun 2021 19:27:34 +0800 (CST) Received: from dggpemm500019.china.huawei.com (7.185.36.180) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 19:32:34 +0800 Received: from ubuntu1804.huawei.com (10.67.174.98) by dggpemm500019.china.huawei.com (7.185.36.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 19:32:34 +0800 From: Pu Lehui To: , , , , , CC: , , , Subject: [PATCH -next] ASoC: codecs: wcd938x: constify static struct snd_soc_dai_ops Date: Tue, 15 Jun 2021 19:33:24 +0800 Message-ID: <20210615113324.238837-1-pulehui@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.98] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500019.china.huawei.com (7.185.36.180) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The snd_soc_dai_ops structures is only stored in the ops field of a snd_soc_dai_driver structure, so make the snd_soc_dai_ops structure const to allow the compiler to put it in read-only memory. Signed-off-by: Pu Lehui --- sound/soc/codecs/wcd938x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index 2cf6145b7219..8ec9357fd855 100644 --- a/sound/soc/codecs/wcd938x.c +++ b/sound/soc/codecs/wcd938x.c @@ -3425,7 +3425,7 @@ static int wcd938x_codec_set_sdw_stream(struct snd_soc_dai *dai, } -static struct snd_soc_dai_ops wcd938x_sdw_dai_ops = { +static const struct snd_soc_dai_ops wcd938x_sdw_dai_ops = { .hw_params = wcd938x_codec_hw_params, .hw_free = wcd938x_codec_free, .set_sdw_stream = wcd938x_codec_set_sdw_stream, -- 2.17.1