Lines Matching refs:spear_thermal
50 struct thermal_zone_device *spear_thermal = dev_get_drvdata(dev); in spear_thermal_suspend() local
51 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_suspend()
66 struct thermal_zone_device *spear_thermal = dev_get_drvdata(dev); in spear_thermal_resume() local
67 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_resume()
91 struct thermal_zone_device *spear_thermal = NULL; in spear_thermal_probe() local
127 spear_thermal = thermal_zone_device_register("spear_thermal", 0, 0, in spear_thermal_probe()
129 if (IS_ERR(spear_thermal)) { in spear_thermal_probe()
131 ret = PTR_ERR(spear_thermal); in spear_thermal_probe()
134 ret = thermal_zone_device_enable(spear_thermal); in spear_thermal_probe()
140 platform_set_drvdata(pdev, spear_thermal); in spear_thermal_probe()
142 dev_info(&spear_thermal->device, "Thermal Sensor Loaded at: 0x%p.\n", in spear_thermal_probe()
148 thermal_zone_device_unregister(spear_thermal); in spear_thermal_probe()
158 struct thermal_zone_device *spear_thermal = platform_get_drvdata(pdev); in spear_thermal_exit() local
159 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_exit()
161 thermal_zone_device_unregister(spear_thermal); in spear_thermal_exit()