summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/eon.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-04-23 23:05:58 +0000
committerWolfgang Denk <wd@denx.de>2011-07-26 16:31:07 +0200
commitfba2c44e464a610f293ff1a381a16e8442953dd3 (patch)
treec8c9fb69b121e278bb83008084134734e420252f /drivers/mtd/spi/eon.c
parentb06afa75faeea2498447c56df1abaa23dbedb689 (diff)
downloadu-boot-imx-fba2c44e464a610f293ff1a381a16e8442953dd3.zip
u-boot-imx-fba2c44e464a610f293ff1a381a16e8442953dd3.tar.gz
u-boot-imx-fba2c44e464a610f293ff1a381a16e8442953dd3.tar.bz2
sf: eon/stmicro: inline useless ID defines
These defines are used in only one place, so just inline them. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/mtd/spi/eon.c')
-rw-r--r--drivers/mtd/spi/eon.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/spi/eon.c b/drivers/mtd/spi/eon.c
index 5937b61..806b44e 100644
--- a/drivers/mtd/spi/eon.c
+++ b/drivers/mtd/spi/eon.c
@@ -23,8 +23,6 @@
#define CMD_EN25Q128_DP 0xb9 /* Deep Power-down */
#define CMD_EN25Q128_RES 0xab /* Release from DP, and Read Signature */
-#define EON_ID_EN25Q128 0x18
-
struct eon_spi_flash_params {
u8 idcode1;
u16 page_size;
@@ -36,7 +34,7 @@ struct eon_spi_flash_params {
static const struct eon_spi_flash_params eon_spi_flash_table[] = {
{
- .idcode1 = EON_ID_EN25Q128,
+ .idcode1 = 0x18,
.page_size = 256,
.pages_per_sector = 16,
.sectors_per_block = 16,