[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87v8ghgtyu.wl-kuninori.morimoto.gx@renesas.com>
Date: Thu, 25 May 2023 00:01:14 +0000
From: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
To: Herve Codina <herve.codina@...tlin.com>
Cc: Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, alsa-devel@...a-project.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-iio@...r.kernel.org,
Christophe Leroy <christophe.leroy@...roup.eu>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>
Subject: Re: [PATCH v2 9/9] ASoC: simple-card: Handle additional devices
Hi Herve
Thank you for your reply.
> So, IMHO, calling simple_populate_aux() from __simple_for_each_link() is
> not correct as it has nothing to do with DAI links and must be call once
> per Card.
My biggest concern is that this code is calling same code multiple times.
It is easy to forget such thing when updating in this kind of code.
We don't forget / take mistake if these are merged.
But we have such code everywhere ;) this is just my concern, not a big deal.
static int __simple_for_each_link (...)
{
...
=> add_devs = of_get_child_by_name(top, PREFIX "additional-devs");
...
}
static int simple_populate_aux(...)
{
...
=> node = of_get_child_by_name(dev->of_node, PREFIX "additional-devs");
...
}
Thank you for your help !!
Best regards
---
Kuninori Morimoto
Powered by blists - more mailing lists