sf: stmicro: Fix code cleanup

- line over 80 characters
- foo * bar -> foo *bar
- removed unnecessary for single statement blocks.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
This commit is contained in:
Jagannadha Sutradharudu Teki 2013-05-25 01:13:47 +05:30
parent 4f44148322
commit d0be616fe8
1 changed files with 3 additions and 4 deletions

View File

@ -18,7 +18,7 @@
#include "spi_flash_internal.h" #include "spi_flash_internal.h"
/* M25Pxx-specific commands */ /* M25Pxx-specific commands */
#define CMD_M25PXX_RES 0xab /* Release from DP, and Read Signature */ #define CMD_M25PXX_RES 0xab /* Release from DP, and Read Signature */
struct stmicro_spi_flash_params { struct stmicro_spi_flash_params {
u16 id; u16 id;
@ -150,7 +150,7 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
}, },
}; };
struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 * idcode) struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 *idcode)
{ {
const struct stmicro_spi_flash_params *params; const struct stmicro_spi_flash_params *params;
struct spi_flash *flash; struct spi_flash *flash;
@ -174,9 +174,8 @@ struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 * idcode)
for (i = 0; i < ARRAY_SIZE(stmicro_spi_flash_table); i++) { for (i = 0; i < ARRAY_SIZE(stmicro_spi_flash_table); i++) {
params = &stmicro_spi_flash_table[i]; params = &stmicro_spi_flash_table[i];
if (params->id == id) { if (params->id == id)
break; break;
}
} }
if (i == ARRAY_SIZE(stmicro_spi_flash_table)) { if (i == ARRAY_SIZE(stmicro_spi_flash_table)) {