projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba4f184
)
mtd: hyperbus: Provide per device private pointer
author
Vignesh Raghavendra
<vigneshr@ti.com>
Thu, 24 Sep 2020 08:12:11 +0000
(13:42 +0530)
committer
Vignesh Raghavendra
<vigneshr@ti.com>
Wed, 30 Sep 2020 08:05:18 +0000
(13:35 +0530)
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
include/linux/mtd/hyperbus.h
patch
|
blob
|
history
diff --git
a/include/linux/mtd/hyperbus.h
b/include/linux/mtd/hyperbus.h
index
2129f7d
..
d8cb1ae
100644
(file)
--- 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;
};
/**