Lines Matching full:thermal
3 * Kirkwood thermal sensor driver
14 #include <linux/thermal.h>
21 /* Kirkwood Thermal Sensor Dev Structure */
26 static int kirkwood_get_temp(struct thermal_zone_device *thermal, in kirkwood_get_temp() argument
30 struct kirkwood_thermal_priv *priv = thermal->devdata; in kirkwood_get_temp()
37 dev_err(&thermal->device, in kirkwood_get_temp()
59 { .compatible = "marvell,kirkwood-thermal" },
65 struct thermal_zone_device *thermal = NULL; in kirkwood_thermal_probe() local
79 thermal = thermal_zone_device_register("kirkwood_thermal", 0, 0, in kirkwood_thermal_probe()
81 if (IS_ERR(thermal)) { in kirkwood_thermal_probe()
83 "Failed to register thermal zone device\n"); in kirkwood_thermal_probe()
84 return PTR_ERR(thermal); in kirkwood_thermal_probe()
86 ret = thermal_zone_device_enable(thermal); in kirkwood_thermal_probe()
88 thermal_zone_device_unregister(thermal); in kirkwood_thermal_probe()
89 dev_err(&pdev->dev, "Failed to enable thermal zone device\n"); in kirkwood_thermal_probe()
93 platform_set_drvdata(pdev, thermal); in kirkwood_thermal_probe()
122 MODULE_DESCRIPTION("kirkwood thermal driver");