Skip to content

Commit beda9c2

Browse files
committed
Merge tag 'gpio-fixes-for-v6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux
Pull gpio fixes from Bartosz Golaszewski: - add missing stubs for functions that are not built with GPIOLIB disabled * tag 'gpio-fixes-for-v6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: gpiolib: add gpio_device_get_label() stub for !GPIOLIB gpiolib: add gpio_device_get_base() stub for !GPIOLIB gpiolib: add gpiod_to_gpio_device() stub for !GPIOLIB
2 parents ca6a62f + 2df8aa3 commit beda9c2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

include/linux/gpio/driver.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,24 @@ static inline struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc)
819819
return ERR_PTR(-ENODEV);
820820
}
821821

822+
static inline struct gpio_device *gpiod_to_gpio_device(struct gpio_desc *desc)
823+
{
824+
WARN_ON(1);
825+
return ERR_PTR(-ENODEV);
826+
}
827+
828+
static inline int gpio_device_get_base(struct gpio_device *gdev)
829+
{
830+
WARN_ON(1);
831+
return -ENODEV;
832+
}
833+
834+
static inline const char *gpio_device_get_label(struct gpio_device *gdev)
835+
{
836+
WARN_ON(1);
837+
return NULL;
838+
}
839+
822840
static inline int gpiochip_lock_as_irq(struct gpio_chip *gc,
823841
unsigned int offset)
824842
{

0 commit comments

Comments
 (0)