ARM: imx: make all pin lists const and signed, move to .init where possible
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 28 Sep 2010 19:53:31 +0000 (21:53 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 1 Oct 2010 07:33:07 +0000 (09:33 +0200)
Making the lists signed fixes sparse warnings like:

arch/arm/mach-imx/mach-mx27_3ds.c:94:31: warning: incorrect type in argument 1 (different signedness)
arch/arm/mach-imx/mach-mx27_3ds.c:94:31:    expected int const *pin_list
arch/arm/mach-imx/mach-mx27_3ds.c:94:31:    got unsigned int static [toplevel] *<noident>

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 files changed:
arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
arch/arm/mach-imx/mach-cpuimx27.c
arch/arm/mach-imx/mach-imx27_visstrim_m10.c
arch/arm/mach-imx/mach-imx27lite.c
arch/arm/mach-imx/mach-mx1ads.c
arch/arm/mach-imx/mach-mx21ads.c
arch/arm/mach-imx/mach-mx27_3ds.c
arch/arm/mach-imx/mach-mx27ads.c
arch/arm/mach-imx/mach-mxt_td60.c
arch/arm/mach-imx/mach-pca100.c
arch/arm/mach-imx/mach-pcm038.c
arch/arm/mach-imx/mach-scb9328.c
arch/arm/mach-imx/pcm970-baseboard.c

index cb433aeec9390522c48ff54faa0f8df91df72e08..026263c665cae060cfca17ca86ad2fb36c8c2cad 100644 (file)
@@ -41,7 +41,7 @@
 #include "devices-imx27.h"
 #include "devices.h"
 
-static int eukrea_mbimx27_pins[] = {
+static const int eukrea_mbimx27_pins[] __initconst = {
        /* UART2 */
        PE3_PF_UART2_CTS,
        PE4_PF_UART2_RTS,
index f00ddd9829b522f66c9175c78c6db2b4b1a4a133..d4cb592ffaed1127dffabb40345f389e9323d9c4 100644 (file)
@@ -46,7 +46,7 @@
 #include "devices-imx27.h"
 #include "devices.h"
 
-static int eukrea_cpuimx27_pins[] = {
+static const int eukrea_cpuimx27_pins[] __initconst = {
        /* UART1 */
        PE12_PF_UART1_TXD,
        PE13_PF_UART1_RXD,
index 7b3eed043ef1f03a9d6608940dbc8755ca5540d1..21904f32740c98bc92e00bc5d1af27df25b98599 100644 (file)
@@ -44,7 +44,7 @@
 #define OTG_PHY_CS_GPIO (GPIO_PORTF + 17)
 #define SDHC1_IRQ IRQ_GPIOB(25)
 
-static int visstrim_m10_pins[] = {
+static const int visstrim_m10_pins[] __initconst = {
        /* UART1 (console) */
        PE12_PF_UART1_TXD,
        PE13_PF_UART1_RXD,
index 22a2b5d912136590addc1fcd05f32d905b1af8d0..67480b639e2cc3f29be61a72b2fcc82f2377a713 100644 (file)
@@ -27,7 +27,7 @@
 #include "devices-imx27.h"
 #include "devices.h"
 
-static unsigned int mx27lite_pins[] = {
+static const int mx27lite_pins[] __initconst = {
        /* UART1 */
        PE12_PF_UART1_TXD,
        PE13_PF_UART1_RXD,
index 6e2f24952f1b4bdbec0a3d3e3c8797700f2a71e1..85e2877572b56c64f74d0f022fb1270056accea3 100644 (file)
@@ -32,7 +32,7 @@
 #include "devices-imx1.h"
 #include "devices.h"
 
-static int mx1ads_pins[] = {
+static const int mx1ads_pins[] __initconst = {
        /* UART1 */
        PC9_PF_UART1_CTS,
        PC10_PF_UART1_RTS,
index 96d7f8189f3253a0feb79d0278c51abbc3e4e5bf..7f021e6f6acd8235f29d4f44f0518357b39b757d 100644 (file)
@@ -67,7 +67,7 @@
 #define MX21ADS_IO_LED4_ON      0x4000
 #define MX21ADS_IO_LED3_ON      0x8000
 
-static unsigned int mx21ads_pins[] = {
+static const int mx21ads_pins[] __initconst = {
 
        /* CS8900A */
        (GPIO_PORTE | GPIO_GPIO | GPIO_IN | 11),
index e66ffaa1c26c26dbd4ba2b7d7b75c2455b06f5a1..9f6832d5f7f7be68769c97f0427edb3d17530185 100644 (file)
@@ -33,7 +33,7 @@
 #include "devices-imx27.h"
 #include "devices.h"
 
-static unsigned int mx27pdk_pins[] = {
+static const int mx27pdk_pins[] __initconst = {
        /* UART1 */
        PE12_PF_UART1_TXD,
        PE13_PF_UART1_RXD,
index 6be6033c876d4b4dd7e48a4a07b149e1b1530895..1a33288787a88a4dddd461e737f2c98b15b05a0a 100644 (file)
@@ -66,7 +66,7 @@
 /* to determine the correct external crystal reference */
 #define CKIH_27MHZ_BIT_SET      (1 << 3)
 
-static unsigned int mx27ads_pins[] = {
+static const int mx27ads_pins[] __initconst = {
        /* UART0 */
        PE12_PF_UART1_TXD,
        PE13_PF_UART1_RXD,
index d878bb99be7e378a6d2b4d5fef792f4c1a9d8de7..58fb0d6539814541bbad256a2cf6e5468cb5640b 100644 (file)
@@ -37,7 +37,7 @@
 #include "devices-imx27.h"
 #include "devices.h"
 
-static unsigned int mxt_td60_pins[] __initdata = {
+static const int mxt_td60_pins[] __initconst = {
        /* UART0 */
        PE12_PF_UART1_TXD,
        PE13_PF_UART1_RXD,
index cccf521de6b1efbf67cbc23b9dcd31f2e0055a6d..197dbb8afe9fa83bec483238859d9c44e9eea40f 100644 (file)
@@ -54,7 +54,7 @@
 #define SPI1_SS1 (GPIO_PORTD + 27)
 #define SD2_CD (GPIO_PORTC + 29)
 
-static int pca100_pins[] = {
+static const int pca100_pins[] __initconst = {
        /* UART1 */
        PE12_PF_UART1_TXD,
        PE13_PF_UART1_RXD,
index a3d645ff4467d0a2adcb10a376ddc0f02fb24dc9..3fbed661f612933438369b4676e0eb619a2b2c61 100644 (file)
@@ -43,7 +43,7 @@
 #include "devices-imx27.h"
 #include "devices.h"
 
-static int pcm038_pins[] = {
+static const int pcm038_pins[] __initconst = {
        /* UART1 */
        PE12_PF_UART1_TXD,
        PE13_PF_UART1_RXD,
index 88bf0d1e26e6ebb3400e07db4f545e3f86c97b9b..fb2e5f3d37f6eeca89c319317195585fd91931d3 100644 (file)
@@ -95,7 +95,7 @@ static struct platform_device dm9000x_device = {
        }
 };
 
-static int mxc_uart1_pins[] = {
+static const int mxc_uart1_pins[] = {
        PC9_PF_UART1_CTS,
        PC10_PF_UART1_RTS,
        PC11_PF_UART1_TXD,
index f490a406d57e737b46a343cb0c780e83f72cb056..7cffad880e42388bab6c5a640cefa220ce803443 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "devices.h"
 
-static int pcm970_pins[] = {
+static const int pcm970_pins[] __initconst = {
        /* SDHC */
        PB4_PF_SD2_D0,
        PB5_PF_SD2_D1,