Message ID | 87in91f7qy.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 2250e76d78e82b1da0f6f571f7211dfa78cbd469 |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> 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 970BC604D4 for <patchwork-alsa-devel@patchwork.kernel.org>; Mon, 9 Apr 2018 02:15:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8915828821 for <patchwork-alsa-devel@patchwork.kernel.org>; Mon, 9 Apr 2018 02:15:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DAD12886D; Mon, 9 Apr 2018 02:15:36 +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 70DD428821 for <patchwork-alsa-devel@patchwork.kernel.org>; Mon, 9 Apr 2018 02:15:35 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 476C62673E5; Mon, 9 Apr 2018 04:15:29 +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 452CB2673E5; Mon, 9 Apr 2018 04:15:27 +0200 (CEST) Received: from relmlie3.idc.renesas.com (relmlor4.renesas.com [210.160.252.174]) by alsa0.perex.cz (Postfix) with ESMTP id CACB82673F6 for <alsa-devel@alsa-project.org>; Mon, 9 Apr 2018 04:15:21 +0200 (CEST) Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie3.idc.renesas.com with ESMTP; 09 Apr 2018 11:15:20 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 428E362236; Mon, 9 Apr 2018 11:15:20 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.48,426,1517842800"; d="scan'208";a="276198827" Received: from mail-os2jpn01lp0146.outbound.protection.outlook.com (HELO JPN01-OS2-obe.outbound.protection.outlook.com) ([23.103.139.146]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 09 Apr 2018 11:15:20 +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=ifoKdFwo/qSWrxHknsapOoZ9zHFD1OM3nw/SVkmMrXI=; b=pDSB5wQYtN/u5ckZ1Uthwbwh/znq4OQ6IzUKCzH1KIG1Z7R/GuxWes1/orK+C2fMYAa4/of/msTEqrW2l7P/o9+sg6tckUxYJDr/D9j66VErWy9Et0JeRtYxhC/6awt7CUgar/s7gU1vT+Qe/aK9Y67GiTCKgWvmMrgD89yUPmo= 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 TYAPR01MB2078.jpnprd01.prod.outlook.com (2603:1096:404:8::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Mon, 9 Apr 2018 02:15:17 +0000 Message-ID: <87in91f7qy.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") To: Mark Brown <broonie@kernel.org> In-Reply-To: <87muydf7t2.wl%kuninori.morimoto.gx@renesas.com> References: <87muydf7t2.wl%kuninori.morimoto.gx@renesas.com> Date: Mon, 9 Apr 2018 02:15:17 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: SG2PR0401CA0003.apcprd04.prod.outlook.com (2603:1096:3:1::13) To TYAPR01MB2078.jpnprd01.prod.outlook.com (2603:1096:404:8::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0b31e312-68b6-4da4-8cb2-08d59dbfbd72 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(48565401081)(2017052603328)(7153060)(7193020); SRVR:TYAPR01MB2078; X-Microsoft-Exchange-Diagnostics: 1; TYAPR01MB2078; 3:r89btFwrFibhlHwCdbWIUGjkEiOjEkybe8us4c2FeOm0vO95uFFuJJ20N0uvtjsIvio3yLGVXeapGtwa69snpUrHNkZYo2pLraQH7ANfm5i1HUAMlg8AQ+z6CTWCcyZ5ian1Cc8SAlhxRJ3oFYBoTerR7wKMfztuMaRs1aGVT1Deh409ejl01ZdtsMDr7C7H0HevFKLxf2ClGvMiDxr6YDZFN8VSt97sWWdUIJa3KVrLzESBW9s7q7o7hR1GsqhH; 25:g7J2SR5mVscNJqOLKg7Zo3KHXAjITdPZ4A8cFc3APou/gROUqTsFCY1KRFb7sZmF6eoMaC3KDuwuSwXSpCMCHejV+0yj/Lfxm2slHsBNTdHcO+Wqbv5cdKocPRjoRltf4CFA8oKTNK2UZrJPj/MxnsKwhWEuy1A2khigXwBI7vl4Rgwx7g6CoXz9AqewWIoH1skES9UiGai9gDU/R4wFwx7v8IYiHFkpSklCZoMC8Ark4KUl0E/PP7APBRUPsF21S5lQcMC0xl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2X3aZxzqeTOq2TSRh+w1qe+l6WApluQrG8BAU0UZx7Wk8/7J4PyIzF38w8IxW9HttEvQzLPddc0XnE9HIN1QWCExaU64vhpH5avFJg== X-Microsoft-Antispam-PRVS: <TYAPR01MB20789D6E7B22D07D886B86F0D4BF0@TYAPR01MB2078.jpnprd01.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231221)(944501327)(52105095)(3002001)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:TYAPR01MB2078; BCL:0; PCL:0; RULEID:; SRVR:TYAPR01MB2078; X-Forefront-PRVS: 0637FCE711 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39380400002)(366004)(396003)(376002)(346002)(39860400002)(189003)(199004)(81156014)(8676002)(81166006)(97736004)(386003)(52116002)(476003)(26005)(478600001)(446003)(2616005)(53936002)(956004)(11346002)(486006)(36756003)(25786009)(6486002)(186003)(16526019)(8936002)(5660300001)(69596002)(53416004)(50466002)(23726003)(86362001)(3846002)(6116002)(47776003)(66066001)(76176011)(6916009)(4326008)(105586002)(106356001)(305945005)(2906002)(68736007)(16586007)(316002)(7696005)(58126008)(7736002)(142923001)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:TYAPR01MB2078; H:morimoto-PC.renesas.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; TYAPR01MB2078; 23:ATLLy6EiZUwyvpA5DLmmvisPLz9yzoinFx+dBbQxM?= =?us-ascii?Q?f9mOH1xmX8bPF69FZrkyuGiBJv0qMp7QK8YFuqjcK5/+w6dmHASU3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sK0PhzXZaUxC/MZyahSH5mu2h2GoNrG8JBfa7NPjpDnbLoJEJ1o9bnreZ2WtkGLC8c9ccJtcUWSFRiV3H6NZnFtzjZxBc6MUb4O5JwaGD6HXqqXinmZE7++mM=; 24:yW+DbLVK5Q97Y+GMseV0aT0rB1ks2jA4H+4j/ZYU0DWkL9aFcjfGeXy4ZUgLDmRjaQauk91lUtfZWGz3kU8TYCLcb+nMGcG2Q7gujsYOn3Q= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; TYAPR01MB2078; 7:qACSo/lBmTFAM1oE/HRmyle9OWE7RzWSuFItFLgZDi7l4fvZ21iwJUN18KlChKGQNZA1Dc46cYf8+Xt/3UA2yOZbcpbD+sX5rOW19mosJZicihrfUwwP5SSOvZFd0rgiIUQa+RH/zKRJajXhB2P43fGvpmthKCX+dGs/Cev5YbV6yzUUygT6ysiadnNT8YTwY5VlWwVMFGGAwvMaRF2JwhPb9wtaKJzynQJjWu4C5TltARtoD85pqym5PyaJX8sP; 20:SSovISJ3yGtcRETMh8fI4qTSBpYydX15zowp0aiBCDkLDLyQddhm3dFU1udtVNzMRDN/YnbnbOgcA+twT/j8NdGSw5vEM9lG1kmr/SyrnRw5OW4DBhrA7rO55+nXeP3qkMjr340YM+OIda1WLY5mCu23dVjXl6ggxZ8iu/vY+us= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2018 02:15:17.7539 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0b31e312-68b6-4da4-8cb2-08d59dbfbd72 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB2078 Cc: Linux-ALSA <alsa-devel@alsa-project.org> Subject: [alsa-devel] [PATCH 3/5][RFC] 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" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/sound/soc.h b/include/sound/soc.h index 8e50a39..9cb8ca2 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -964,8 +964,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 *); unsigned int (*read)(struct snd_soc_codec *, unsigned int); int (*write)(struct snd_soc_codec *, unsigned int, unsigned int); diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 5f6e009..2f5958f 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -3601,9 +3601,6 @@ int snd_soc_register_codec(struct device *dev, codec->component.debugfs_prefix = "codec"; #endif - 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);
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 <kuninori.morimoto.gx@renesas.com> --- include/sound/soc.h | 2 -- sound/soc/soc-core.c | 3 --- 2 files changed, 5 deletions(-)