aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2014-04-08 21:15:31 -0400
committerBrian Norris <computersforpeace@gmail.com>2014-04-14 14:23:00 -0400
commitb02e7f3ef0beb72da8fc64542f0ac977996ec56b (patch)
treef57360f33fb08ed196f1c407ae4ac8f1ed2cf3bb /drivers/mtd/devices
parentbecd0cb8666de4bfaaf6eb3042f69066c8fb8677 (diff)
mtd: spi-nor: re-name OPCODE_* to SPINOR_OP_*
Qualify these with a better namespace, and prepare them for use in more drivers. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Reviewed-by: Marek Vasut <marex@denx.de> Acked-by: Huang Shijie <b32955@freescale.com>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r--drivers/mtd/devices/m25p80.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 4af6400ccd95..1557d8f672c1 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -86,7 +86,7 @@ static void m25p80_write(struct spi_nor *nor, loff_t to, size_t len,
86 86
87 spi_message_init(&m); 87 spi_message_init(&m);
88 88
89 if (nor->program_opcode == OPCODE_AAI_WP && nor->sst_write_second) 89 if (nor->program_opcode == SPINOR_OP_AAI_WP && nor->sst_write_second)
90 cmd_sz = 1; 90 cmd_sz = 1;
91 91
92 flash->command[0] = nor->program_opcode; 92 flash->command[0] = nor->program_opcode;
@@ -171,7 +171,7 @@ static int m25p80_erase(struct spi_nor *nor, loff_t offset)
171 return ret; 171 return ret;
172 172
173 /* Send write enable, then erase commands. */ 173 /* Send write enable, then erase commands. */
174 ret = nor->write_reg(nor, OPCODE_WREN, NULL, 0, 0); 174 ret = nor->write_reg(nor, SPINOR_OP_WREN, NULL, 0, 0);
175 if (ret) 175 if (ret)
176 return ret; 176 return ret;
177 177