Lines Matching refs:rfield
117 struct regmap_field *rfield[MAX77976_N_REGMAP_FIELDS]; member
129 err = regmap_field_read(chg->rfield[CHG_DTLS], ®val); in max77976_get_status()
167 err = regmap_field_read(chg->rfield[CHG_DTLS], ®val); in max77976_get_charge_type()
205 err = regmap_field_read(chg->rfield[BAT_DTLS], ®val); in max77976_get_health()
239 err = regmap_field_read(chg->rfield[CHGIN_OK], ®val); in max77976_get_online()
255 err = regmap_field_read(chg->rfield[fidx], ®val); in max77976_get_integer()
272 return regmap_field_write(chg->rfield[fidx], regval); in max77976_set_integer()
405 err = regmap_field_read(chg->rfield[VERSION], &ver); in max77976_detect()
407 err = regmap_field_read(chg->rfield[REVISION], &rev); in max77976_detect()
422 err = regmap_field_write(chg->rfield[CHGPROT], 0x3); in max77976_configure()
430 err = regmap_field_write(chg->rfield[MODE], MAX77976_MODE_CHARGER_BUCK); in max77976_configure()
463 chg->rfield[i] = devm_regmap_field_alloc(dev, chg->regmap, in max77976_probe()
465 if (IS_ERR(chg->rfield[i])) in max77976_probe()
466 return dev_err_probe(dev, PTR_ERR(chg->rfield[i]), in max77976_probe()