mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
201e0f24a5
commit
fecdef830c
1 changed files with 0 additions and 7 deletions
|
@ -109,12 +109,6 @@ static int sprd_pmic_eic_direction_input(struct gpio_chip *chip,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void sprd_pmic_eic_set(struct gpio_chip *chip, unsigned int offset,
|
||||
int value)
|
||||
{
|
||||
/* EICs are always input, nothing need to do here. */
|
||||
}
|
||||
|
||||
static int sprd_pmic_eic_set_debounce(struct gpio_chip *chip,
|
||||
unsigned int offset,
|
||||
unsigned int debounce)
|
||||
|
@ -351,7 +345,6 @@ static int sprd_pmic_eic_probe(struct platform_device *pdev)
|
|||
pmic_eic->chip.request = sprd_pmic_eic_request;
|
||||
pmic_eic->chip.free = sprd_pmic_eic_free;
|
||||
pmic_eic->chip.set_config = sprd_pmic_eic_set_config;
|
||||
pmic_eic->chip.set = sprd_pmic_eic_set;
|
||||
pmic_eic->chip.get = sprd_pmic_eic_get;
|
||||
pmic_eic->chip.can_sleep = true;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue