From patchwork Tue May 8 04:47:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mukunda,Vijendar" X-Patchwork-Id: 10385377 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BE45C60159 for ; Tue, 8 May 2018 04:48:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEEB928919 for ; Tue, 8 May 2018 04:48:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A30662891C; Tue, 8 May 2018 04:48:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A99F28919 for ; Tue, 8 May 2018 04:48:23 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 650432676BF; Tue, 8 May 2018 06:48:22 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8C6D02676C4; Tue, 8 May 2018 06:48:19 +0200 (CEST) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0081.outbound.protection.outlook.com [104.47.34.81]) by alsa0.perex.cz (Postfix) with ESMTP id 61848267646 for ; Tue, 8 May 2018 06:48:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=LoTc07lBBddnPXQVxeYScg9eKjg16A/c+WeMTVnzDCc=; b=1MaDTniM9XXsk7qY7BpTsuTCtxAG2LQg50FDYtnL2VeVH63ZRnj/i+h1UCBhgXRtZda4jLUciTsWq2PMyxMnv0wRijCB2vKL9s3wqGhoC4ZtjyK3Ua5EqntAByLwx4/eHJddseGi7XYuDPl8Ppjg0lQ9inbiSOtdYSKTxw7a/y4= Received: from DM3PR12CA0056.namprd12.prod.outlook.com (2603:10b6:0:56::24) by SN1PR12MB0336.namprd12.prod.outlook.com (2a01:111:e400:5146::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Tue, 8 May 2018 04:48:14 +0000 Received: from DM3NAM03FT044.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::209) by DM3PR12CA0056.outlook.office365.com (2603:10b6:0:56::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.735.16 via Frontend Transport; Tue, 8 May 2018 04:48:13 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; huawei.com; dkim=none (message not signed) header.d=none; huawei.com; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT044.mail.protection.outlook.com (10.152.82.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.735.16 via Frontend Transport; Tue, 8 May 2018 04:48:13 +0000 Received: from LinuxHost.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.382.0; Mon, 7 May 2018 23:48:11 -0500 From: Vijendar Mukunda To: Date: Tue, 8 May 2018 10:17:52 +0530 Message-ID: <1525754888-14124-9-git-send-email-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525754888-14124-1-git-send-email-Vijendar.Mukunda@amd.com> References: <1525754888-14124-1-git-send-email-Vijendar.Mukunda@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(376002)(346002)(39860400002)(39380400002)(2980300002)(428003)(199004)(189003)(51416003)(7696005)(76176011)(77096007)(97736004)(186003)(26005)(106466001)(126002)(68736007)(47776003)(53416004)(2616005)(446003)(5660300001)(11346002)(476003)(426003)(316002)(36756003)(16586007)(486006)(105586002)(54906003)(86362001)(4326008)(109986005)(1671002)(72206003)(53936002)(50466002)(2906002)(39060400002)(104016004)(305945005)(336012)(48376002)(356003)(478600001)(50226002)(6666003)(8936002)(8676002)(81166006)(81156014)(266003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0336; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT044; 1:cXEpQzBBvbSLgN+8DrSudQpuMqAcgJiloXepHXM+Ed/qMS27Fi/4xAIuDudGy1m371/+ssgtWNO9yRgqCjzQJYodqtn33bi9z23xrZvjnkOuAm9DNOJoaop3DcGTv2HQ X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060); SRVR:SN1PR12MB0336; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0336; 3:NPq6GRZ4wJXzLI/Der0dCDj2eCTGurzOzwcVFFgpXqPO4+oQ9roqwhwoE2fKQ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g6sQq37xPa9CI5x2m6u/RAEhlfGg2v4zzdf+7saxqB9lcNsDs9o9wU186LqQLwg0CSi1BomIQDBgY2fMfCZx5JKjUpP72BuHwo5jyUYQ5E3OSkaA8zWyoh2vLTdVS7PO19dfZZ3yd/LJUAWPDFduW5m8G2yZDWES0J0zX4osGjHgGvsmJNDRANj2q/8+RBZy8xOLLuVuCKmeTvdLATCJsVhYhgquXXQvxRbo4i3RkxI7G/wQqh7WjhuxkAUmcdlUyXkRNOrwEKoxcQO7R+x5BMCkknqQMzqYTas5by+25en5wkunrP/FGhYKtF3VuSN/Hf8E6bnC78m1A9vQSTCAupNhm9FQf6ziArGfkA+LEPx9AjQ0SCHHyrULjGqaESFJpPA X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231254)(944501410)(52105095)(93006095)(93003095)(3002001)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:SN1PR12MB0336; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB0336; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0336; 4:9DDmh/YZw7rrILMWzITWlJCA0n7U8lrKluAVgSYtgkPEpBjeGxAkZFyxzcWOL07F4YdcqUi/Sp3ib2AaVl8f90JWUAjtzSQwwz50j+hy+myuj1sYWobD8Rp8CXyvNHRpTfrXRRJWaEH7XCSDlCgkerwFfzbPCtMdx6UWlcVFUkVK1JpKuR8+3jgafpt7oQddbHEz6lWA/p8KRJVSQxiNiWB0q6v0IpAcszmNjIzJv8IGMI+aM8Jt13R4HsWp84c5CpwHReN6YJVk9z3aWM1+jKlGRVdfJ3ntoh9IUGVRYFGRpxQEGOhjVqMbyIoofhcD X-Forefront-PRVS: 0666E15D35 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0336; 23:p6tSoWJVVScDJQykdIGHADWdO8KB9RTFaJwfFY/mq?= =?us-ascii?Q?PNVx9Ewg+NZbfCXkpuSA1bK9g7Z5aLG9f6uZ/6Y30yjbzB6tzlGxyVHQSKbi?= =?us-ascii?Q?UsHdQ46JuvWjZVYNgxwyIPYVjkTpeSDVwYh/85jgT10NIGTsGcGHwIiIxcaG?= =?us-ascii?Q?0DoC+11LCLXU+h8I3EjuMNufNwktxgRfZVVZOKWsbhWqLPWqWdVyfgX7KoLw?= =?us-ascii?Q?+zNllELM+axrgy5835DJqU68XHHcvmaolWgnWghzeYDpFmlNjAiX5uO0S0YZ?= =?us-ascii?Q?fusk/jUaQeMcDGVa4dLQoLvpUg0tTHlppvErwRF1cbrZun3zY+KKwENa7GQU?= =?us-ascii?Q?ePCaBHx8rRk+qHsQAfEdqha1mLvk54IhJxhjjDrs5aBxE48BOl9Hip4/STco?= =?us-ascii?Q?A8hCc+47n0V7nbcZbq5dUlsg/ZmHv0awZVi7RmQkUEQJmaAIP3Zi5XU9N3S2?= =?us-ascii?Q?IU5Fkddpi0QUa9N8BD/NzQwy8RKLS8DJ2d+GgqXVB8WgmRmRyhTAjX3YWpev?= =?us-ascii?Q?eLFiWJJ5gIReVcp2SN2THAX0VqMW9yzhLmYrPlFl9talo5GJMgvWtbcZCwLU?= =?us-ascii?Q?HHlpLcyL2VBsh7600L2RZ6MwXUsemaI2nioK57qTZH75tr4yda0uweYTnEpC?= =?us-ascii?Q?QEIUlGUoQALWPVUe+JNxbaIbZ9vxeTbcwdMz7+2/z6f99OK5T73tRaZqm17F?= =?us-ascii?Q?+zhC/OQz8bqFHV9kxInbLmmJR5YCOK3Msw+TAQyozNLMkeh1NlXSvksmPUlB?= =?us-ascii?Q?jdFDjEjszdEIDlNILVLOMrLfMkGpa0VuzQ8LXHzL5sSrEGGKNblTKtqzpcFP?= =?us-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-MS-Office365-Filtering-Correlation-Id: 15ab0376-d032-4306-25bb-08d5b49ee846 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2018 04:48:13.2224 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 15ab0376-d032-4306-25bb-08d5b49ee846 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0336 Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Kuninori Morimoto , Liam Girdwood , open list , Takashi Iwai , Daniel Kurtz , Mark Brown , Wei Yongjun , Vijendar Mukunda , Alex Deucher , Akshu Agrawal Subject: [alsa-devel] [PATCH 09/10] ASoC: AMD: Add const to snd_soc_ops instances X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Akshu Agrawal Marking snd_soc_ops instances const Signed-off-by: Akshu Agrawal Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- sound/soc/amd/acp-da7219-max98357a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index fa5ad5b..133139d 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -171,17 +171,17 @@ static void cz_dmic_shutdown(struct snd_pcm_substream *substream) da7219_clk_disable(); } -static struct snd_soc_ops cz_da7219_cap_ops = { +static const struct snd_soc_ops cz_da7219_cap_ops = { .startup = cz_da7219_startup, .shutdown = cz_da7219_shutdown, }; -static struct snd_soc_ops cz_max_play_ops = { +static const struct snd_soc_ops cz_max_play_ops = { .startup = cz_max_startup, .shutdown = cz_max_shutdown, }; -static struct snd_soc_ops cz_dmic_cap_ops = { +static const struct snd_soc_ops cz_dmic_cap_ops = { .startup = cz_dmic_startup, .shutdown = cz_dmic_shutdown, };