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

gpio: pmic-eic-sprd: drop unneeded .set() callback

The lines on this chip are input-only. GPIO core can handle the missing
.set() callback so there's no need to implement a dummy here. Drop it.

Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250619-gpiochip-set-rv-gpio-v2-5-74abf689fbd8@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

-7
-7
drivers/gpio/gpio-pmic-eic-sprd.c
··· 109 109 return 0; 110 110 } 111 111 112 - static void sprd_pmic_eic_set(struct gpio_chip *chip, unsigned int offset, 113 - int value) 114 - { 115 - /* EICs are always input, nothing need to do here. */ 116 - } 117 - 118 112 static int sprd_pmic_eic_set_debounce(struct gpio_chip *chip, 119 113 unsigned int offset, 120 114 unsigned int debounce) ··· 345 351 pmic_eic->chip.request = sprd_pmic_eic_request; 346 352 pmic_eic->chip.free = sprd_pmic_eic_free; 347 353 pmic_eic->chip.set_config = sprd_pmic_eic_set_config; 348 - pmic_eic->chip.set = sprd_pmic_eic_set; 349 354 pmic_eic->chip.get = sprd_pmic_eic_get; 350 355 pmic_eic->chip.can_sleep = true; 351 356