Skip to content

Commit

Permalink
regulator: fix typo in current units
Browse files Browse the repository at this point in the history
This patch fixes a typo that incorrectly reports mA numbers as uA.

Signed-off-by: Cyril Chemparathy <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
  • Loading branch information
cchemparathy authored and Liam Girdwood committed Oct 2, 2010
1 parent ad7725c commit e4a6376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ static void print_constraints(struct regulator_dev *rdev)
constraints->min_uA != constraints->max_uA) {
ret = _regulator_get_current_limit(rdev);
if (ret > 0)
count += sprintf(buf + count, "at %d uA ", ret / 1000);
count += sprintf(buf + count, "at %d mA ", ret / 1000);
}

if (constraints->valid_modes_mask & REGULATOR_MODE_FAST)
Expand Down

0 comments on commit e4a6376

Please sign in to comment.