[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdZWZMJod2B1B8bNGrF3FSu7-zgjda0-ma5kvxmj9huYHQ@mail.gmail.com>
Date: Mon, 18 Jul 2022 11:30:46 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Kent Gibson <warthog618@...il.com>
Cc: linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org,
brgl@...ev.pl, dipenp@...dia.com, andy.shevchenko@...il.com
Subject: Re: [PATCH v2 3/6] gpiolib: cdev: replace if-else chains with switches
On Thu, Jul 14, 2022 at 4:04 AM Kent Gibson <warthog618@...il.com> wrote:
> Improve readability by replacing if-else chains with switch
> statements.
>
> Signed-off-by: Kent Gibson <warthog618@...il.com>
> Reviewed-by: Andy Shevchenko <andy.shevchenko@...il.com>
Yep that is more readable with the switch syntactic sugar on top:
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
Yours,
Linus Walleij
Powered by blists - more mailing lists