gpio: of: initialize local variable passed to the .of_xlate() callback
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 8 Jul 2025 08:38:29 +0000 (10:38 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 9 Jul 2025 14:14:11 +0000 (16:14 +0200)
commitd563e7f95c933816efe531c3a48e22bc099c0f55
treef89f25dc21385811acc3cbbbbfe3c19e00a84b5e
parent30e0fd3c0273dc106320081793793a424f1f1950
gpio: of: initialize local variable passed to the .of_xlate() callback

of_flags is passed down to GPIO chip's xlate function, so ensure this one
is properly initialized as - if the xlate callback does nothing with it
- we may end up with various configuration errors like:

    gpio-720 (enable): multiple pull-up, pull-down or pull-disable enabled, invalid configuration

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20250708083829.658051-1-alexander.stein@ew.tq-group.com
[Bartosz: tweaked the commit message]
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-of.c