#include <linux/clk.h>
#include <linux/devfreq.h>
#include <linux/minmax.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_opp.h>
#include <linux/regulator/consumer.h>
struct mtk_ccifreq_platform_data { … };
struct mtk_ccifreq_drv { … };
static int mtk_ccifreq_set_voltage(struct mtk_ccifreq_drv *drv, int new_voltage)
{ … }
static int mtk_ccifreq_target(struct device *dev, unsigned long *freq,
u32 flags)
{ … }
static int mtk_ccifreq_opp_notifier(struct notifier_block *nb,
unsigned long event, void *data)
{ … }
static struct devfreq_dev_profile mtk_ccifreq_profile = …;
static int mtk_ccifreq_probe(struct platform_device *pdev)
{ … }
static void mtk_ccifreq_remove(struct platform_device *pdev)
{ … }
static const struct mtk_ccifreq_platform_data mt8183_platform_data = …;
static const struct mtk_ccifreq_platform_data mt8186_platform_data = …;
static const struct of_device_id mtk_ccifreq_machines[] = …;
MODULE_DEVICE_TABLE(of, mtk_ccifreq_machines);
static struct platform_driver mtk_ccifreq_platdrv = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;