From patchwork Thu Apr 26 11:15:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mukunda,Vijendar" X-Patchwork-Id: 10365639 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 29C43601D3 for ; Thu, 26 Apr 2018 11:27:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 194FC2906A for ; Thu, 26 Apr 2018 11:27:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DA9629082; Thu, 26 Apr 2018 11:27: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 453D32908B for ; Thu, 26 Apr 2018 11:27:22 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 52AA3267817; Thu, 26 Apr 2018 13:18:10 +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 7163526782B; Thu, 26 Apr 2018 13:18:07 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0079.outbound.protection.outlook.com [104.47.36.79]) by alsa0.perex.cz (Postfix) with ESMTP id 3D52E26781E for ; Thu, 26 Apr 2018 13:18:04 +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=UvwPuHW/MRd+Ey/2BTNTrCjBktJD8in57c5mry1tNPU=; b=Ct5BvIzXywkSdIoBeJzRv36sT2WcAxeWi8LnaIg1OjRSV9slreplKz5YHQCdT0b9wt3Nki0cUOqX/bcGvqvapOWnL/8KwjLCFrTx9r1RljxQIdv04RGYsYuhaPjX0v9UShDuGLLYwn154B8mHzuopJaSzubyzDEOr2Nx7vksJDE= Received: from BN6PR12CA0029.namprd12.prod.outlook.com (2603:10b6:405:70::15) by DM3PR12MB0764.namprd12.prod.outlook.com (2a01:111:e400:5984::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Thu, 26 Apr 2018 11:18:03 +0000 Received: from CO1NAM03FT040.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::204) by BN6PR12CA0029.outlook.office365.com (2603:10b6:405:70::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.715.18 via Frontend Transport; Thu, 26 Apr 2018 11:18:02 +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 SATLEXCHOV01.amd.com (165.204.84.17) by CO1NAM03FT040.mail.protection.outlook.com (10.152.81.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.696.11 via Frontend Transport; Thu, 26 Apr 2018 11:18:02 +0000 Received: from LinuxHost.amd.com (10.34.1.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server id 14.3.382.0; Thu, 26 Apr 2018 06:18:01 -0500 From: Vijendar Mukunda To: Date: Thu, 26 Apr 2018 16:45:56 +0530 Message-ID: <1524741374-13523-10-git-send-email-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524741374-13523-1-git-send-email-Vijendar.Mukunda@amd.com> References: <1524741374-13523-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)(39380400002)(396003)(39860400002)(346002)(376002)(2980300002)(428003)(199004)(189003)(39060400002)(109986005)(336012)(4326008)(105586002)(106466001)(86362001)(53416004)(81166006)(104016004)(81156014)(8936002)(8676002)(16586007)(53936002)(426003)(26005)(316002)(11346002)(77096007)(186003)(126002)(50226002)(476003)(2906002)(446003)(2616005)(486006)(1671002)(6666003)(50466002)(68736007)(356003)(478600001)(5660300001)(72206003)(97736004)(54906003)(51416003)(47776003)(36756003)(7696005)(48376002)(76176011)(305945005)(266003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR12MB0764; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT040; 1:mWR3P2NZg2PHDDMLbBBymzSYHSlTLLPu/oRhEMo7OKGC9u87/KBcIqD7QRwqEgI6PjO5nGsRUVGtZ0VQdTZhSN3g9EsnisipXtRCZSYEWXF+comZmGyHkrTrYFUXB+kB X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:DM3PR12MB0764; X-Microsoft-Exchange-Diagnostics: 1; DM3PR12MB0764; 3:iXCujYAIbycS+WxuHpGzkPnSIwNc6zuYhq+Sz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Y1/r8XUyq9peBYCwiJa5xkVOk267BC9CyJF5Jtys0kao5hOqMvo++RbgrTbatb54mCCz6kNbixNeCIIDXUxbcZv6PcUo6XC7BTE3ROCIehFhQe4XVkPdSOb3pByUsFCwU/WZ104GNjfxXP/DEpnuj5HlY7a4rdGxBMhFUNVRPCs1S5cCttaCttqAok77dEDG9GcPEBMBP3cF+syF8ISfqo/hZybsCYSZ2cZyxcg6seGwCw+NiXLkLPNTVQLzwCwWYVGBG4fEILvgl0BIqOwZeXfoov8TCjl7VG+eb3wC4HB93P9hQKNqxExb5tmITOMbhwYS0OHg3sj86nYRViiT3HBghNqFwjGGX8Z2Ltp16sJf1bqKf+Dfr7LR14zyILtF3nujI3dTjh+GhsWxklha72vk5IDdgNPzpksGj/OIllHWpTi9b3GMGhBV2ZFWMtYrrFCxdxXy97U X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93003095)(10201501046)(3231232)(944501410)(52105095)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DM3PR12MB0764; BCL:0; PCL:0; RULEID:; SRVR:DM3PR12MB0764; X-Microsoft-Exchange-Diagnostics: 1; DM3PR12MB0764; 4:zh6ibugbyA9Do5TE+yQL0Ay7Ekn0EErD7MuCivAdDaRbJ7r45lc13QbE97UH702jcphu1PzYpeNDiKx9PhKmvbhQyVPv+LHtxi005qnKbaWw/ZwMMRIIIJgwhLGwfh1+blz4KLimLnxdF6YIzTkkpzzwVKweMKCQoxFyH3V//PoycPVpAqqZ0YP4RQlqhafOyr4ZI+vZe73fJm79yEd6dLgWiGl3WnllIbh+NRSAE5cHdHpQ+GCSjdwf3lYVthFBIJDvbjc2GMr8pIDxqbDOogSjSsorzA16wM0zu5wIK5nwnqHztyTG6PcHsArgGmfs X-Forefront-PRVS: 0654257CF5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM3PR12MB0764; 23:Z/DOaGp8k8NKSGtZnbstegL/+MehyqF4YaOi+EzfT?= =?us-ascii?Q?21lMfleb9ieWVpjuRTTA3Ay9OGtLeYVi44zXN01V1I8EzAZDrVS0OLlmPNiB?= =?us-ascii?Q?pDB1/SztDIxsAIY6rT93Tdt7YOzsyCRp/7Tc0QwWgYQP2YweB6Btk5FbjwjI?= =?us-ascii?Q?bxAl0f1vFTgGe2TEKiZkURBxqs+n2daT5dEVZse+rQEskHvV3NsxgMYvDzjP?= =?us-ascii?Q?9HFvtEM/QH7n6TxfghErynIpEU/CUnn0toE96t0M9+mO+YQPPcOjsDm2U4+t?= =?us-ascii?Q?hsc8VWO2BLlC9hYZ5JUaAHPLD7oBicBLFUx45r8ZYVjHWWS1g7uSW1gV+k4/?= =?us-ascii?Q?/0S/AAI894ixH+Cxv1wJZTcwWUYiaVB6vdhkFfyw1Jp0oih7vThi9BznA6LO?= =?us-ascii?Q?j8aYikq2kYj2ND6PAhl57jmj3WE8KN9Cyk4BRB+HL3zIt7E7GxQxYcywCO4/?= =?us-ascii?Q?ovJWMI7SkIv1E+W11jMm4OpzlI6h8OC3Qe56txca6APN9uITn6Vp9n8gWQ9d?= =?us-ascii?Q?H96L2zsRSGVj+XE5hOLLtuVemITgsRS/UGJ+5imoJAkVH8z/jsslVqfrF7bS?= =?us-ascii?Q?yfsWbNS0rjVhliR+Zn86fMZa1koU+3ykQWS3hk9fT8vUDYpBinaDPPALjHr0?= =?us-ascii?Q?UOKc+dr3i3xm1yUwNbxue8Z/If5ss1SZHZPGhxq9K9nOalDXw4ms2e7mz4wQ?= =?us-ascii?Q?tJl4/aU4K6g98mtvqkWZRw/UxEdFgYysM1LOsc72XKgNfN01+quDW2Ouwbcn?= =?us-ascii?Q?3sAbHRNPFbo4WwjpjOCRvT1y7f+2v5o2JFoT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OkFBlKeY82PXtaIrHn/ X-MS-Office365-Filtering-Correlation-Id: d071a7f9-15e4-4926-4cf6-08d5ab67600a X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2018 11:18:02.1093 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d071a7f9-15e4-4926-4cf6-08d5ab67600a 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=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR12MB0764 Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Kuninori Morimoto , Liam Girdwood , open list , Takashi Iwai , Mark Brown , Wei Yongjun , Vijendar Mukunda , Alex Deucher , Akshu Agrawal Subject: [alsa-devel] [PATCH 10/11] 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, };