Home
last modified time | relevance | path

Searched refs:tmdev (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/thermal/
H A Dsun8i_thermal.c95 return tmdev->chip->offset - (reg * tmdev->chip->scale / 10); in sun8i_ths_calc_temp()
112 struct ths_device *tmdev = s->tmdev; in sun8i_ths_get_temp() local
115 regmap_read(tmdev->regmap, tmdev->chip->temp_data_base + in sun8i_ths_get_temp()
122 *temp = tmdev->chip->calc_temp(tmdev, s->id, val); in sun8i_ths_get_temp()
187 unsigned long irq_bitmap = tmdev->chip->irq_ack(tmdev); in sun8i_irq_thread()
248 int sensor_temp = tmdev->chip->calc_temp(tmdev, i, sensor_reg); in sun50i_h6_ths_calibrate()
313 tmdev->chip->calibrate(tmdev, caldata, callen); in sun8i_ths_calibrate()
461 tmdev->sensor[i].tmdev = tmdev; in sun8i_ths_register()
483 tmdev = devm_kzalloc(dev, sizeof(*tmdev), GFP_KERNEL); in sun8i_ths_probe()
484 if (!tmdev) in sun8i_ths_probe()
[all …]