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