Lines Matching refs:da9052
167 struct da9052 *da9052; member
193 ret = da9052_reg_read(bat->da9052, DA9052_ICHG_END_REG); in da9052_read_chgend_current()
209 ret = da9052_reg_read(bat->da9052, DA9052_ICHG_AV_REG); in da9052_read_chg_current()
233 ret = da9052_group_read(bat->da9052, DA9052_STATUS_A_REG, 2, v); in da9052_bat_check_status()
289 volt = da9052_adc_manual_read(bat->da9052, DA9052_ADC_MAN_MUXSEL_VBAT); in da9052_bat_read_volt()
302 bat_temp = da9052_adc_read_temp(bat->da9052); in da9052_bat_check_presence()
370 adc_temp = da9052_adc_read_temp(bat->da9052); in da9052_bat_read_capacity()
441 virq = regmap_irq_get_virq(bat->da9052->irq_data, irq); in da9052_bat_irq()
470 ret = da9052_reg_read(bat->da9052, DA9052_CHGBUCK_REG); in da9052_USB_current_notifier()
474 if (bat->da9052->chip_id == DA9052) in da9052_USB_current_notifier()
488 return da9052_reg_update(bat->da9052, DA9052_ISET_REG, in da9052_USB_current_notifier()
534 val->intval = da9052_adc_read_temp(bat->da9052); in da9052_bat_get_property()
600 bat->da9052 = dev_get_drvdata(pdev->dev.parent); in da9052_bat_probe()
606 pdata = bat->da9052->dev->platform_data; in da9052_bat_probe()
613 ret = da9052_request_irq(bat->da9052, in da9052_bat_probe()
618 dev_err(bat->da9052->dev, in da9052_bat_probe()
636 da9052_free_irq(bat->da9052, da9052_bat_irq_bits[i], bat); in da9052_bat_probe()
646 da9052_free_irq(bat->da9052, da9052_bat_irq_bits[i], bat); in da9052_bat_remove()