aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorMatti Vaittinen <[email protected]>2025-03-05 13:13:12 +0000
committerBartosz Golaszewski <[email protected]>2025-03-05 13:36:04 +0000
commit43b665c961a6468fa8416805ef71daa5e7a152e7 (patch)
tree65e9271b6a04f33f7b94411111d107ba2da2735e /drivers/gpio/gpiolib.c
parentgpio: Add a valid_mask getter (diff)
downloadkernel-43b665c961a6468fa8416805ef71daa5e7a152e7.tar.gz
kernel-43b665c961a6468fa8416805ef71daa5e7a152e7.zip
gpio: gpio-rcar: Drop direct use of valid_mask
The valid_mask member of the struct gpio_chip is unconditionally written by the GPIO core at driver registration. It should not be directly populated by the drivers. Hiding the valid_mask in struct gpio_device makes it clear it is not meant to be directly populated by drivers. This means drivers should not access it directly from the struct gpio_chip. The gpio-rcar checks the valid mask in set/get_multiple() operations. This is no longer needed [1]. Drop these checks. Additionally, the valid_mask is needed for enabling the GPIO inputs at probe time. Use the new valid_mask -getter function instead of accessing it directly from the struct gpio_chip. Signed-off-by: Matti Vaittinen <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/e46441ba8a2840e6b48ec8d2ecd5919995a5675f.1741180097.git.mazziesaccount@gmail.com Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
0 files changed, 0 insertions, 0 deletions