spi flash: fix trivial problems
PATCH 1/1 spi flash: fix trivial problems
Fix typos and too big #ifdef.
Signed-off-by Pavel Machek <[email protected]>
include/spi_flash.h +3 -5
@@ -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);
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
PATCH 1/1 spi flash: fix trivial problems
Quoted 3 lines · Pavel Machek
Fix typos and too big #ifdef.
Signed-off-by Pavel Machek <[email protected]>
Reviewed-by Marek Vasut <[email protected]>
Best regards,
Marek Vasut
PATCH 1/1 spi flash: fix trivial problems
Quoted 6 lines · Marek Vasut
Quoted 3 lines · Pavel Machek
Fix typos and too big #ifdef.
Signed-off-by Pavel Machek <[email protected]>Reviewed-by Marek Vasut <[email protected]>
Applied to u-boot-spi/master
thanks!
Signature · 1 line
Jagan.