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_zone_device_priv(thermal); in kirkwood_get_temp()
56 { .compatible = "marvell,kirkwood-thermal" },
62 struct thermal_zone_device *thermal = NULL; in kirkwood_thermal_probe() local
74 thermal = thermal_tripless_zone_device_register("kirkwood_thermal", in kirkwood_thermal_probe()
76 if (IS_ERR(thermal)) { in kirkwood_thermal_probe()
78 "Failed to register thermal zone device\n"); in kirkwood_thermal_probe()
79 return PTR_ERR(thermal); in kirkwood_thermal_probe()
81 ret = thermal_zone_device_enable(thermal); in kirkwood_thermal_probe()
83 thermal_zone_device_unregister(thermal); in kirkwood_thermal_probe()
84 dev_err(&pdev->dev, "Failed to enable thermal zone device\n"); in kirkwood_thermal_probe()
88 platform_set_drvdata(pdev, thermal); in kirkwood_thermal_probe()
115 MODULE_DESCRIPTION("kirkwood thermal driver");