summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHan Xu <han.xu@nxp.com>2019-05-02 16:01:36 -0500
committerHan Xu <han.xu@nxp.com>2019-05-07 11:12:10 -0500
commitdaba5f6fc78bcb91efc1c8f0e1ded054e24a3a49 (patch)
tree8c81363df6f8ccf4b69811eabfc163344b2dd572 /include
parenta71eb0eb6df71ec87df18de5cbfbe183d7cb141c (diff)
MLK-21633-1: mtd: hyperbus: change the hbmc ops functions
add the prepare/unprepare functions in hbmc ops Signed-off-by: Han Xu <han.xu@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mtd/hyperbus.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mtd/hyperbus.h b/include/linux/mtd/hyperbus.h
index 041ebac6a705..28087fcf609d 100644
--- a/include/linux/mtd/hyperbus.h
+++ b/include/linux/mtd/hyperbus.h
@@ -39,6 +39,8 @@ struct hyperbus_device {
* @copy_from: copy data from flash memory
* @copy_to: copy data to flash memory
* @calibrate: calibrate HyperBus controller
+ * @prepare: preparation for ops
+ * @unprepare: post work after ops
*/
struct hyperbus_ops {
@@ -50,6 +52,8 @@ struct hyperbus_ops {
void (*copy_to)(struct hyperbus_device *dev, unsigned long to,
const void *from, ssize_t len);
int (*calibrate)(struct hyperbus_device *dev);
+ int (*prepare)(struct hyperbus_device *dev);
+ void (*unprepare)(struct hyperbus_device *dev);
};
/**