]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb680cd3f193e1b51566e2428a991c7d2ca80eb80
treeb1db63da05391b9aec45d075d247fa4a6655f713
parent1079b631b5dded5d495ebbf23756e1a5b83be120
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