mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
mtd: OneNAND: add enable / disable methods to onenand_chip
Add enable / disable methods called from get_device() / release_device(). These can be used, for example, to allow the driver to prevent the voltage regulator from being put to sleep while OneNAND is in use. Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
8fffed8cfd
commit
cf24dc85ff
2 changed files with 6 additions and 0 deletions
|
@ -118,6 +118,8 @@ struct onenand_chip {
|
|||
int (*chip_probe)(struct mtd_info *mtd);
|
||||
int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
|
||||
int (*scan_bbt)(struct mtd_info *mtd);
|
||||
int (*enable)(struct mtd_info *mtd);
|
||||
int (*disable)(struct mtd_info *mtd);
|
||||
|
||||
struct completion complete;
|
||||
int irq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue