Skip to content

Commit 714fb2f

Browse files
committed
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
1 parent ba4f184 commit 714fb2f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/linux/mtd/hyperbus.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ enum hyperbus_memtype {
2020
* @mtd: pointer to MTD struct
2121
* @ctlr: pointer to HyperBus controller struct
2222
* @memtype: type of memory device: HyperFlash or HyperRAM
23+
* @priv: pointer to controller specific per device private data
2324
*/
2425

2526
struct hyperbus_device {
@@ -28,6 +29,7 @@ struct hyperbus_device {
2829
struct mtd_info *mtd;
2930
struct hyperbus_ctlr *ctlr;
3031
enum hyperbus_memtype memtype;
32+
void *priv;
3133
};
3234

3335
/**

0 commit comments

Comments
 (0)