Lines Matching refs:pdata

36 	struct wm97xx_batt_pdata *pdata = wmdata->batt_pdata;
39 pdata->batt_aux) * pdata->batt_mult /
40 pdata->batt_div;
46 struct wm97xx_batt_pdata *pdata = wmdata->batt_pdata;
49 pdata->temp_aux) * pdata->temp_mult /
50 pdata->temp_div;
58 struct wm97xx_batt_pdata *pdata = wmdata->batt_pdata;
65 val->intval = pdata->batt_tech;
68 if (pdata->batt_aux >= 0)
74 if (pdata->temp_aux >= 0)
80 if (pdata->max_voltage >= 0)
81 val->intval = pdata->max_voltage;
86 if (pdata->min_voltage >= 0)
87 val->intval = pdata->min_voltage;
109 struct wm97xx_batt_pdata *pdata = wmdata->batt_pdata;
113 bat_status = (pdata->charge_gpio >= 0) ?
114 (gpio_get_value(pdata->charge_gpio) ?
171 struct wm97xx_batt_pdata *pdata;
178 pdata = wmdata->batt_pdata;
183 if (!pdata) {
188 if (gpio_is_valid(pdata->charge_gpio)) {
189 ret = gpio_request(pdata->charge_gpio, "BATT CHRG");
192 ret = gpio_direction_input(pdata->charge_gpio);
195 ret = request_irq(gpio_to_irq(pdata->charge_gpio),
203 if (pdata->batt_tech >= 0)
205 if (pdata->temp_aux >= 0)
207 if (pdata->batt_aux >= 0)
209 if (pdata->max_voltage >= 0)
211 if (pdata->min_voltage >= 0)
219 if (pdata->charge_gpio >= 0)
221 if (pdata->batt_tech >= 0)
223 if (pdata->temp_aux >= 0)
225 if (pdata->batt_aux >= 0)
227 if (pdata->max_voltage >= 0)
229 if (pdata->min_voltage >= 0)
234 if (!pdata->batt_name) {
240 bat_ps.name = pdata->batt_name;
255 if (gpio_is_valid(pdata->charge_gpio))
256 free_irq(gpio_to_irq(pdata->charge_gpio), dev);
258 if (gpio_is_valid(pdata->charge_gpio))
259 gpio_free(pdata->charge_gpio);
267 struct wm97xx_batt_pdata *pdata = wmdata->batt_pdata;
269 if (pdata && gpio_is_valid(pdata->charge_gpio)) {
270 free_irq(gpio_to_irq(pdata->charge_gpio), dev);
271 gpio_free(pdata->charge_gpio);