mtd: OneNAND: add enable / disable methods to onenand_chip
authorAdrian Hunter <adrian.hunter@nokia.com>
Fri, 19 Feb 2010 14:39:52 +0000 (15:39 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 6 Jan 2011 15:34:19 +0000 (15:34 +0000)
commitcf24dc85ff29a41abd8e73730e5feb22b2666bd3
tree5983bf84fa5a9ea22863df1efc8fba121619dbf8
parent8fffed8cfdd511056cb17c70f525017fbb643b94
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>
drivers/mtd/onenand/onenand_base.c
include/linux/mtd/onenand.h