27 lines
495 B
C
27 lines
495 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef GPIOLIB_CDEV_H
|
|
#define GPIOLIB_CDEV_H
|
|
|
|
#include <linux/device.h>
|
|
|
|
#ifdef CONFIG_GPIO_CDEV
|
|
|
|
int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt);
|
|
void gpiolib_cdev_unregister(struct gpio_device *gdev);
|
|
|
|
#else
|
|
|
|
static inline int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void gpiolib_cdev_unregister(struct gpio_device *gdev)
|
|
{
|
|
}
|
|
|
|
#endif /* CONFIG_GPIO_CDEV */
|
|
|
|
#endif /* GPIOLIB_CDEV_H */
|