forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/tty/serial/serial_mctrl_gpio.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0+
1
+/* SPDX-License-Identifier: GPL-2.0+ */
22 /*
33 * Helpers for controlling modem lines via GPIO
44 *
....@@ -114,19 +114,19 @@
114114 struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios,
115115 enum mctrl_gpio_idx gidx)
116116 {
117
- return ERR_PTR(-ENOSYS);
117
+ return NULL;
118118 }
119119
120120 static inline
121121 struct mctrl_gpios *mctrl_gpio_init(struct uart_port *port, unsigned int idx)
122122 {
123
- return ERR_PTR(-ENOSYS);
123
+ return NULL;
124124 }
125125
126126 static inline
127127 struct mctrl_gpios *mctrl_gpio_init_noauto(struct device *dev, unsigned int idx)
128128 {
129
- return ERR_PTR(-ENOSYS);
129
+ return NULL;
130130 }
131131
132132 static inline