summaryrefslogtreecommitdiff
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorVignesh Raghavendra <vigneshr@ti.com>2020-09-24 13:42:11 +0530
committerVignesh Raghavendra <vigneshr@ti.com>2020-09-30 13:35:18 +0530
commit714fb2fbe7379d0a413be217194f7af9814f2079 (patch)
tree67c82c0763607aefb9f0b2b07010d5c185f692df /include/linux/mtd
parentba4f184e126b751d1bffad5897f263108befc780 (diff)
mtd: hyperbus: Provide per device private pointer
Provide per device private pointer that can be used by controller drivers to store device specific private data. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Link: https://lore.kernel.org/r/20200924081214.16934-2-vigneshr@ti.com
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/hyperbus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/hyperbus.h b/include/linux/mtd/hyperbus.h
index 2129f7d3b6eb..d8cb1aec826d 100644
--- a/include/linux/mtd/hyperbus.h
+++ b/include/linux/mtd/hyperbus.h
@@ -20,6 +20,7 @@ enum hyperbus_memtype {
* @mtd: pointer to MTD struct
* @ctlr: pointer to HyperBus controller struct
* @memtype: type of memory device: HyperFlash or HyperRAM
+ * @priv: pointer to controller specific per device private data
*/
struct hyperbus_device {
@@ -28,6 +29,7 @@ struct hyperbus_device {
struct mtd_info *mtd;
struct hyperbus_ctlr *ctlr;
enum hyperbus_memtype memtype;
+ void *priv;
};
/**