Home
last modified time | relevance | path

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

/linux/drivers/thermal/
H A Dsun8i_thermal.c62 struct ths_device *tmdev; member
76 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() argument
102 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() argument
119 struct ths_device *tmdev = s->tmdev; in sun8i_ths_get_temp() local
122 regmap_read(tmdev->regmap, tmdev->chip->temp_data_base + in sun8i_ths_get_temp()
[all …]