]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mtd: denali: remove nearly-duplicated register definitions
authorJamie Iles <jamie@jamieiles.com>
Fri, 6 May 2011 14:28:56 +0000 (15:28 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 May 2011 01:02:01 +0000 (02:02 +0100)
commit9589bf5bed2936a159fc96c96339f15a512fdfa9
treeca0547147e34fc91ba7112c00315fd518dbfa16a
parent84457949e4921f15548a9d317a4a4318b3c3af75
mtd: denali: remove nearly-duplicated register definitions

The controller has interrupt enable/status register pairs for each bank
(along with ECC and status registers) that differ only in address offset.
Rather than providing definitions for each register, make the address a
macro so that it scales for devices with different numbers of banks.

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/denali.c
drivers/mtd/nand/denali.h