Commit a16cfe5b authored by Alessandro Rubini's avatar Alessandro Rubini

fmc.h: added {sg}et_drvdata()

parent 76509eff
......@@ -75,6 +75,18 @@ static inline void fmc_writel(struct fmc_device *fmc, uint32_t val, int off)
writel(val, fmc->base + off);
/* pci-like naming */
static inline void *fmc_get_drvdata(struct fmc_device *fmc)
return dev_get_drvdata(&fmc->dev);
static inline void fmc_set_drvdata(struct fmc_device *fmc, void *data)
dev_set_drvdata(&fmc->dev, data);
/* The 4 access points */
extern int fmc_driver_register(struct fmc_driver *drv);
extern void fmc_driver_unregister(struct fmc_driver *drv);
extern int fmc_device_register(struct fmc_device *tdev);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment