]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ASoC: remove component->id
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 4 Jun 2025 02:07:22 +0000 (02:07 +0000)
committerMark Brown <broonie@kernel.org>
Sun, 8 Jun 2025 22:31:03 +0000 (23:31 +0100)
No one is using component->id.
One idea is we can re-use it as serial number for component.
But we have no usage, so far. Let's just remove it for now.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/877c1suuna.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-component.h
sound/soc/soc-core.c

index 61534ac0edd1d82e08457bdcb70bf065309fbde7..2caa807c6249c4d7c7fb16b95c6deab665d54159 100644 (file)
@@ -206,7 +206,6 @@ struct snd_soc_component_driver {
 
 struct snd_soc_component {
        const char *name;
-       int id;
        const char *name_prefix;
        struct device *dev;
        struct snd_soc_card *card;
index ecea2dddbe9a9bbb61d31d61d904ba6694685776..cfafdabcdc888f3b3941d6bb379d80131f34c5af 100644 (file)
@@ -2835,7 +2835,7 @@ int snd_soc_component_initialize(struct snd_soc_component *component,
        mutex_init(&component->io_mutex);
 
        if (!component->name) {
-               component->name = fmt_single_name(dev, &component->id);
+               component->name = fmt_single_name(dev, NULL);
                if (!component->name) {
                        dev_err(dev, "ASoC: Failed to allocate name\n");
                        return -ENOMEM;