Lines Matching refs:thermal
3 * Kirkwood thermal sensor driver
14 #include <linux/thermal.h>
26 static int kirkwood_get_temp(struct thermal_zone_device *thermal,
30 struct kirkwood_thermal_priv *priv = thermal_zone_device_priv(thermal);
56 { .compatible = "marvell,kirkwood-thermal" },
62 struct thermal_zone_device *thermal = NULL;
74 thermal = thermal_tripless_zone_device_register("kirkwood_thermal",
76 if (IS_ERR(thermal)) {
78 "Failed to register thermal zone device\n");
79 return PTR_ERR(thermal);
81 ret = thermal_zone_device_enable(thermal);
83 thermal_zone_device_unregister(thermal);
84 dev_err(&pdev->dev, "Failed to enable thermal zone device\n");
88 platform_set_drvdata(pdev, thermal);
117 MODULE_DESCRIPTION("kirkwood thermal driver");