]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[MTD] m25p80: chip erase != block erase != sector erase
authorChen Gong <g.chen@freescale.com>
Wed, 26 Nov 2008 10:23:57 +0000 (10:23 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 26 Nov 2008 10:24:27 +0000 (10:24 +0000)
commit7854643a91eade84112dca9768eeb8d32463d101
tree4d905d09f1e4c37929f50f612f8b12e7ea0f6496
parent9168ab861ae3eb8942da61d884a5c1980ba98a5f
[MTD] m25p80: chip erase != block erase != sector erase

This fixes broken terminology added in the "m25p80.c erase enhance" patch,
which added a chip erase command but called it "block erase".  There are
already two block erase commands; blocks are 4KiB or 32KiB.  There's also
a sector erase (usually 64 KiB).  Chip erase typically covers Megabytes.

  OPCODE_BE   ==> OPCODE_CHIP_ERASE
  erase_block ==> erase_chip

[dbrownell@users.sourceforge.net: update sector erase comments too ]

Signed-off-by: Chen Gong <clumsycg@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/m25p80.c