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.

memory: omap-gpmc: remove GPIO set() and direction_output() callbacks

This driver implements an input-only GPIO controller. There's no need to
implement the set() and direction_output() callbacks in this case, the
GPIO core will handle it.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20250407-gpiochip-set-rv-memory-v1-2-5ab0282a9da7@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

authored by

Bartosz Golaszewski and committed by
Krzysztof Kozlowski
1f34b5a9 a63f9903

-13
-13
drivers/memory/omap-gpmc.c
··· 2385 2385 return 0; /* we're input only */ 2386 2386 } 2387 2387 2388 - static int gpmc_gpio_direction_output(struct gpio_chip *chip, 2389 - unsigned int offset, int value) 2390 - { 2391 - return -EINVAL; /* we're input only */ 2392 - } 2393 - 2394 - static void gpmc_gpio_set(struct gpio_chip *chip, unsigned int offset, 2395 - int value) 2396 - { 2397 - } 2398 - 2399 2388 static int gpmc_gpio_get(struct gpio_chip *chip, unsigned int offset) 2400 2389 { 2401 2390 u32 reg; ··· 2406 2417 gpmc->gpio_chip.ngpio = gpmc_nr_waitpins; 2407 2418 gpmc->gpio_chip.get_direction = gpmc_gpio_get_direction; 2408 2419 gpmc->gpio_chip.direction_input = gpmc_gpio_direction_input; 2409 - gpmc->gpio_chip.direction_output = gpmc_gpio_direction_output; 2410 - gpmc->gpio_chip.set = gpmc_gpio_set; 2411 2420 gpmc->gpio_chip.get = gpmc_gpio_get; 2412 2421 gpmc->gpio_chip.base = -1; 2413 2422