mtd: brcmnand: clean up flash cache for parameter pages
authorBrian Norris <computersforpeace@gmail.com>
Tue, 17 Nov 2015 00:56:13 +0000 (16:56 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 18 Nov 2015 22:28:39 +0000 (14:28 -0800)
commitd618baf94c62eb63b5b7f6159fb6aee5550a2e10
treeb1db63da05391b9aec45d075d247fa4a6655f713
parentc98f71d1c05601cff0f302889933798020e08869
mtd: brcmnand: clean up flash cache for parameter pages

The read_byte() handling for accessing the flash cache has some awkward
swapping being done in the read_byte() function. Let's just make this a
byte array, and do the swapping with the word-level macros during the
initial buffer copy.

This is just a refactoring patch, with no (intended) functional change.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Clay McClure <clay@daemons.net>
Cc: Ray Jui <rjui@broadcom.com>
Cc: Scott Branden <sbranden@broadcom.com>
Cc: <bcm-kernel-feedback-list@broadcom.com>
Tested-by: Clay McClure <clay@daemons.net>
drivers/mtd/nand/brcmnand/brcmnand.c