From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kuninori Morimoto Subject: [PATCH --/--] ASoC: remove .get_regmap Date: Fri, 1 Sep 2017 06:14:01 +0000 Message-ID: <87bmmvkl4v.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") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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) In-Reply-To: <8760d3m03x.wl%kuninori.morimoto.gx@renesas.com> 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 To: Mark Brown Cc: Linux-ALSA , Lars-Peter List-Id: alsa-devel@alsa-project.org 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); -- 1.9.1