Home
last modified time | relevance | path

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

/linux/drivers/power/supply/
H A Daxp20x_usb_power.c61 struct axp_data { struct
90 const struct axp_data *axp_data; argument
108 if (power->axp_data->vbus_needs_polling && !power->online) in axp20x_usb_vbus_needs_polling()
247 if (v < power->axp_data->curr_lim_table_size) in axp20x_usb_power_get_property()
248 val->intval = power->axp_data->curr_lim_table[v]; in axp20x_usb_power_get_property()
250 val->intval = power->axp_data->curr_lim_table[ in axp20x_usb_power_get_property()
251 power->axp_data->curr_lim_table_size - 1]; in axp20x_usb_power_get_property()
449 const unsigned int max = power->axp_data->curr_lim_table_size; in axp20x_usb_power_set_input_current_limit()
475 if (power->axp_data->curr_lim_table[reg] <= intval) in axp20x_usb_power_set_input_current_limit()
479 reg, power->axp_data->curr_lim_table[reg], intval); in axp20x_usb_power_set_input_current_limit()
[all …]
H A Daxp20x_ac_power.c252 struct axp_data { struct
260 static const struct axp_data axp20x_data = { argument
268 static const struct axp_data axp22x_data = {
276 static const struct axp_data axp813_data = {
326 const struct axp_data *axp_data; in axp20x_ac_power_probe() local
337 axp_data = of_device_get_match_data(&pdev->dev); in axp20x_ac_power_probe()
340 struct_size(power, irqs, axp_data->num_irq_names), in axp20x_ac_power_probe()
345 if (axp_data->acin_adc) { in axp20x_ac_power_probe()
362 power->has_acin_path_sel = axp_data->acin_path_sel; in axp20x_ac_power_probe()
363 power->num_irqs = axp_data->num_irq_names; in axp20x_ac_power_probe()
[all …]
H A Daxp20x_battery.c94 struct axp_data { struct
119 const struct axp_data *data; argument
1005 static const struct axp_data axp209_data = {
1017 static const struct axp_data axp221_data = {
1030 static const struct axp_data axp717_data = {
1042 static const struct axp_data axp813_data = {
1096 axp20x_batt->data = (struct axp_data *)of_device_get_match_data(dev); in axp20x_power_probe()