mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
serial: 8250: unexport serial8250_rpm_*() functions
Since commit 8700a7ea55 (serial: 8250_omap: Drop
pm_runtime_irq_safe()), all the serial8250_rpm_*() functions are used
solely in 8250_port.
Unexport them.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250425111315.1036184-7-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2b369a1e99
commit
7ba4f02e12
|
|
@ -223,12 +223,6 @@ static inline bool serial8250_clear_THRI(struct uart_8250_port *up)
|
|||
struct uart_8250_port *serial8250_setup_port(int index);
|
||||
struct uart_8250_port *serial8250_get_port(int line);
|
||||
|
||||
void serial8250_rpm_get(struct uart_8250_port *p);
|
||||
void serial8250_rpm_put(struct uart_8250_port *p);
|
||||
|
||||
void serial8250_rpm_get_tx(struct uart_8250_port *p);
|
||||
void serial8250_rpm_put_tx(struct uart_8250_port *p);
|
||||
|
||||
int serial8250_em485_config(struct uart_port *port, struct ktermios *termios,
|
||||
struct serial_rs485 *rs485);
|
||||
void serial8250_em485_start_tx(struct uart_8250_port *p, bool toggle_ier);
|
||||
|
|
|
|||
|
|
@ -517,22 +517,20 @@ void serial8250_clear_and_reinit_fifos(struct uart_8250_port *p)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(serial8250_clear_and_reinit_fifos);
|
||||
|
||||
void serial8250_rpm_get(struct uart_8250_port *p)
|
||||
static void serial8250_rpm_get(struct uart_8250_port *p)
|
||||
{
|
||||
if (!(p->capabilities & UART_CAP_RPM))
|
||||
return;
|
||||
pm_runtime_get_sync(p->port.dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(serial8250_rpm_get);
|
||||
|
||||
void serial8250_rpm_put(struct uart_8250_port *p)
|
||||
static void serial8250_rpm_put(struct uart_8250_port *p)
|
||||
{
|
||||
if (!(p->capabilities & UART_CAP_RPM))
|
||||
return;
|
||||
pm_runtime_mark_last_busy(p->port.dev);
|
||||
pm_runtime_put_autosuspend(p->port.dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(serial8250_rpm_put);
|
||||
|
||||
/**
|
||||
* serial8250_em485_init() - put uart_8250_port into rs485 emulating
|
||||
|
|
@ -647,7 +645,7 @@ EXPORT_SYMBOL_GPL(serial8250_em485_config);
|
|||
* once and disable_runtime_pm_tx() will still disable RPM because the fifo is
|
||||
* empty and the HW can idle again.
|
||||
*/
|
||||
void serial8250_rpm_get_tx(struct uart_8250_port *p)
|
||||
static void serial8250_rpm_get_tx(struct uart_8250_port *p)
|
||||
{
|
||||
unsigned char rpm_active;
|
||||
|
||||
|
|
@ -659,9 +657,8 @@ void serial8250_rpm_get_tx(struct uart_8250_port *p)
|
|||
return;
|
||||
pm_runtime_get_sync(p->port.dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(serial8250_rpm_get_tx);
|
||||
|
||||
void serial8250_rpm_put_tx(struct uart_8250_port *p)
|
||||
static void serial8250_rpm_put_tx(struct uart_8250_port *p)
|
||||
{
|
||||
unsigned char rpm_active;
|
||||
|
||||
|
|
@ -674,7 +671,6 @@ void serial8250_rpm_put_tx(struct uart_8250_port *p)
|
|||
pm_runtime_mark_last_busy(p->port.dev);
|
||||
pm_runtime_put_autosuspend(p->port.dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(serial8250_rpm_put_tx);
|
||||
|
||||
/*
|
||||
* IER sleep support. UARTs which have EFRs need the "extended
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user