Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Dbd99954-charger.c450 } state_fields[] = { in bd9995x_get_chip_state() local
463 for (i = 0; i < ARRAY_SIZE(state_fields); i++) { in bd9995x_get_chip_state()
464 ret = regmap_field_read(state_fields[i].id, &tmp); in bd9995x_get_chip_state()
468 *state_fields[i].data = tmp; in bd9995x_get_chip_state()
H A Dbq25890_charger.c789 } state_fields[] = { in bq25890_get_chip_state() local
800 for (i = 0; i < ARRAY_SIZE(state_fields); i++) { in bq25890_get_chip_state()
801 ret = bq25890_field_read(bq, state_fields[i].id); in bq25890_get_chip_state()
805 *state_fields[i].data = ret; in bq25890_get_chip_state()