Lines Matching refs:act8865
144 struct act8865 { struct
578 struct act8865 *act8865; in act8865_power_off() local
580 act8865 = i2c_get_clientdata(act8865_i2c_client); in act8865_power_off()
581 regmap_write(act8865->regmap, act8865->off_reg, act8865->off_mask); in act8865_power_off()
661 struct act8865 *act8865; in act8865_pmic_probe() local
714 act8865 = devm_kzalloc(dev, sizeof(struct act8865), GFP_KERNEL); in act8865_pmic_probe()
715 if (!act8865) in act8865_pmic_probe()
718 act8865->regmap = devm_regmap_init_i2c(client, regmap_config); in act8865_pmic_probe()
719 if (IS_ERR(act8865->regmap)) { in act8865_pmic_probe()
720 ret = PTR_ERR(act8865->regmap); in act8865_pmic_probe()
728 act8865->off_reg = off_reg; in act8865_pmic_probe()
729 act8865->off_mask = off_mask; in act8865_pmic_probe()
743 config.driver_data = act8865; in act8865_pmic_probe()
744 config.regmap = act8865->regmap; in act8865_pmic_probe()
764 ret = act8600_charger_probe(dev, act8865->regmap); in act8865_pmic_probe()
772 i2c_set_clientdata(client, act8865); in act8865_pmic_probe()
775 return type != ACT8865 ? 0 : regmap_write(act8865->regmap, in act8865_pmic_probe()