1 /* SPDX-License-Identifier: GPL-2.0 */ 2 3 #ifndef GPIOLIB_CDEV_H 4 #define GPIOLIB_CDEV_H 5 6 #include <linux/device.h> 7 8 #ifdef CONFIG_GPIO_CDEV 9 10 int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt); 11 void gpiolib_cdev_unregister(struct gpio_device *gdev); 12 13 #else 14 15 static inline int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt) 16 { 17 return 0; 18 } 19 20 static inline void gpiolib_cdev_unregister(struct gpio_device *gdev) 21 { 22 } 23 24 #endif /* CONFIG_GPIO_CDEV */ 25 26 #endif /* GPIOLIB_CDEV_H */ 27