mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
Ensure struct gpio_chip for gpiochip_setup_dev(). This eliminates a few checks for struct gpio_chip. Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://patch.msgid.link/20260223061726.82161-5-tzungbi@kernel.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
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 */
|