Searched refs:ibat_adc_msb (Results 1 – 1 of 1) sorted by relevance
521 int ibat_adc_lsb, ibat_adc_msb; in bq25980_get_ibat_adc() local524 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() local590 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()