Searched refs:tmdev (Results 1 – 1 of 1) sorted by relevance
62 struct ths_device *tmdev; member76 int (*calibrate)(struct ths_device *tmdev,78 int (*init)(struct ths_device *tmdev);79 unsigned long (*irq_ack)(struct ths_device *tmdev);80 int (*calc_temp)(struct ths_device *tmdev,99 static int sun8i_ths_calc_temp(struct ths_device *tmdev, in sun8i_ths_calc_temp() argument102 return tmdev->chip->offset - (reg * tmdev->chip->scale / 10); in sun8i_ths_calc_temp()105 static int sun50i_h5_calc_temp(struct ths_device *tmdev, in sun50i_h5_calc_temp() argument119 struct ths_device *tmdev = s->tmdev; in sun8i_ths_get_temp() local122 regmap_read(tmdev->regmap, tmdev->chip->temp_data_base + in sun8i_ths_get_temp()[all …]