Lines Matching refs:ab8500_data

83 	struct ab8500_temp *ab8500_data = data->plat_data;  in ab8500_read_sensor()  local
86 *temp = ab8500_btemp_get_batctrl_temp(ab8500_data->btemp); in ab8500_read_sensor()
88 *temp = ab8500_btemp_get_temp(ab8500_data->btemp); in ab8500_read_sensor()
90 voltage = ab8500_gpadc_convert(ab8500_data->gpadc, sensor); in ab8500_read_sensor()
94 ret = ab8500_voltage_to_temp(&ab8500_data->cfg, voltage, temp); in ab8500_read_sensor()
104 struct ab8500_temp *ab8500_data = container_of(work, in ab8500_thermal_power_off() local
106 struct abx500_temp *abx500_data = ab8500_data->abx500_data; in ab8500_thermal_power_off()
148 struct ab8500_temp *ab8500_data = data->plat_data; in ab8500_temp_irq_handler() local
153 schedule_delayed_work(&ab8500_data->power_off_work, in ab8500_temp_irq_handler()
160 struct ab8500_temp *ab8500_data; in abx500_hwmon_init() local
162 ab8500_data = devm_kzalloc(&data->pdev->dev, sizeof(*ab8500_data), in abx500_hwmon_init()
164 if (!ab8500_data) in abx500_hwmon_init()
167 ab8500_data->gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); in abx500_hwmon_init()
168 if (IS_ERR(ab8500_data->gpadc)) in abx500_hwmon_init()
169 return PTR_ERR(ab8500_data->gpadc); in abx500_hwmon_init()
171 ab8500_data->btemp = ab8500_btemp_get(); in abx500_hwmon_init()
172 if (IS_ERR(ab8500_data->btemp)) in abx500_hwmon_init()
173 return PTR_ERR(ab8500_data->btemp); in abx500_hwmon_init()
175 INIT_DELAYED_WORK(&ab8500_data->power_off_work, in abx500_hwmon_init()
178 ab8500_data->cfg.vcc = THERMAL_VCC; in abx500_hwmon_init()
179 ab8500_data->cfg.r_up = PULL_UP_RESISTOR; in abx500_hwmon_init()
180 ab8500_data->cfg.temp_tbl = ab8500_temp_tbl_a_thermistor; in abx500_hwmon_init()
181 ab8500_data->cfg.tbl_sz = ab8500_temp_tbl_a_size; in abx500_hwmon_init()
183 data->plat_data = ab8500_data; in abx500_hwmon_init()