Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3f4f54b4
Commit
3f4f54b4
authored
Jun 23, 2009
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mx3: Codingstyle: Let the compiler count arrays
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
bf50bcc2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
24 deletions
+16
-24
arch/arm/mach-mx3/devices.c
arch/arm/mach-mx3/devices.c
+10
-15
arch/arm/mach-mx3/mx31lite.c
arch/arm/mach-mx3/mx31lite.c
+2
-3
arch/arm/mach-mx3/pcm037.c
arch/arm/mach-mx3/pcm037.c
+2
-3
arch/arm/mach-mx3/qong.c
arch/arm/mach-mx3/qong.c
+2
-3
No files found.
arch/arm/mach-mx3/devices.c
View file @
3f4f54b4
...
@@ -129,19 +129,17 @@ struct platform_device mxc_uart_device4 = {
...
@@ -129,19 +129,17 @@ struct platform_device mxc_uart_device4 = {
/* GPIO port description */
/* GPIO port description */
static
struct
mxc_gpio_port
imx_gpio_ports
[]
=
{
static
struct
mxc_gpio_port
imx_gpio_ports
[]
=
{
[
0
]
=
{
{
.
chip
.
label
=
"gpio-0"
,
.
chip
.
label
=
"gpio-0"
,
.
base
=
IO_ADDRESS
(
GPIO1_BASE_ADDR
),
.
base
=
IO_ADDRESS
(
GPIO1_BASE_ADDR
),
.
irq
=
MXC_INT_GPIO1
,
.
irq
=
MXC_INT_GPIO1
,
.
virtual_irq_start
=
MXC_GPIO_IRQ_START
,
.
virtual_irq_start
=
MXC_GPIO_IRQ_START
,
},
},
{
[
1
]
=
{
.
chip
.
label
=
"gpio-1"
,
.
chip
.
label
=
"gpio-1"
,
.
base
=
IO_ADDRESS
(
GPIO2_BASE_ADDR
),
.
base
=
IO_ADDRESS
(
GPIO2_BASE_ADDR
),
.
irq
=
MXC_INT_GPIO2
,
.
irq
=
MXC_INT_GPIO2
,
.
virtual_irq_start
=
MXC_GPIO_IRQ_START
+
32
,
.
virtual_irq_start
=
MXC_GPIO_IRQ_START
+
32
,
},
},
{
[
2
]
=
{
.
chip
.
label
=
"gpio-2"
,
.
chip
.
label
=
"gpio-2"
,
.
base
=
IO_ADDRESS
(
GPIO3_BASE_ADDR
),
.
base
=
IO_ADDRESS
(
GPIO3_BASE_ADDR
),
.
irq
=
MXC_INT_GPIO3
,
.
irq
=
MXC_INT_GPIO3
,
...
@@ -173,11 +171,11 @@ static struct resource mxc_nand_resources[] = {
...
@@ -173,11 +171,11 @@ static struct resource mxc_nand_resources[] = {
{
{
.
start
=
0
,
/* runtime dependent */
.
start
=
0
,
/* runtime dependent */
.
end
=
0
,
.
end
=
0
,
.
flags
=
IORESOURCE_MEM
.
flags
=
IORESOURCE_MEM
,
},
{
},
{
.
start
=
MXC_INT_NANDFC
,
.
start
=
MXC_INT_NANDFC
,
.
end
=
MXC_INT_NANDFC
,
.
end
=
MXC_INT_NANDFC
,
.
flags
=
IORESOURCE_IRQ
.
flags
=
IORESOURCE_IRQ
,
},
},
};
};
...
@@ -193,8 +191,7 @@ static struct resource mxc_i2c0_resources[] = {
...
@@ -193,8 +191,7 @@ static struct resource mxc_i2c0_resources[] = {
.
start
=
I2C_BASE_ADDR
,
.
start
=
I2C_BASE_ADDR
,
.
end
=
I2C_BASE_ADDR
+
SZ_4K
-
1
,
.
end
=
I2C_BASE_ADDR
+
SZ_4K
-
1
,
.
flags
=
IORESOURCE_MEM
,
.
flags
=
IORESOURCE_MEM
,
},
},
{
{
.
start
=
MXC_INT_I2C
,
.
start
=
MXC_INT_I2C
,
.
end
=
MXC_INT_I2C
,
.
end
=
MXC_INT_I2C
,
.
flags
=
IORESOURCE_IRQ
,
.
flags
=
IORESOURCE_IRQ
,
...
@@ -213,8 +210,7 @@ static struct resource mxc_i2c1_resources[] = {
...
@@ -213,8 +210,7 @@ static struct resource mxc_i2c1_resources[] = {
.
start
=
I2C2_BASE_ADDR
,
.
start
=
I2C2_BASE_ADDR
,
.
end
=
I2C2_BASE_ADDR
+
SZ_4K
-
1
,
.
end
=
I2C2_BASE_ADDR
+
SZ_4K
-
1
,
.
flags
=
IORESOURCE_MEM
,
.
flags
=
IORESOURCE_MEM
,
},
},
{
{
.
start
=
MXC_INT_I2C2
,
.
start
=
MXC_INT_I2C2
,
.
end
=
MXC_INT_I2C2
,
.
end
=
MXC_INT_I2C2
,
.
flags
=
IORESOURCE_IRQ
,
.
flags
=
IORESOURCE_IRQ
,
...
@@ -233,8 +229,7 @@ static struct resource mxc_i2c2_resources[] = {
...
@@ -233,8 +229,7 @@ static struct resource mxc_i2c2_resources[] = {
.
start
=
I2C3_BASE_ADDR
,
.
start
=
I2C3_BASE_ADDR
,
.
end
=
I2C3_BASE_ADDR
+
SZ_4K
-
1
,
.
end
=
I2C3_BASE_ADDR
+
SZ_4K
-
1
,
.
flags
=
IORESOURCE_MEM
,
.
flags
=
IORESOURCE_MEM
,
},
},
{
{
.
start
=
MXC_INT_I2C3
,
.
start
=
MXC_INT_I2C3
,
.
end
=
MXC_INT_I2C3
,
.
end
=
MXC_INT_I2C3
,
.
flags
=
IORESOURCE_IRQ
,
.
flags
=
IORESOURCE_IRQ
,
...
@@ -400,11 +395,11 @@ static struct resource mxc_fec_resources[] = {
...
@@ -400,11 +395,11 @@ static struct resource mxc_fec_resources[] = {
{
{
.
start
=
MXC_FEC_BASE_ADDR
,
.
start
=
MXC_FEC_BASE_ADDR
,
.
end
=
MXC_FEC_BASE_ADDR
+
0xfff
,
.
end
=
MXC_FEC_BASE_ADDR
+
0xfff
,
.
flags
=
IORESOURCE_MEM
.
flags
=
IORESOURCE_MEM
,
},
{
},
{
.
start
=
MXC_INT_FEC
,
.
start
=
MXC_INT_FEC
,
.
end
=
MXC_INT_FEC
,
.
end
=
MXC_INT_FEC
,
.
flags
=
IORESOURCE_IRQ
.
flags
=
IORESOURCE_IRQ
,
},
},
};
};
...
...
arch/arm/mach-mx3/mx31lite.c
View file @
3f4f54b4
...
@@ -71,12 +71,11 @@ static struct smsc911x_platform_config smsc911x_config = {
...
@@ -71,12 +71,11 @@ static struct smsc911x_platform_config smsc911x_config = {
};
};
static
struct
resource
smsc911x_resources
[]
=
{
static
struct
resource
smsc911x_resources
[]
=
{
[
0
]
=
{
{
.
start
=
CS4_BASE_ADDR
,
.
start
=
CS4_BASE_ADDR
,
.
end
=
CS4_BASE_ADDR
+
0x100
,
.
end
=
CS4_BASE_ADDR
+
0x100
,
.
flags
=
IORESOURCE_MEM
,
.
flags
=
IORESOURCE_MEM
,
},
},
{
[
1
]
=
{
.
start
=
IOMUX_TO_IRQ
(
MX31_PIN_SFS6
),
.
start
=
IOMUX_TO_IRQ
(
MX31_PIN_SFS6
),
.
end
=
IOMUX_TO_IRQ
(
MX31_PIN_SFS6
),
.
end
=
IOMUX_TO_IRQ
(
MX31_PIN_SFS6
),
.
flags
=
IORESOURCE_IRQ
,
.
flags
=
IORESOURCE_IRQ
,
...
...
arch/arm/mach-mx3/pcm037.c
View file @
3f4f54b4
...
@@ -244,12 +244,11 @@ static struct imxuart_platform_data uart_pdata = {
...
@@ -244,12 +244,11 @@ static struct imxuart_platform_data uart_pdata = {
};
};
static
struct
resource
smsc911x_resources
[]
=
{
static
struct
resource
smsc911x_resources
[]
=
{
[
0
]
=
{
{
.
start
=
CS1_BASE_ADDR
+
0x300
,
.
start
=
CS1_BASE_ADDR
+
0x300
,
.
end
=
CS1_BASE_ADDR
+
0x300
+
SZ_64K
-
1
,
.
end
=
CS1_BASE_ADDR
+
0x300
+
SZ_64K
-
1
,
.
flags
=
IORESOURCE_MEM
,
.
flags
=
IORESOURCE_MEM
,
},
},
{
[
1
]
=
{
.
start
=
IOMUX_TO_IRQ
(
MX31_PIN_GPIO3_1
),
.
start
=
IOMUX_TO_IRQ
(
MX31_PIN_GPIO3_1
),
.
end
=
IOMUX_TO_IRQ
(
MX31_PIN_GPIO3_1
),
.
end
=
IOMUX_TO_IRQ
(
MX31_PIN_GPIO3_1
),
.
flags
=
IORESOURCE_IRQ
|
IORESOURCE_IRQ_LOWLEVEL
,
.
flags
=
IORESOURCE_IRQ
|
IORESOURCE_IRQ_LOWLEVEL
,
...
...
arch/arm/mach-mx3/qong.c
View file @
3f4f54b4
...
@@ -81,13 +81,12 @@ static inline void mxc_init_imx_uart(void)
...
@@ -81,13 +81,12 @@ static inline void mxc_init_imx_uart(void)
}
}
static
struct
resource
dnet_resources
[]
=
{
static
struct
resource
dnet_resources
[]
=
{
[
0
]
=
{
{
.
name
=
"dnet-memory"
,
.
name
=
"dnet-memory"
,
.
start
=
QONG_DNET_BASEADDR
,
.
start
=
QONG_DNET_BASEADDR
,
.
end
=
QONG_DNET_BASEADDR
+
QONG_DNET_SIZE
-
1
,
.
end
=
QONG_DNET_BASEADDR
+
QONG_DNET_SIZE
-
1
,
.
flags
=
IORESOURCE_MEM
,
.
flags
=
IORESOURCE_MEM
,
},
},
{
[
1
]
=
{
.
start
=
QONG_FPGA_IRQ
,
.
start
=
QONG_FPGA_IRQ
,
.
end
=
QONG_FPGA_IRQ
,
.
end
=
QONG_FPGA_IRQ
,
.
flags
=
IORESOURCE_IRQ
,
.
flags
=
IORESOURCE_IRQ
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment