hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/tty/tty_port.c
....@@ -18,6 +18,7 @@
1818 #include <linux/delay.h>
1919 #include <linux/module.h>
2020 #include <linux/serdev.h>
21
+#include "tty.h"
2122
2223 static int tty_port_default_receive_buf(struct tty_port *port,
2324 const unsigned char *p,
....@@ -280,7 +281,6 @@
280281 * Return a refcount protected tty instance or NULL if the port is not
281282 * associated with a tty (eg due to close or hangup)
282283 */
283
-
284284 struct tty_struct *tty_port_tty_get(struct tty_port *port)
285285 {
286286 unsigned long flags;
....@@ -301,7 +301,6 @@
301301 * Associate the port and tty pair. Manages any internal refcounts.
302302 * Pass NULL to deassociate a port
303303 */
304
-
305304 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty)
306305 {
307306 unsigned long flags;
....@@ -344,7 +343,6 @@
344343 *
345344 * Caller holds tty lock.
346345 */
347
-
348346 void tty_port_hangup(struct tty_port *port)
349347 {
350348 struct tty_struct *tty;
....@@ -400,7 +398,6 @@
400398 * to hide some internal details. This will eventually become entirely
401399 * internal to the tty port.
402400 */
403
-
404401 int tty_port_carrier_raised(struct tty_port *port)
405402 {
406403 if (port->ops->carrier_raised == NULL)
....@@ -417,7 +414,6 @@
417414 * to hide some internal details. This will eventually become entirely
418415 * internal to the tty port.
419416 */
420
-
421417 void tty_port_raise_dtr_rts(struct tty_port *port)
422418 {
423419 if (port->ops->dtr_rts)
....@@ -433,7 +429,6 @@
433429 * to hide some internal details. This will eventually become entirely
434430 * internal to the tty port.
435431 */
436
-
437432 void tty_port_lower_dtr_rts(struct tty_port *port)
438433 {
439434 if (port->ops->dtr_rts)
....@@ -465,7 +460,6 @@
465460 * NB: May drop and reacquire tty lock when blocking, so tty and tty_port
466461 * may have changed state (eg., may have been hung up).
467462 */
468
-
469463 int tty_port_block_til_ready(struct tty_port *port,
470464 struct tty_struct *tty, struct file *filp)
471465 {