[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aAEyvOaE0bEOCu5k@smile.fi.intel.com>
Date: Thu, 17 Apr 2025 19:56:28 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Thomas Richard <thomas.richard@...tlin.com>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Geert Uytterhoeven <geert+renesas@...der.be>,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
thomas.petazzoni@...tlin.com, DanieleCleri@...on.eu,
GaryWang@...on.com.tw
Subject: Re: [PATCH v3 03/10] gpio: aggregator: move GPIO forwarder
allocation in a dedicated function
On Wed, Apr 16, 2025 at 04:08:11PM +0200, Thomas Richard wrote:
> Move the GPIO forwarder allocation and static initialization in a dedicated
> function.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
...
> + fwd = devm_kzalloc(dev, struct_size(fwd, tmp, fwd_tmp_size(ngpios)),
> + GFP_KERNEL);
You can keep it one line.
> + if (!fwd)
> + return ERR_PTR(-ENOMEM);
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists