Searched refs:tmdev (Results 1 – 1 of 1) sorted by relevance
103 return tmdev->chip->offset - (reg * tmdev->chip->scale / 10); in sun8i_ths_calc_temp()120 struct ths_device *tmdev = s->tmdev; in sun8i_ths_get_temp() local123 regmap_read(tmdev->regmap, tmdev->chip->temp_data_base + in sun8i_ths_get_temp()130 *temp = tmdev->chip->calc_temp(tmdev, s->id, val); in sun8i_ths_get_temp()195 unsigned long irq_bitmap = tmdev->chip->irq_ack(tmdev); in sun8i_irq_thread()271 sensor_temp = tmdev->chip->calc_temp(tmdev, i, sensor_reg); in sun50i_h6_ths_calibrate()336 tmdev->chip->calibrate(tmdev, caldata, callen); in sun8i_ths_calibrate()529 tmdev->sensor[i].tmdev = tmdev; in sun8i_ths_register()560 tmdev = devm_kzalloc(dev, sizeof(*tmdev), GFP_KERNEL); in sun8i_ths_probe()561 if (!tmdev) in sun8i_ths_probe()[all …]