sf: eon|spansion|ramtron: Fix code cleanup

- line over 80 characters
- insert the expression in same line

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
This commit is contained in:
Jagannadha Sutradharudu Teki 2013-05-25 22:03:39 +05:30
parent 583fe6c3d8
commit 5a9109f657
3 changed files with 7 additions and 5 deletions

View file

@ -54,8 +54,7 @@ struct spi_flash *spi_flash_probe_eon(struct spi_slave *spi, u8 *idcode)
flash->page_size = 256; flash->page_size = 256;
flash->sector_size = 256 * 16 * 16; flash->sector_size = 256 * 16 * 16;
flash->size = 256 * 16 flash->size = 256 * 16 * params->nr_sectors;
* params->nr_sectors;
return flash; return flash;
} }

View file

@ -230,7 +230,8 @@ struct spi_flash *spi_fram_probe_ramtron(struct spi_slave *spi, u8 *idcode)
/* JEDEC conformant RAMTRON id */ /* JEDEC conformant RAMTRON id */
for (i = 0; i < ARRAY_SIZE(ramtron_spi_fram_table); i++) { for (i = 0; i < ARRAY_SIZE(ramtron_spi_fram_table); i++) {
params = &ramtron_spi_fram_table[i]; params = &ramtron_spi_fram_table[i];
if (idcode[1] == params->id1 && idcode[2] == params->id2) if (idcode[1] == params->id1 &&
idcode[2] == params->id2)
goto found; goto found;
} }
break; break;
@ -251,7 +252,8 @@ struct spi_flash *spi_fram_probe_ramtron(struct spi_slave *spi, u8 *idcode)
/* now find the device */ /* now find the device */
for (i = 0; i < ARRAY_SIZE(ramtron_spi_fram_table); i++) { for (i = 0; i < ARRAY_SIZE(ramtron_spi_fram_table); i++) {
params = &ramtron_spi_fram_table[i]; params = &ramtron_spi_fram_table[i];
if (!strcmp(params->name, CONFIG_SPI_FRAM_RAMTRON_NON_JEDEC)) if (!strcmp(params->name,
CONFIG_SPI_FRAM_RAMTRON_NON_JEDEC))
goto found; goto found;
} }
debug("SF: Unsupported non-JEDEC RAMTRON device " debug("SF: Unsupported non-JEDEC RAMTRON device "

View file

@ -122,7 +122,8 @@ struct spi_flash *spi_flash_probe_spansion(struct spi_slave *spi, u8 *idcode)
} }
if (i == ARRAY_SIZE(spansion_spi_flash_table)) { if (i == ARRAY_SIZE(spansion_spi_flash_table)) {
debug("SF: Unsupported SPANSION ID %04x %04x\n", jedec, ext_jedec); debug("SF: Unsupported SPANSION ID %04x %04x\n",
jedec, ext_jedec);
return NULL; return NULL;
} }