Re: [PATCH v2 3/6] gpiolib: cdev: replace if-else chains with switches

From: Linus Walleij
Date: Mon Jul 18 2022 - 05:31:04 EST


On Thu, Jul 14, 2022 at 4:04 AM Kent Gibson <warthog618@xxxxxxxxx> wrote:

> Improve readability by replacing if-else chains with switch
> statements.
>
> Signed-off-by: Kent Gibson <warthog618@xxxxxxxxx>
> Reviewed-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>

Yep that is more readable with the switch syntactic sugar on top:
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij