optimization: moving charge_ from SMPS and Dicharger to AnalogInputs