]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: bcm2835: Use string_choices API instead of ternary operator
authorStefan Wahren <wahrenst@gmx.net>
Mon, 3 Jun 2024 18:19:38 +0000 (20:19 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2024 07:50:11 +0000 (09:50 +0200)
commit1583dc1627f6f9a24f570eec53fa20f1b4a5758f
treec29d6d60deb8e6ba60143dde4262431315a5ac82
parent1d1f3b8490b57c388a65f6c81fd867b1ec7e836b
pinctrl: bcm2835: Use string_choices API instead of ternary operator

Use modern string_choices API instead of manually determining the
output using ternary operator.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20240603181938.76047-3-wahrenst@gmx.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c