Skip to content

Commit

Permalink
ARM: imx: make all pin lists const and signed, move to .init where po…
Browse files Browse the repository at this point in the history
…ssible

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>
  • Loading branch information
Uwe Kleine-König authored and Sascha Hauer committed Oct 1, 2010
1 parent 7ad211e commit 6c80ee5
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mach-cpuimx27.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mach-imx27_visstrim_m10.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mach-imx27lite.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mach-mx1ads.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mach-mx21ads.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mach-mx27_3ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mach-mx27ads.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mach-mxt_td60.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mach-pca100.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mach-pcm038.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mach-scb9328.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/pcm970-baseboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6c80ee5

Please sign in to comment.