diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2006-09-18 18:26:25 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-09-25 05:25:53 -0400 |
commit | c852ac80440db9b0a47f48578e9c6303078abbc1 (patch) | |
tree | 0c7fc1ca7700b0196a20242ca306003db7e35fb6 /arch/arm/mach-iop33x/uart.c | |
parent | 475549faa161f4e002225f2ef75fdd2a6d83d151 (diff) |
[ARM] 3832/1: iop3xx: coding style cleanup
Since the iop32x code isn't iop321-specific, and the iop33x code isn't
iop331-specfic, do a s/iop321/iop32x/ and s/iop331/iop33x/, and tidy up
the code to conform to the coding style guidelines somewhat better.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-iop33x/uart.c')
-rw-r--r-- | arch/arm/mach-iop33x/uart.c | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/arch/arm/mach-iop33x/uart.c b/arch/arm/mach-iop33x/uart.c index d221d4abaa87..ac297cd0276c 100644 --- a/arch/arm/mach-iop33x/uart.c +++ b/arch/arm/mach-iop33x/uart.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-iop33x/uart.c | 2 | * arch/arm/mach-iop33x/uart.c |
3 | * | 3 | * |
4 | * Author: Dave Jiang (dave.jiang@intel.com) | 4 | * Author: Dave Jiang (dave.jiang@intel.com) |
5 | * Copyright (C) 2004 Intel Corporation. | 5 | * Copyright (C) 2004 Intel Corporation. |
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/serial.h> | 17 | #include <linux/serial.h> |
18 | #include <linux/tty.h> | 18 | #include <linux/tty.h> |
19 | #include <linux/serial_8250.h> | 19 | #include <linux/serial_8250.h> |
20 | |||
21 | #include <asm/io.h> | 20 | #include <asm/io.h> |
22 | #include <asm/pgtable.h> | 21 | #include <asm/pgtable.h> |
23 | #include <asm/page.h> | 22 | #include <asm/page.h> |
@@ -30,14 +29,14 @@ | |||
30 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
31 | #include <asm/mach/arch.h> | 30 | #include <asm/mach/arch.h> |
32 | 31 | ||
33 | #define IOP331_UART_XTAL 33334000 | 32 | #define IOP33X_UART_XTAL 33334000 |
34 | 33 | ||
35 | static struct plat_serial8250_port iop33x_uart0_data[] = { | 34 | static struct plat_serial8250_port iop33x_uart0_data[] = { |
36 | { | 35 | { |
37 | .membase = (char *)IOP331_UART0_VIRT, | 36 | .membase = (char *)IOP33X_UART0_VIRT, |
38 | .mapbase = IOP331_UART0_PHYS, | 37 | .mapbase = IOP33X_UART0_PHYS, |
39 | .irq = IRQ_IOP331_UART0, | 38 | .irq = IRQ_IOP33X_UART0, |
40 | .uartclk = IOP331_UART_XTAL, | 39 | .uartclk = IOP33X_UART_XTAL, |
41 | .regshift = 2, | 40 | .regshift = 2, |
42 | .iotype = UPIO_MEM, | 41 | .iotype = UPIO_MEM, |
43 | .flags = UPF_SKIP_TEST, | 42 | .flags = UPF_SKIP_TEST, |
@@ -47,13 +46,13 @@ static struct plat_serial8250_port iop33x_uart0_data[] = { | |||
47 | 46 | ||
48 | static struct resource iop33x_uart0_resources[] = { | 47 | static struct resource iop33x_uart0_resources[] = { |
49 | [0] = { | 48 | [0] = { |
50 | .start = IOP331_UART0_PHYS, | 49 | .start = IOP33X_UART0_PHYS, |
51 | .end = IOP331_UART0_PHYS + 0x3f, | 50 | .end = IOP33X_UART0_PHYS + 0x3f, |
52 | .flags = IORESOURCE_MEM, | 51 | .flags = IORESOURCE_MEM, |
53 | }, | 52 | }, |
54 | [1] = { | 53 | [1] = { |
55 | .start = IRQ_IOP331_UART0, | 54 | .start = IRQ_IOP33X_UART0, |
56 | .end = IRQ_IOP331_UART0, | 55 | .end = IRQ_IOP33X_UART0, |
57 | .flags = IORESOURCE_IRQ, | 56 | .flags = IORESOURCE_IRQ, |
58 | }, | 57 | }, |
59 | }; | 58 | }; |
@@ -71,23 +70,23 @@ struct platform_device iop33x_uart0_device = { | |||
71 | 70 | ||
72 | static struct resource iop33x_uart1_resources[] = { | 71 | static struct resource iop33x_uart1_resources[] = { |
73 | [0] = { | 72 | [0] = { |
74 | .start = IOP331_UART1_PHYS, | 73 | .start = IOP33X_UART1_PHYS, |
75 | .end = IOP331_UART1_PHYS + 0x3f, | 74 | .end = IOP33X_UART1_PHYS + 0x3f, |
76 | .flags = IORESOURCE_MEM, | 75 | .flags = IORESOURCE_MEM, |
77 | }, | 76 | }, |
78 | [1] = { | 77 | [1] = { |
79 | .start = IRQ_IOP331_UART1, | 78 | .start = IRQ_IOP33X_UART1, |
80 | .end = IRQ_IOP331_UART1, | 79 | .end = IRQ_IOP33X_UART1, |
81 | .flags = IORESOURCE_IRQ, | 80 | .flags = IORESOURCE_IRQ, |
82 | }, | 81 | }, |
83 | }; | 82 | }; |
84 | 83 | ||
85 | static struct plat_serial8250_port iop33x_uart1_data[] = { | 84 | static struct plat_serial8250_port iop33x_uart1_data[] = { |
86 | { | 85 | { |
87 | .membase = (char *)IOP331_UART1_VIRT, | 86 | .membase = (char *)IOP33X_UART1_VIRT, |
88 | .mapbase = IOP331_UART1_PHYS, | 87 | .mapbase = IOP33X_UART1_PHYS, |
89 | .irq = IRQ_IOP331_UART1, | 88 | .irq = IRQ_IOP33X_UART1, |
90 | .uartclk = IOP331_UART_XTAL, | 89 | .uartclk = IOP33X_UART_XTAL, |
91 | .regshift = 2, | 90 | .regshift = 2, |
92 | .iotype = UPIO_MEM, | 91 | .iotype = UPIO_MEM, |
93 | .flags = UPF_SKIP_TEST, | 92 | .flags = UPF_SKIP_TEST, |