#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/thermal.h>
#define SR_TMON_TEMP_BASE(id) …
#define SR_TMON_MAX_LIST …
struct sr_tmon { … };
struct sr_thermal { … };
static int sr_get_temp(struct thermal_zone_device *tz, int *temp)
{ … }
static const struct thermal_zone_device_ops sr_tz_ops = …;
static int sr_thermal_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id sr_thermal_of_match[] = …;
MODULE_DEVICE_TABLE(of, sr_thermal_of_match);
static struct platform_driver sr_thermal_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;