Skip to content
Snippets Groups Projects
Commit 01c0c843 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

fmc.h: added {sg}et_drvdata()

parent 31f87d0f
Branches
Tags
No related merge requests found
......@@ -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);
......
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