Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+2
+2
include/linux/mtd/hyperbus.h
··· 20 20 * @mtd: pointer to MTD struct 21 21 * @ctlr: pointer to HyperBus controller struct 22 22 * @memtype: type of memory device: HyperFlash or HyperRAM 23 + * @priv: pointer to controller specific per device private data 23 24 */ 24 25 25 26 struct hyperbus_device { ··· 29 28 struct mtd_info *mtd; 30 29 struct hyperbus_ctlr *ctlr; 31 30 enum hyperbus_memtype memtype; 31 + void *priv; 32 32 }; 33 33 34 34 /**