static void __ds2746_acr_update(struct battery_type *battery, int capacity_01p) { printk(DRIVER_ZONE " acr update: P=%d, C=%d.\n", capacity_01p, battery->charge_counter_adc); ds2746_i2c_write_u8((battery->charge_counter_adc & 0xFF00) >> 8, 0x10); ds2746_i2c_write_u8((battery->charge_counter_adc & 0x00FF), 0x11); if (battery->is_power_on_reset) { __ds2746_clear_porf(); } }
static void __ds2746_acr_update(struct battery_type *battery, int capacity_01p) { #if HTC_ENABLE_POWER_DEBUG printk(DRIVER_ZONE " acr update: P=%d, C=%d.\n", capacity_01p, battery->charge_counter_adc); #endif ds2746_i2c_write_u8((battery->charge_counter_adc & 0xFF00) >> 8, 0x10); ds2746_i2c_write_u8((battery->charge_counter_adc & 0x00FF), 0x11); if (battery->is_prediction) { __ds2746_clear_porf(); } }