axp_data
static const struct axp_data axp192_data = {
static const struct axp_data axp20x_data = {
static const struct axp_data axp22x_data = {
static const struct axp_data axp717_data = {
static const struct axp_data axp813_data = {
info->data = (const struct axp_data *)id->driver_data;
struct axp_data;
const struct axp_data *data;
static const struct axp_data axp20x_data = {
static const struct axp_data axp22x_data = {
static const struct axp_data axp813_data = {
const struct axp_data *axp_data;
axp_data = of_device_get_match_data(&pdev->dev);
struct_size(power, irqs, axp_data->num_irq_names),
if (axp_data->acin_adc) {
power->has_acin_path_sel = axp_data->acin_path_sel;
power->num_irqs = axp_data->num_irq_names;
axp_data->power_desc,
for (i = 0; i < axp_data->num_irq_names; i++) {
irq = platform_get_irq_byname(pdev, axp_data->irq_names[i]);
axp_data->irq_names[i], ret);
static const struct axp_data axp209_data = {
static const struct axp_data axp221_data = {
static const struct axp_data axp717_data = {
static const struct axp_data axp813_data = {
axp20x_batt->data = (struct axp_data *)of_device_get_match_data(dev);
const struct axp_data *data;
ret = axp_data->axp20x_cfg_adc_reg(power);
axp_data->power_desc,
for (i = 0; i < axp_data->num_irq_names; i++) {
irq = platform_get_irq_byname(pdev, axp_data->irq_names[i]);
axp_data->irq_names[i], ret);
if (power->axp_data->vbus_needs_polling && !power->online)
if (v < power->axp_data->curr_lim_table_size)
val->intval = power->axp_data->curr_lim_table[v];
val->intval = power->axp_data->curr_lim_table[
power->axp_data->curr_lim_table_size - 1];
const unsigned int max = power->axp_data->curr_lim_table_size;
if (power->axp_data->curr_lim_table[reg] <= intval)
reg, power->axp_data->curr_lim_table[reg], intval);
static const struct axp_data axp192_data = {
static const struct axp_data axp202_data = {
static const struct axp_data axp221_data = {
static const struct axp_data axp223_data = {
static const struct axp_data axp717_data = {
static const struct axp_data axp813_data = {
const struct axp_data *axp_data;
const struct axp_data *axp_data;
axp_data = of_device_get_match_data(&pdev->dev);
struct_size(power, irqs, axp_data->num_irq_names),
power->axp_data = axp_data;
power->num_irqs = axp_data->num_irq_names;
axp_data->curr_lim_fld);
axp_data->vbus_valid_bit,
axp_data->vbus_mon_bit,
axp_data->usb_bc_en_bit,
axp_data->usb_bc_det_fld,
axp_data->vbus_disable_bit,
axp_data->axp20x_read_vbus);
ret = axp_data->axp20x_cfg_iio_chan(pdev, power);