[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdZ2P7zeoRMwR=u84L_aysK2VOwVLNjFnTxvGNswd6DArw@mail.gmail.com>
Date: Tue, 26 Sep 2023 20:22:50 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Mika Westerberg <mika.westerberg@...ux.intel.com>,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
Andy Shevchenko <andy@...nel.org>,
Raag Jadav <raag.jadav@...el.com>
Subject: Re: [PATCH v1 1/1] pinctrl: intel: Simplify code with cleanup helpers
On Tue, Sep 26, 2023 at 3:23 PM Andy Shevchenko
<andriy.shevchenko@...ux.intel.com> wrote:
> Use macros defined in linux/cleanup.h to automate resource lifetime
> control in the driver.
>
> While at it, unify the variables and approach in intel_gpio_irq_*().
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Actually this is the best part:
> drivers/pinctrl/intel/pinctrl-intel.c | 136 ++++++++++----------------
> 1 file changed, 50 insertions(+), 86 deletions(-)
So much easier to read the code, and lesser risk to do mistakes.
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
Yours,
Linus Walleij
Powered by blists - more mailing lists