mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
Ensure struct gpio_chip for gpiochip_setup_dev(). This eliminates a few checks for struct gpio_chip. Signed-off-by: Tzung-Bi Shih <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
14 lines
280 B
C
14 lines
280 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef GPIOLIB_CDEV_H
|
|
#define GPIOLIB_CDEV_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct gpio_device;
|
|
|
|
int gpiolib_cdev_register(struct gpio_chip *gc, dev_t devt);
|
|
void gpiolib_cdev_unregister(struct gpio_device *gdev);
|
|
|
|
#endif /* GPIOLIB_CDEV_H */
|