diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2006-10-04 10:02:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 13:25:05 -0400 |
commit | 73e2798b0f3f4fa8ff7d3e8138027a8352359bb5 (patch) | |
tree | 88beae52a8aa22e49e339eb6145dcf8061f11e0b /drivers/serial/atmel_serial.c | |
parent | 1e8ea80219564c3433dbca7afe075ced9eb8117c (diff) |
[PATCH] at91_serial -> atmel_serial: Public definitions
Rename the following public definitions:
* AT91_NR_UART -> ATMEL_MAX_UART
* struct at91_uart_data -> struct atmel_uart_data
* at91_default_console_device -> atmel_default_console_device
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Acked-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/serial/atmel_serial.c')
-rw-r--r-- | drivers/serial/atmel_serial.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/serial/atmel_serial.c b/drivers/serial/atmel_serial.c index f14a07ed60b8..65972ce63c7d 100644 --- a/drivers/serial/atmel_serial.c +++ b/drivers/serial/atmel_serial.c | |||
@@ -113,7 +113,7 @@ struct at91_uart_port { | |||
113 | unsigned short suspended; /* is port suspended? */ | 113 | unsigned short suspended; /* is port suspended? */ |
114 | }; | 114 | }; |
115 | 115 | ||
116 | static struct at91_uart_port at91_ports[AT91_NR_UART]; | 116 | static struct at91_uart_port at91_ports[ATMEL_MAX_UART]; |
117 | 117 | ||
118 | #ifdef SUPPORT_SYSRQ | 118 | #ifdef SUPPORT_SYSRQ |
119 | static struct console at91_console; | 119 | static struct console at91_console; |
@@ -682,7 +682,7 @@ static struct uart_ops at91_pops = { | |||
682 | static void __devinit at91_init_port(struct at91_uart_port *at91_port, struct platform_device *pdev) | 682 | static void __devinit at91_init_port(struct at91_uart_port *at91_port, struct platform_device *pdev) |
683 | { | 683 | { |
684 | struct uart_port *port = &at91_port->uart; | 684 | struct uart_port *port = &at91_port->uart; |
685 | struct at91_uart_data *data = pdev->dev.platform_data; | 685 | struct atmel_uart_data *data = pdev->dev.platform_data; |
686 | 686 | ||
687 | port->iotype = UPIO_MEM; | 687 | port->iotype = UPIO_MEM; |
688 | port->flags = UPF_BOOT_AUTOCONF; | 688 | port->flags = UPF_BOOT_AUTOCONF; |
@@ -834,9 +834,9 @@ static struct console at91_console = { | |||
834 | */ | 834 | */ |
835 | static int __init at91_console_init(void) | 835 | static int __init at91_console_init(void) |
836 | { | 836 | { |
837 | if (at91_default_console_device) { | 837 | if (atmel_default_console_device) { |
838 | add_preferred_console(AT91_DEVICENAME, at91_default_console_device->id, NULL); | 838 | add_preferred_console(AT91_DEVICENAME, atmel_default_console_device->id, NULL); |
839 | at91_init_port(&(at91_ports[at91_default_console_device->id]), at91_default_console_device); | 839 | at91_init_port(&(at91_ports[atmel_default_console_device->id]), atmel_default_console_device); |
840 | register_console(&at91_console); | 840 | register_console(&at91_console); |
841 | } | 841 | } |
842 | 842 | ||
@@ -849,7 +849,7 @@ console_initcall(at91_console_init); | |||
849 | */ | 849 | */ |
850 | static int __init at91_late_console_init(void) | 850 | static int __init at91_late_console_init(void) |
851 | { | 851 | { |
852 | if (at91_default_console_device && !(at91_console.flags & CON_ENABLED)) | 852 | if (atmel_default_console_device && !(at91_console.flags & CON_ENABLED)) |
853 | register_console(&at91_console); | 853 | register_console(&at91_console); |
854 | 854 | ||
855 | return 0; | 855 | return 0; |
@@ -866,7 +866,7 @@ static struct uart_driver at91_uart = { | |||
866 | .dev_name = AT91_DEVICENAME, | 866 | .dev_name = AT91_DEVICENAME, |
867 | .major = SERIAL_AT91_MAJOR, | 867 | .major = SERIAL_AT91_MAJOR, |
868 | .minor = MINOR_START, | 868 | .minor = MINOR_START, |
869 | .nr = AT91_NR_UART, | 869 | .nr = ATMEL_MAX_UART, |
870 | .cons = AT91_CONSOLE_DEVICE, | 870 | .cons = AT91_CONSOLE_DEVICE, |
871 | }; | 871 | }; |
872 | 872 | ||