mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 14:17:43 +00:00
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
This commit is contained in:
parent
ba4f184e12
commit
714fb2fbe7
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue