diff options
author | Vignesh Raghavendra <vigneshr@ti.com> | 2020-09-24 11:12:11 +0300 |
---|---|---|
committer | Vignesh Raghavendra <vigneshr@ti.com> | 2020-09-30 11:05:18 +0300 |
commit | 714fb2fbe7379d0a413be217194f7af9814f2079 (patch) | |
tree | 67c82c0763607aefb9f0b2b07010d5c185f692df | |
parent | ba4f184e126b751d1bffad5897f263108befc780 (diff) | |
download | linux-714fb2fbe7379d0a413be217194f7af9814f2079.tar.xz |
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
-rw-r--r-- | include/linux/mtd/hyperbus.h | 2 |
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; }; /** |