Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gpio: spacemit-k1: Add set_config callback support

Assign gpiochip_generic_config() to the set_config() callback to support
pin configuration through the GPIO subsystem. This allows users to
configure GPIO pin attributes like pull-up/down when specifying a GPIO
line in the Device Tree.

Signed-off-by: Junhui Liu <junhui.liu@pigmoral.tech>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Yixun Lan <dlan@kernel.org>
Signed-off-by: Linus Walleij <linusw@kernel.org>

authored by

Junhui Liu and committed by
Linus Walleij
47a9050e c3b0c06b

+1
+1
drivers/gpio/gpio-spacemit-k1.c
··· 228 228 gc->label = dev_name(dev); 229 229 gc->request = gpiochip_generic_request; 230 230 gc->free = gpiochip_generic_free; 231 + gc->set_config = gpiochip_generic_config; 231 232 gc->ngpio = SPACEMIT_NR_GPIOS_PER_BANK; 232 233 gc->base = -1; 233 234 gc->of_gpio_n_cells = 3;