Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c80ee51 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Sascha Hauer
Browse files

ARM: imx: make all pin lists const and signed, move to .init where possible



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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 7ad211e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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,
Loading