Re: [PATCH v1 2/7] gpio: 74x164: Simplify code with cleanup helpers
From: Linus Walleij
Date: Mon Feb 10 2025 - 04:12:52 EST
On Mon, Feb 3, 2025 at 1:18 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> Use macros defined in linux/cleanup.h to automate resource lifetime
> control in the driver.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Clearly this is more readable and less prone to accidental bugs.
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Yours,
Linus Walleij