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->devdata;
37 dev_err(&thermal->device,
59 { .compatible = "marvell,kirkwood-thermal" },
65 struct thermal_zone_device *thermal = NULL;
79 thermal = thermal_zone_device_register("kirkwood_thermal", 0, 0,
81 if (IS_ERR(thermal)) {
83 "Failed to register thermal zone device\n");
84 return PTR_ERR(thermal);
86 ret = thermal_zone_device_enable(thermal);
88 thermal_zone_device_unregister(thermal);
89 dev_err(&pdev->dev, "Failed to enable thermal zone device\n");
93 platform_set_drvdata(pdev, thermal);
122 MODULE_DESCRIPTION("kirkwood thermal driver");