Searched refs:tmdev (Results 1 – 1 of 1) sorted by relevance
60 struct ths_device *tmdev; member73 int (*calibrate)(struct ths_device *tmdev,75 int (*init)(struct ths_device *tmdev);76 unsigned long (*irq_ack)(struct ths_device *tmdev);77 int (*calc_temp)(struct ths_device *tmdev,92 static int sun8i_ths_calc_temp(struct ths_device *tmdev, in sun8i_ths_calc_temp() argument95 return tmdev->chip->offset - (reg * tmdev->chip->scale / 10); in sun8i_ths_calc_temp()98 static int sun50i_h5_calc_temp(struct ths_device *tmdev, in sun50i_h5_calc_temp() argument112 struct ths_device *tmdev = s->tmdev; in sun8i_ths_get_temp() local115 regmap_read(tmdev->regmap, tmdev->chip->temp_data_base + in sun8i_ths_get_temp()[all …]