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

gpiolib: add gpio_device_get_label() stub for !GPIOLIB

Add empty stub of gpio_device_get_label() when GPIOLIB is not enabled.

Cc: <stable@vger.kernel.org>
Fixes: d1f7728259ef ("gpiolib: provide gpio_device_get_label()")
Suggested-by: kernel test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Bartosz Golaszewski
2df8aa3c ebe0c15b

+6
+6
include/linux/gpio/driver.h
··· 831 831 return -ENODEV; 832 832 } 833 833 834 + static inline const char *gpio_device_get_label(struct gpio_device *gdev) 835 + { 836 + WARN_ON(1); 837 + return NULL; 838 + } 839 + 834 840 static inline int gpiochip_lock_as_irq(struct gpio_chip *gc, 835 841 unsigned int offset) 836 842 {