From patchwork Fri Sep 1 06:14:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9933539 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 56D9D6021C for ; Fri, 1 Sep 2017 06:15:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 486032853C for ; Fri, 1 Sep 2017 06:15:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D7552853F; Fri, 1 Sep 2017 06:15:53 +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=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no 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 6F1B92853C for ; Fri, 1 Sep 2017 06:15:52 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 5CB642675D8; Fri, 1 Sep 2017 08:15:46 +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 52C0A267631; Fri, 1 Sep 2017 08:15:45 +0200 (CEST) Received: from relmlie1.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa0.perex.cz (Postfix) with ESMTP id CBC8A26758B for ; Fri, 1 Sep 2017 08:14:06 +0200 (CEST) Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie1.idc.renesas.com with ESMTP; 01 Sep 2017 15:14:05 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 34B3D6B83F; Fri, 1 Sep 2017 15:14:04 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.41,456,1498489200"; d="scan'208";a="255515038" Received: from mail-pu1apc01lp0019.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.19]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 01 Sep 2017 15:14:03 +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=Fpip01Bi6HUhDeROetD5HqebGdLPLOLueUZqSj3r8G8=; b=Ro7l0xiyj1UfRBTP1TW13Vw+uPkkHj2jRE0Q+/KFUBti7S6BOnzPVm6DHdcquPpNoQcSTH4z1Oqcd0OMawon2Bq7vXShOrOnqjwh5syF1mvENONefy9R2cVmRymQ1nR1w7K2wBrsIw4Bhp4FT+mxh2Tnd3Rwjw+eTPprPB8CznQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.138) by PS1PR0601MB1882.apcprd06.prod.outlook.com (2603:1096:803:8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Fri, 1 Sep 2017 06:14:01 +0000 Message-ID: <87bmmvkl4v.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown In-Reply-To: <8760d3m03x.wl%kuninori.morimoto.gx@renesas.com> References: <873787ngjb.wl%kuninori.morimoto.gx@renesas.com> <8760d3m03x.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Fri, 1 Sep 2017 06:14:01 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: SG2PR06CA0111.apcprd06.prod.outlook.com (2603:1096:1:1d::13) To PS1PR0601MB1882.apcprd06.prod.outlook.com (2603:1096:803:8::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a0a6740a-f655-42e2-189a-08d4f100a408 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:PS1PR0601MB1882; X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1882; 3:PdeD+EKgQj4CVDSscn4cqjwU3VpI7T5bT5X/FMevBePb+4mDN9gFj2mFhHpjCNchx5U5SourPYbf9AIeHraYFTjfOOEC6H74nOxvKzB/I3r9ZmBfrSuHM0KaiIAI/+qEjjaWvaZDxneCCmTfzmxa77H0SZ+DzjYqW6U45Dk8F2IYWvtOKBks0bp9rFknA2XVQpqfL/g0v/smeFpoMeptm1y6fdZ3mb+0zemh1x5a/bDyzelSorA9tb23abbjgzBf; 25:QahJMYWHsK6L1o62DsIk94bVkOEkIxJ3eJVtHyYKob8LeoeKlibnaaHVuSSoveLNSERENd+T1uoLOdwnawg64ya5MNo2FVdXtnGnL3Evagjx2K0IYjQFZnOxp2Hz5qbFquYf1US6e2GUZ0XvUJt9fFjGimLJMEmlGJZSsyoEcGUAgQriPAWORqfodaJn1ZuzJzEPchbM01+IiV5guQjSxBpyLey0H7U34UHVE1vcIH50GF1kmxgtKzj7wukQrT1vbYU+bOyr+2eQuBcBsFf8mnjX8zBFTCn8h5sGjp1h3OXHZPdjcYIDSGMfxJks/JGdEGWxIen7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t+s+FxSKRD2pY103K8+40 X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:PS1PR0601MB1882; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:PS1PR0601MB1882; X-Forefront-PRVS: 0417A3FFD2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(7370300001)(4630300001)(979002)(6009001)(39860400002)(189002)(199003)(53936002)(8676002)(189998001)(36756003)(6116002)(3846002)(23726003)(69596002)(54906002)(68736007)(66066001)(54356999)(76176999)(50986999)(83506001)(6486002)(97736004)(50466002)(2906002)(86362001)(4001350100001)(81166006)(81156014)(105586002)(106356001)(53416004)(42186005)(101416001)(7736002)(5660300001)(305945005)(33646002)(47776003)(25786009)(110136004)(478600001)(4326008)(2950100002)(6916009)(7350300001)(142923001)(16060500001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:PS1PR0601MB1882; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; PS1PR0601MB1882; 23:/H1CQ//XOV5moIKmJfvrrlHwlZxSfI3jjQQy9RL?= =?us-ascii?Q?iCKPREAHhfcye4ZfeS7Wi2SX0aS4AUT/HDiDcH5JBY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=; 7:Y6eEoVKD2dmTgmY2oZliwiI7XAOZgQcj0clbOdH4r/qwRmrBphOALlk5wfyNNic0cjumahJLgKwxgGGet/EAahEOW+aKyrR6eYet7wE2ykHFcuSkbSsWjJKkSFdVtDvnJdTYgiquzT07X0/8ZGiPqCuOlefLYphjL+5X4Xs2otF2eExpO6ihdUI1+qfgDXG47LPth2FTwYuWqJKiksubqPmOtuImwhyNRLIeezXkoZg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1882; 20:RMLABZfRegc/NKhcGbbVbcS2IbHng9JzatNsd++7S4ZeEwKS488mu44v+esBuaBDxi3EOnxgmr4trmUuDnBN1ky0YDYgRWSYbS8wAd1/qI+SZWwEWrZnYgSv9+UrBvhRmlnA+rFoseL+ggo+YitoKMebehyJLEJjxuThQJLH0Pg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2017 06:14:01.1933 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0601MB1882 Cc: Linux-ALSA , Lars-Peter Subject: [alsa-devel] [PATCH --/--] ASoC: remove .get_regmap 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 To setup regmap, ALSA SoC has snd_soc_component_init_regmap() and .get_regmap. But these are duplicated feature. Now, no one is using .get_regmap, let's remove it. Signed-off-by: Kuninori Morimoto --- > Mark I will re-post this remove patch if all convertion was finished include/sound/soc.h | 3 --- sound/soc/soc-core.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index 55246a3..c9a6b93 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -954,9 +954,6 @@ struct snd_soc_codec_driver { int (*set_jack)(struct snd_soc_codec *codec, struct snd_soc_jack *jack, void *data); - /* codec IO */ - struct regmap *(*get_regmap)(struct device *); - /* codec bias level */ int (*set_bias_level)(struct snd_soc_codec *, enum snd_soc_bias_level level); diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 63c7f55..d745d50 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -3610,9 +3610,6 @@ int snd_soc_register_codec(struct device *dev, codec->dev = dev; codec->driver = codec_drv; - if (codec_drv->get_regmap) - codec->component.regmap = codec_drv->get_regmap(dev); - for (i = 0; i < num_dai; i++) { convert_endianness_formats(&dai_drv[i].playback); convert_endianness_formats(&dai_drv[i].capture);