Lines Matching defs:ssam_temp
111 struct ssam_temp {
121 const struct ssam_temp *ssam_temp = data;
123 if (!(ssam_temp->sensors & BIT(channel)))
133 const struct ssam_temp *ssam_temp = dev_get_drvdata(dev);
135 return ssam_tmp_get_temperature(ssam_temp->sdev, channel + 1, value);
142 const struct ssam_temp *ssam_temp = dev_get_drvdata(dev);
144 *str = ssam_temp->names[channel];
184 struct ssam_temp *ssam_temp;
194 ssam_temp = devm_kzalloc_obj(&sdev->dev, *ssam_temp);
195 if (!ssam_temp)
198 ssam_temp->sdev = sdev;
199 ssam_temp->sensors = sensors;
206 status = ssam_tmp_get_name(sdev, channel + 1, ssam_temp->names[channel],
212 hwmon_dev = devm_hwmon_device_register_with_info(&sdev->dev, "surface_thermal", ssam_temp,
223 static struct ssam_device_driver ssam_temp = {
231 module_ssam_device_driver(ssam_temp);