From patchwork Mon Aug 8 09:12:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9267221 X-Patchwork-Delegate: geert@linux-m68k.org 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 37A5C60754 for ; Mon, 8 Aug 2016 09:12:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28A6B26222 for ; Mon, 8 Aug 2016 09:12:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D89226E16; Mon, 8 Aug 2016 09:12:37 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4F9A26222 for ; Mon, 8 Aug 2016 09:12:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751280AbcHHJMg (ORCPT ); Mon, 8 Aug 2016 05:12:36 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:30073 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751979AbcHHJMf (ORCPT ); Mon, 8 Aug 2016 05:12:35 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 08 Aug 2016 18:12:33 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 13D414F2DD; Mon, 8 Aug 2016 18:12:34 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 134AA480A4; Mon, 8 Aug 2016 18:12:33 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id F3E3A48014; Mon, 8 Aug 2016 18:12:33 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id UAC10744; Mon, 8 Aug 2016 18:12:33 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="216936858" Received: from mail-hk2apc01lp0214.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.214]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 08 Aug 2016 18:12:33 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=f6GFeHHNPkWIUL7HCJgX+pJxFCK9ZxWukOCm/C4SKVg=; b=eseshireeZMHeaousQvrVmx082pFEpfv0MQ7jkBsxetT2LfWX/EQCyu3SUk4umwCbpe/7clDR1XLdpPFU5ZBDvGca2FYaaKOYkzyNzy9NIEduJYkb30kDHS239HCXkIDwqECozNjuSh66K8zEIl/LGVbM+2lJZ+WtnSH0WVSRbs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by KL1PR0601MB1446.apcprd06.prod.outlook.com (10.169.69.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Mon, 8 Aug 2016 09:12:30 +0000 Message-ID: <87popj4ont.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 080/159] ASoC: codec duplicated callback function goes to component on ads117x User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown CC: Linux-ALSA , Liam Girdwood , Simon , In-Reply-To: <87wpjr8xld.wl%kuninori.morimoto.gx@renesas.com> References: <87wpjr8xld.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Mon, 8 Aug 2016 09:12:30 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0007.jpnprd01.prod.outlook.com (10.161.74.145) To KL1PR0601MB1446.apcprd06.prod.outlook.com (10.169.69.24) X-MS-Office365-Filtering-Correlation-Id: 7810db30-a2a2-4cd6-358d-08d3bf6c2037 X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1446; 2:Z9uWa7DqnC7S0xEazl1a8jrpPY0LcRjR/SVlEKDwL3/pq4ZOYl9zQVh0PR0ckyIGeZQ7lz3qdrhXB+cJ32g54j3dv5oFcrWTYAnCzKwkvM6w9fK3EU4QwbDhjf04tpnmuvEx3fDtFJMn6dKaP/VcVUBCqjKUdJZmOrJvMirF4HEqxpiA4j0wZbAguDh4R0mc; 3:Kg6lr4BJWmGtUk3K5h1gRSL/uzFy1C06HC2+X9mEWea+PwuRokYYxs2fB7a5ZDlngVe2k+/EfO8cfrxGGXiTI//H1stpBdESyZfSp2xAVmJ10cfQ9VF4s8bLpDKx8sv4 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:KL1PR0601MB1446; X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1446; 25:9MC/1OcHJK/rIDPeLRetLmRhw8bgnjSP9v/M4RzsujMM7pAAsz3fQkFw2OEdN82F4jLCMqcBC5TBLrJ/4+eqsJhWuOFsDRftMFp7EtstmPSFOPN6/V33z3M0cKQSLf/DG1FMxsJggzq++FzBLs4jQtKgxboJFGdcNC1nwI3v47o3TG/hwcObtMbhzkDdtK7EmjQ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mqjSt1YsVneLlmRUaZSdV8jNDui75gco2520Tld5iN+IFNjLN75UsYru3TpgxyO+nQCytCLJrwjgQDMcowBHCQ2JItCj7x4aJDi8d+OCB8IueXJb2uwgHJGNqddMMImigUg6zqi3prlW10vsNn9StGMAng3nrKnayBt7DTsWgAg9Fk39ylC1U28gAFWvlT4Wurl0BB0omD1S198vP33W8EKBejlf3G4/VjDUor8t; 4:EGhcsQteHmoo2GZgezs7miRgSyKzY2oQzm3+Z0uo+DilyGSD/5pj4J2hDoNUuGBrCTGHJfha7Xj+ooQPbnkhMs7OEtuAPHyCmUEWqM2KLE03ZBfN8wPCRLU3N3K5p2TtR+sD7zVenZ+DXtUN+XZLujjvUmBbSQQ9Tn4zT8GodNci1Q1KHI6gkHDfCh1oA0/ReYPmyTpvNZm4S2AmEs0J3ypOKHPX3LVX03PWj1Zv2Lq7wTObe3FFsr3KW4ts0nIL8YljG7tW0NxxlhEFZJY9ZO9bR9t5I69oUYqTxM1lO4mevjBaujQwTTofHZPh+pbLkaFdbO3lgPG0odHVCXK0JTes74JPJQ6b2GxDrtWLg2vJMJVUhmJPia0V7t7tUsoAnO5IW0ANkDSOX0mskzUvPg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:KL1PR0601MB1446; BCL:0; PCL:0; RULEID:; SRVR:KL1PR0601MB1446; X-Forefront-PRVS: 00286C0CA6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(110136002)(76176999)(2950100001)(54356999)(83506001)(8676002)(81156014)(97736004)(4326007)(81166006)(4001350100001)(33646002)(229853001)(7846002)(2906002)(19580405001)(66066001)(68736007)(69596002)(47776003)(7736002)(50986999)(106356001)(92566002)(50466002)(19580395003)(77096005)(586003)(23726003)(189998001)(42186005)(305945005)(46406003)(101416001)(6116002)(105586002)(3846002)(53416004)(36756003)(86362001)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:KL1PR0601MB1446; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; KL1PR0601MB1446; 23:ZQVKQMwbFsGHr1svRrDLUQQKQ4Aoq+yOAxYrBMV?= =?us-ascii?Q?A6Heq6G7sgvBjtFwp5i32lRMD+Av55J8b84+FJ/bxciUVMLsH40sqsl6lvIk?= =?us-ascii?Q?VsRkwbo+esBopZKNmJG33UYywa1GAJgJfdI875vb81nNnNm2oj1ORe1dScT7?= =?us-ascii?Q?gpppwmZL/9PQZRY63sG13m5YNwUlIW6kea+1UyyoHNxms55wrrblrcZFtdqJ?= =?us-ascii?Q?BrfrS5Gx7aWJwl2aClYiWL/nHlSHXbgC7GXBbOsM8yIIq9eOZ/MwPJUkpN8f?= =?us-ascii?Q?bUuURHTGFSITV3ag0zj38adTl09rztrTeikk57MGyarWeH7u9dhbAJcU0q1t?= =?us-ascii?Q?UZ/bLUKx2oSOqX/0lNeQXFs9mqMJZeMD8TnzqdyS2B4SPLMTKULN+SxxqwCy?= =?us-ascii?Q?LFY+SinVeFbSemmc1thUn4HO3pX4Tvr7n7EzMwD2k0+BccCX1kU/16T7Idcl?= =?us-ascii?Q?wmnGEcaWMFvnHCTYg9Z8nuichwQ0x2GENRuazPPcUtiwkm3GToRDFs32ACBQ?= =?us-ascii?Q?19gIErXqDxm0KxHmgf99fOgx4+/8HX1et/uRGUsOcs07PahlTwNYojH3Cf4d?= =?us-ascii?Q?sm1dJ9Qq5oiRA8CcYUFwfaXmFl6SSQTOU9MKVMpVkOGC5+TusEFsrrPoYbP2?= =?us-ascii?Q?T1mMBC8uBoIdo6WKP9y+kKulgjDSWdvJZVF6w3MMfZBzO3fusBap0DL+neOU?= =?us-ascii?Q?gjoUs3RqZKbcFNf5BntPgK9zDF32I1O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PctBNykPW5JqZw==; 24:zE3MBSp0mvXrahPXLEK9lTj6byAs/DnJpOsPC8I02vGgj1FyTWJVC0hXkjH6+DYKzubSk37wTZexyMVFoS7q1WA/qdB9atOKXKO8HSSQnuA=; 7:zPEmGpMvnXACxSp9EarFVomSZ9urfVxBYg2mtfC5ESCh7BHq1zRuKphT4Jj93TDuHlcVC7kmips9ebkWMfmKdGPkmOr2RglG91XicTRls+25PkyjmwvEux7nv+U8WKTIkNtngFOI1hCfsSUKvEQslXYV5S7kI6yPXbrYE4pS8IIKlSK+DHhjLxqMMM5hsWct9V5O6SPqvgOyAbzXlmSVMqzPY8TNkt01X6OLTmGprRg2KEUHeGD5b9kGlgOamxL7 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1446; 20:1uZoIjvru4jrNcYO1nzBGuGwHvJsCif2xXfSp7hm6RpQepyWXGxT0PdW40YI6Nm57Q0amma6yv+wO8ea9qaWEp4few4EzNohUa9xqMNJj8tf2/3thJUCZ7M7IoX0732GRxIjnvASeyjgGJvEcumJnDfssth8Pr40/Qr0lh4nI0U= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2016 09:12:30.0448 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB1446 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto codec driver and component driver has duplicated callback functions, and codec side functions are just copied to component side when register timing. This was quick-hack, but no longer needed. This patch moves these functions from codec driver to component driver. Signed-off-by: Kuninori Morimoto --- sound/soc/codecs/ads117x.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/ads117x.c b/sound/soc/codecs/ads117x.c index c5be1bd..90c756d 100644 --- a/sound/soc/codecs/ads117x.c +++ b/sound/soc/codecs/ads117x.c @@ -59,10 +59,12 @@ static struct snd_soc_dai_driver ads117x_dai = { }; static struct snd_soc_codec_driver soc_codec_dev_ads117x = { - .dapm_widgets = ads117x_dapm_widgets, - .num_dapm_widgets = ARRAY_SIZE(ads117x_dapm_widgets), - .dapm_routes = ads117x_dapm_routes, - .num_dapm_routes = ARRAY_SIZE(ads117x_dapm_routes), + .component_driver = { + .dapm_widgets = ads117x_dapm_widgets, + .num_dapm_widgets = ARRAY_SIZE(ads117x_dapm_widgets), + .dapm_routes = ads117x_dapm_routes, + .num_dapm_routes = ARRAY_SIZE(ads117x_dapm_routes), + }, }; static int ads117x_probe(struct platform_device *pdev)