diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2013-03-24 21:53:24 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-05 19:20:32 +0200 |
commit | 265dfbd9ae4388d582dd58e66aff24f4c30831ed (patch) | |
tree | 896d1f92829835a0a5fb0d6f6175f46a782ad158 /drivers/mtd/devices/bcm47xxsflash.h | |
parent | Linux 3.11-rc4 (diff) | |
download | linux-265dfbd9ae4388d582dd58e66aff24f4c30831ed.tar.xz linux-265dfbd9ae4388d582dd58e66aff24f4c30831ed.zip |
mtd: bcm47xxsflash: implement ChipCommon R/W ops
They are needed for erasing/writing. Use a magic pointers and small
functions to prepare code for adding other buses support in the future
(like SSB).
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/devices/bcm47xxsflash.h')
-rw-r--r-- | drivers/mtd/devices/bcm47xxsflash.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/devices/bcm47xxsflash.h b/drivers/mtd/devices/bcm47xxsflash.h index f22f8c46dfc0..fe93daf4f489 100644 --- a/drivers/mtd/devices/bcm47xxsflash.h +++ b/drivers/mtd/devices/bcm47xxsflash.h @@ -60,6 +60,8 @@ enum bcm47xxsflash_type { struct bcm47xxsflash { struct bcma_drv_cc *bcma_cc; + int (*cc_read)(struct bcm47xxsflash *b47s, u16 offset); + void (*cc_write)(struct bcm47xxsflash *b47s, u16 offset, u32 value); enum bcm47xxsflash_type type; |