#include <linux/device.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/nvmem-provider.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/clk.h>
#define IIM_BANK_BASE(n) …
struct imx_iim_drvdata { … };
struct iim_priv { … };
static int imx_iim_read(void *context, unsigned int offset,
void *buf, size_t bytes)
{ … }
static struct imx_iim_drvdata imx27_drvdata = …;
static struct imx_iim_drvdata imx25_imx31_imx35_drvdata = …;
static struct imx_iim_drvdata imx51_drvdata = …;
static struct imx_iim_drvdata imx53_drvdata = …;
static const struct of_device_id imx_iim_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, imx_iim_dt_ids);
static int imx_iim_probe(struct platform_device *pdev)
{ … }
static struct platform_driver imx_iim_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;