#include <linux/clk.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/thermal.h>
#define MD_FACTOR …
struct spear_thermal_dev { … };
static inline int thermal_get_temp(struct thermal_zone_device *thermal,
int *temp)
{ … }
static struct thermal_zone_device_ops ops = …;
static int __maybe_unused spear_thermal_suspend(struct device *dev)
{ … }
static int __maybe_unused spear_thermal_resume(struct device *dev)
{ … }
static SIMPLE_DEV_PM_OPS(spear_thermal_pm_ops, spear_thermal_suspend,
spear_thermal_resume);
static int spear_thermal_probe(struct platform_device *pdev)
{ … }
static void spear_thermal_exit(struct platform_device *pdev)
{ … }
static const struct of_device_id spear_thermal_id_table[] = …;
MODULE_DEVICE_TABLE(of, spear_thermal_id_table);
static struct platform_driver spear_thermal_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;