]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
serial: rsci: Rename early_console data, port_params and callback() names
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 29 Nov 2025 16:43:12 +0000 (16:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Dec 2025 14:07:07 +0000 (15:07 +0100)
Rename rsci_early_console_setup()->rsci_rzt2h_early_console_setup(),
the early_console data of_sci_rsci_data->of_rsci_rzt2h_data and the
port_params rsci_port_params->rsci_rzt2h_port_params to support RZ/G3E
RSCI that uses different data and callback().

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://patch.msgid.link/20251129164325.209213-17-biju.das.jz@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/rsci.c
drivers/tty/serial/rsci.h
drivers/tty/serial/sh-sci.c

index 7f4cb04daeeb74a8b6622cbf19f7b44c8800f2e1..70ff81fdc027f68ec59e25c8e608255a2bb27208 100644 (file)
@@ -419,7 +419,7 @@ static const struct sci_port_params_bits rsci_port_param_bits = {
        .poll_sent_bits = CSR_TDRE | CSR_TEND,
 };
 
-static const struct sci_port_params rsci_port_params = {
+static const struct sci_port_params rsci_rzt2h_port_params = {
        .fifosize = 16,
        .overrun_reg = CSR,
        .overrun_mask = CSR_ORER,
@@ -461,22 +461,22 @@ static const struct sci_port_ops rsci_port_ops = {
        .shutdown_complete      = rsci_shutdown_complete,
 };
 
-struct sci_of_data of_sci_rsci_data = {
+struct sci_of_data of_rsci_rzt2h_data = {
        .type = RSCI_PORT_SCIF16,
        .ops = &rsci_port_ops,
        .uart_ops = &rsci_uart_ops,
-       .params = &rsci_port_params,
+       .params = &rsci_rzt2h_port_params,
 };
 
 #ifdef CONFIG_SERIAL_SH_SCI_EARLYCON
 
-static int __init rsci_early_console_setup(struct earlycon_device *device,
-                                          const char *opt)
+static int __init rsci_rzt2h_early_console_setup(struct earlycon_device *device,
+                                                const char *opt)
 {
-       return scix_early_console_setup(device, &of_sci_rsci_data);
+       return scix_early_console_setup(device, &of_rsci_rzt2h_data);
 }
 
-OF_EARLYCON_DECLARE(rsci, "renesas,r9a09g077-rsci", rsci_early_console_setup);
+OF_EARLYCON_DECLARE(rsci, "renesas,r9a09g077-rsci", rsci_rzt2h_early_console_setup);
 
 #endif /* CONFIG_SERIAL_SH_SCI_EARLYCON */
 
index 2af3f28b465a2037f0ff6d506358f59a5947bf8b..9547148e8bd12e9936eebe4d36df0ac0c842f539 100644 (file)
@@ -5,6 +5,6 @@
 
 #include "sh-sci-common.h"
 
-extern struct sci_of_data of_sci_rsci_data;
+extern struct sci_of_data of_rsci_rzt2h_data;
 
 #endif /* __RSCI_H__ */
index 8f3314b258d691f300ec8e6abb8ac84d0ba46313..677293115f1ee84dcaf9a7278afbde801ab87d75 100644 (file)
@@ -3664,7 +3664,7 @@ static const struct of_device_id of_sci_match[] __maybe_unused = {
 #ifdef CONFIG_SERIAL_RSCI
        {
                .compatible = "renesas,r9a09g077-rsci",
-               .data = &of_sci_rsci_data,
+               .data = &of_rsci_rzt2h_data,
        },
 #endif /* CONFIG_SERIAL_RSCI */
        /* Family-specific types */