mtd: cfi: Allow per-mapping CFI device endianness
authorAaron Sierra <asierra@xes-inc.com>
Tue, 15 Nov 2011 00:44:34 +0000 (18:44 -0600)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Jan 2012 18:06:13 +0000 (18:06 +0000)
commit8e987465a137d4824710e02550f06aa891c9b865
tree26edb55e4a9fe8f2f9832ba045286d5b18d3cc40
parent342ff28f5a2e5aa3236617bd2bddf6c749677ef2
mtd: cfi: Allow per-mapping CFI device endianness

This patch allows each CFI device map to use its own endianness. The
globally defined CFI endianness (CONFIG_MTD_CFI_NOSWAP,
CONFIG_MTD_CFI_BE_BYTE_SWAP or CONFIG_MTD_CFI_LE_BYTE_SWAP) becomes the
default value which can be overridden by a driver for a particular device.

Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/chips/cfi_cmdset_0020.c
include/linux/mtd/cfi.h
include/linux/mtd/cfi_endian.h
include/linux/mtd/map.h