ssam_temp
const struct ssam_temp *ssam_temp = data;
if (!(ssam_temp->sensors & BIT(channel)))
const struct ssam_temp *ssam_temp = dev_get_drvdata(dev);
return ssam_tmp_get_temperature(ssam_temp->sdev, channel + 1, value);
const struct ssam_temp *ssam_temp = dev_get_drvdata(dev);
*str = ssam_temp->names[channel];
struct ssam_temp *ssam_temp;
ssam_temp = devm_kzalloc(&sdev->dev, sizeof(*ssam_temp), GFP_KERNEL);
if (!ssam_temp)
ssam_temp->sdev = sdev;
ssam_temp->sensors = sensors;
status = ssam_tmp_get_name(sdev, channel + 1, ssam_temp->names[channel],
hwmon_dev = devm_hwmon_device_register_with_info(&sdev->dev, "surface_thermal", ssam_temp,
static struct ssam_device_driver ssam_temp = {
module_ssam_device_driver(ssam_temp);