gpiolib: cdev: replace if-else chains with switches
authorKent Gibson <warthog618@gmail.com>
Thu, 14 Jul 2022 02:03:16 +0000 (10:03 +0800)
committerBartosz Golaszewski <brgl@bgdev.pl>
Tue, 19 Jul 2022 08:01:25 +0000 (10:01 +0200)
commitcfa53463ac62d30e4f30ec6e171b9228689d5a83
tree47880f8f0b68c64389a6a8de4d96858a3d6eef6f
parent2487a812236cdeecd0729cfc673fa352db44da5d
gpiolib: cdev: replace if-else chains with switches

Improve readability by replacing if-else chains with switch
statements.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpiolib-cdev.c