diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-12-20 15:31:46 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-12-22 16:40:33 +0100 |
commit | 6f7b297b7a7a1fc7cf55010ef863c59156175bd9 (patch) | |
tree | 3d17c51d344229e199164064f831de2d747f92b7 /arch/arm/mach-at91/include | |
parent | 8ad572546546990161f3f29e0f9cfc7928ca2892 (diff) | |
download | barebox-6f7b297b7a7a1fc7cf55010ef863c59156175bd9.tar.gz barebox-6f7b297b7a7a1fc7cf55010ef863c59156175bd9.tar.xz |
at91: use -EINVAL for invalid gpio
switch gpio type from u8 to int in the data struct
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-at91/include')
-rw-r--r-- | arch/arm/mach-at91/include/mach/board.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h index d4a3e3b78d..b18f1c0a3d 100644 --- a/arch/arm/mach-at91/include/mach/board.h +++ b/arch/arm/mach-at91/include/mach/board.h @@ -28,7 +28,7 @@ /* USB Host */ struct at91_usbh_data { u8 ports; /* number of ports on root hub */ - u8 vbus_pin[2]; /* port power-control pin */ + int vbus_pin[2]; /* port power-control pin */ }; extern void __init at91_add_device_usbh_ohci(struct at91_usbh_data *data); @@ -46,9 +46,9 @@ extern void __init at91_add_device_udc(struct at91_udc_data *data); /* NAND / SmartMedia */ struct atmel_nand_data { - u8 enable_pin; /* chip enable */ - u8 det_pin; /* card detect */ - u8 rdy_pin; /* ready/busy */ + int enable_pin; /* chip enable */ + int det_pin; /* card detect */ + int rdy_pin; /* ready/busy */ u8 ale; /* address line number connected to ALE */ u8 cle; /* address line number connected to CLE */ u8 bus_width_16; /* buswidth is 16 bit */ @@ -148,8 +148,8 @@ struct atmel_mci_platform_data { unsigned slot_b; unsigned bus_width; unsigned host_caps; /* MCI_MODE_* from mci.h */ - unsigned detect_pin; - unsigned wp_pin; + int detect_pin; + int wp_pin; }; void at91_add_device_mci(short mmc_id, struct atmel_mci_platform_data *data); |