#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
#include <linux/platform_data/media/mmp-camera.h>
#include <linux/device.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/io.h>
#include <linux/list.h>
#include <linux/pm.h>
#include <linux/clk.h>
#include "mcam-core.h"
MODULE_ALIAS(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
static char *mcam_clks[] = …;
struct mmp_camera { … };
static inline struct mmp_camera *mcam_to_cam(struct mcam_camera *mcam)
{ … }
static void mmpcam_calc_dphy(struct mcam_camera *mcam)
{ … }
static irqreturn_t mmpcam_irq(int irq, void *data)
{ … }
static void mcam_init_clk(struct mcam_camera *mcam)
{ … }
static int mmpcam_probe(struct platform_device *pdev)
{ … }
static void mmpcam_remove(struct platform_device *pdev)
{ … }
static int __maybe_unused mmpcam_runtime_resume(struct device *dev)
{ … }
static int __maybe_unused mmpcam_runtime_suspend(struct device *dev)
{ … }
static int __maybe_unused mmpcam_suspend(struct device *dev)
{ … }
static int __maybe_unused mmpcam_resume(struct device *dev)
{ … }
static const struct dev_pm_ops mmpcam_pm_ops = …;
static const struct of_device_id mmpcam_of_match[] = …;
MODULE_DEVICE_TABLE(of, mmpcam_of_match);
static struct platform_driver mmpcam_driver = …;
module_platform_driver(…) …;