ASoC: soc-pcm: rename .pmdown_time to .use_pmdown_time for Component
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 19 Jan 2018 05:21:19 +0000 (05:21 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 24 Jan 2018 16:44:22 +0000 (16:44 +0000)
commit fbb16563c6c2 ("ASoC: snd_soc_component_driver has pmdown_time")
added new .pmdown_time which is for inverted version of current
.ignore_pmdown_time
But it is confusable name. Let's rename it to .use_pmdown_time

Reported-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-pcm.c

index 1a7323238c495d7d51313f6ccd8780291ff3e9e5..812ae4faf559006157ec6d36259be60681b31cdc 100644 (file)
@@ -836,7 +836,7 @@ struct snd_soc_component_driver {
        /* bits */
        unsigned int idle_bias_on:1;
        unsigned int suspend_bias_off:1;
-       unsigned int pmdown_time:1; /* care pmdown_time at stop */
+       unsigned int use_pmdown_time:1; /* care pmdown_time at stop */
        unsigned int endianness:1;
        unsigned int non_legacy_dai_naming:1;
 };
index 8075856668c23b10e0f16eebb78cb59b8c7a233a..bce0741dab040e48d7d1931484c6959b0a30b928 100644 (file)
@@ -144,7 +144,7 @@ bool snd_soc_runtime_ignore_pmdown_time(struct snd_soc_pcm_runtime *rtd)
        for_each_rtdcom(rtd, rtdcom) {
                component = rtdcom->component;
 
-               ignore &= !component->driver->pmdown_time;
+               ignore &= !component->driver->use_pmdown_time;
        }
 
        /* this will be removed */