[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e2dc9857-d3ad-4060-8363-f8ea0cc37919@web.de>
Date: Sun, 19 May 2024 09:33:09 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Alvin Šipraga <alsi@...g-olufsen.dk>,
devicetree@...r.kernel.org, linux-sound@...r.kernel.org,
linux-i2c@...r.kernel.org, linux-gpio@...r.kernel.org,
linux-clk@...r.kernel.org, kernel-janitors@...r.kernel.org
Cc: LKML <linux-kernel@...r.kernel.org>, Alvin Šipraga
<alvin@...s.dk>, Emil Svendsen <emas@...g-olufsen.dk>,
Andi Shyti <andi.shyti@...nel.org>, Bartosz Golaszewski <brgl@...ev.pl>,
Conor Dooley <conor+dt@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jaroslav Kysela <perex@...ex.cz>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>, Linus Walleij
<linus.walleij@...aro.org>, Mark Brown <broonie@...nel.org>,
Michael Turquette <mturquette@...libre.com>,
"Rafael J. Wysocki" <rafael@...nel.org>, Rob Herring <robh@...nel.org>,
Saravana Kannan <saravanak@...gle.com>, Stephen Boyd <sboyd@...nel.org>,
Takashi Iwai <tiwai@...e.com>
Subject: Re: [PATCH 01/13] a2b: add A2B driver core
…
> +++ b/drivers/a2b/a2b.c
> @@ -0,0 +1,1252 @@
…
> +unsigned long a2b_bus_status(struct a2b_bus *bus)
> +{
> + unsigned long status;
> +
> + mutex_lock(&bus->mutex);
> + status = bus->status;
> + mutex_unlock(&bus->mutex);
> +
> + return status;
> +}
…
How do you think about to increase the application of scope-base resource management
also for such software components?
https://elixir.bootlin.com/linux/v6.9.1/source/include/linux/cleanup.h#L124
Regards,
Markus
Powered by blists - more mailing lists