Re: [PATCH] lib/string_choices: Add str_assert_deassert() helper
From: Andy Shevchenko
Date: Sun Sep 28 2025 - 15:33:55 EST
On Tue, Sep 23, 2025 at 12:52 PM Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote:
>
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
>
> Add str_assert_deassert() helper to return "assert" or "deassert"
> string literal depending on the boolean argument. Also add the
> inversed variant str_deassert_assert().
FWIW,
Reviewed-by: Andy Shevchenko <andy@xxxxxxxxxx>
...
> Note checkpatch complians about adding a new line before the macro
> definition. But this is the existing style in this file. So keeping
> it as is.
It's a checkpatch's problem. It's fine to ignore it in this case.
--
With Best Regards,
Andy Shevchenko