gpio: remove gpiod_lock/unlock_as_irq()
gpio_lock/unlock_as_irq() are working with (chip, offset) arguments and are thus not using the old integer namespace. Therefore, there is no reason to have gpiod variants of these functions working with descriptors, especially since the (chip, offset) tuple is more suitable to the users of these functions (GPIO drivers, whereas GPIO descriptors are targeted at GPIO consumers). Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:

committed by
Linus Walleij

vanhempi
1bd6b601fe
commit
d74be6dfea
@@ -100,15 +100,3 @@ void gpio_free_array(const struct gpio *array, size_t num)
|
||||
gpio_free((array++)->gpio);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(gpio_free_array);
|
||||
|
||||
int gpio_lock_as_irq(struct gpio_chip *chip, unsigned int offset)
|
||||
{
|
||||
return gpiod_lock_as_irq(gpiochip_get_desc(chip, offset));
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(gpio_lock_as_irq);
|
||||
|
||||
void gpio_unlock_as_irq(struct gpio_chip *chip, unsigned int offset)
|
||||
{
|
||||
return gpiod_unlock_as_irq(gpiochip_get_desc(chip, offset));
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(gpio_unlock_as_irq);
|
||||
|
Viittaa uudesa ongelmassa
Block a user