gpio: omap: improve coding style for pin config flags
authorDrew Fustini <drew@beagleboard.org>
Wed, 22 Jul 2020 12:07:56 +0000 (14:07 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jul 2020 13:05:23 +0000 (15:05 +0200)
commitbde8c0e64c78633612aaf283692f72bef0bbc549
tree45ce1ea6d6168b2b92d9b29bf2ba80b368fe8e16
parentecb55df8f3a8f30cb188a8bd3c9d0b977eb92e09
gpio: omap: improve coding style for pin config flags

Change the handling of pin config flags from if/else to switch
statement to make the code more readable and cleaner.

Suggested-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Drew Fustini <drew@beagleboard.org>
Acked-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200722120755.230741-1-drew@beagleboard.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c