summaryrefslogtreecommitdiff
path: root/include/spi_flash.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@denx.de>2015-04-21 10:37:45 +0200
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>2015-04-22 16:49:51 +0530
commitd15e74f16cc521da0e08060cda2c87307bd4363f (patch)
treed584b6fe702e8cba2536c6e610a1e109736ecc44 /include/spi_flash.h
parent8c48a68346038fdaa901e622760fe4c6a302220b (diff)
spi flash: fix trivial problems
Fix typos and too big #ifdef. Signed-off-by: Pavel Machek <pavel@denx.de> Reviewed-by: Marek Vasut <marex@denx.de> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Diffstat (limited to 'include/spi_flash.h')
-rw-r--r--include/spi_flash.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/spi_flash.h b/include/spi_flash.h
index 218283fc987..4791b94281c 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -62,11 +62,9 @@ struct spi_slave;
* return 0 - Success, 1 - Failure
*/
struct spi_flash {
-#ifdef CONFIG_DM_SPI_FLASH
struct spi_slave *spi;
+#ifdef CONFIG_DM_SPI_FLASH
struct udevice *dev;
-#else
- struct spi_slave *spi;
#endif
const char *name;
u8 dual_flash;
@@ -91,13 +89,13 @@ struct spi_flash {
#ifndef CONFIG_DM_SPI_FLASH
/*
* These are not strictly needed for driver model, but keep them here
- * whilt the transition is in progress.
+ * while the transition is in progress.
*
* Normally each driver would provide its own operations, but for
* SPI flash most chips use the same algorithms. One approach is
* to create a 'common' SPI flash device which knows how to talk
* to most devices, and then allow other drivers to be used instead
- * if requird, perhaps with a way of scanning through the list to
+ * if required, perhaps with a way of scanning through the list to
* find the driver that matches the device.
*/
int (*read)(struct spi_flash *flash, u32 offset, size_t len, void *buf);