Lines Matching full:ua
264 static int sgm4154x_set_ichrg_curr(struct sgm41542 *charger, int uA) in sgm4154x_set_ichrg_curr() argument
269 if (uA < SGM4154x_ICHRG_I_MIN_uA) in sgm4154x_set_ichrg_curr()
270 uA = SGM4154x_ICHRG_I_MIN_uA; in sgm4154x_set_ichrg_curr()
271 else if (uA > charger->ichg) in sgm4154x_set_ichrg_curr()
272 uA = uA > charger->ichg; in sgm4154x_set_ichrg_curr()
274 reg_val = uA / SGM4154x_ICHRG_I_STEP_uA; in sgm4154x_set_ichrg_curr()
286 static int sgm4154x_set_prechrg_curr(struct sgm41542 *charger, int uA) in sgm4154x_set_prechrg_curr() argument
291 if (uA < SGM4154x_PRECHRG_I_MIN_uA) in sgm4154x_set_prechrg_curr()
292 uA = SGM4154x_PRECHRG_I_MIN_uA; in sgm4154x_set_prechrg_curr()
293 else if (uA > SGM4154x_PRECHRG_I_MAX_uA) in sgm4154x_set_prechrg_curr()
294 uA = SGM4154x_PRECHRG_I_MAX_uA; in sgm4154x_set_prechrg_curr()
296 reg_val = (uA - SGM4154x_PRECHRG_I_MIN_uA) / SGM4154x_PRECHRG_CURRENT_STEP_uA; in sgm4154x_set_prechrg_curr()