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