#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/thermal.h>
#define PVTMON_CONTROL0 …
#define PVTMON_CONTROL0_SEL_MASK …
#define PVTMON_CONTROL0_SEL_TEMP_MONITOR …
#define PVTMON_CONTROL0_SEL_TEST_MODE …
#define PVTMON_STATUS …
static int ns_thermal_get_temp(struct thermal_zone_device *tz, int *temp)
{ … }
static const struct thermal_zone_device_ops ns_thermal_ops = …;
static int ns_thermal_probe(struct platform_device *pdev)
{ … }
static void ns_thermal_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id ns_thermal_of_match[] = …;
MODULE_DEVICE_TABLE(of, ns_thermal_of_match);
static struct platform_driver ns_thermal_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;