gpiolib-cdev.h (0ea8a56de21be24cb79abb03dee79aabcd60a316) | gpiolib-cdev.h (d143493c01b7fc3a9b9369a795e20329561222c5) |
---|---|
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 | 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 |
|
8int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt); 9void gpiolib_cdev_unregister(struct gpio_device *gdev); 10 | 10int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt); 11void gpiolib_cdev_unregister(struct gpio_device *gdev); 12 |
13#else 14 15static inline int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt) 16{ 17 return 0; 18} 19 20static inline void gpiolib_cdev_unregister(struct gpio_device *gdev) 21{ 22} 23 24#endif /* CONFIG_GPIO_CDEV */ 25 |
|
11#endif /* GPIOLIB_CDEV_H */ | 26#endif /* GPIOLIB_CDEV_H */ |