Home
last modified time | relevance | path

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

/linux/drivers/power/supply/
H A Dbq25980_charger.c521 int ibat_adc_lsb, ibat_adc_msb; in bq25980_get_ibat_adc() local
524 ret = regmap_read(bq->regmap, BQ25980_IBAT_ADC_MSB, &ibat_adc_msb); in bq25980_get_ibat_adc()
532 ibat_adc = (ibat_adc_msb << 8) | ibat_adc_lsb; in bq25980_get_ibat_adc()
534 if (ibat_adc_msb & BQ25980_ADC_POLARITY_BIT) in bq25980_get_ibat_adc()
567 unsigned int ibat_adc_msb; in bq25980_get_state() local
590 ret = regmap_read(bq->regmap, BQ25980_IBAT_ADC_MSB, &ibat_adc_msb); in bq25980_get_state()
594 state->dischg = ibat_adc_msb & BQ25980_ADC_POLARITY_BIT; in bq25980_get_state()