mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 06:55:07 +07:00
925ca36913
Split the cdev specific functionality out of gpiolib.c and into gpiolib-cdev.c. This improves the readability and maintainability of both the cdev and core gpiolib code. Suggested-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Kent Gibson <warthog618@gmail.com> Link: https://lore.kernel.org/r/20200616093615.5167-1-warthog618@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 lines
264 B
C
12 lines
264 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef GPIOLIB_CDEV_H
|
|
#define GPIOLIB_CDEV_H
|
|
|
|
#include <linux/device.h>
|
|
|
|
int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt);
|
|
void gpiolib_cdev_unregister(struct gpio_device *gdev);
|
|
|
|
#endif /* GPIOLIB_CDEV_H */
|