Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312484
b: refs/heads/master
c: 1beaf76
h: refs/heads/master
v: v3
  • Loading branch information
Krystian Garbaciak authored and Mark Brown committed Jul 12, 2012
1 parent efa0bbe commit 8a165bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 03ffcf3d0838bd5e693cd4520becfb22577cf34d
refs/heads/master: 1beaf762b4ad5f53876f790bb6cfbd3bac072985
5 changes: 4 additions & 1 deletion trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ static ssize_t regulator_status_show(struct device *dev,
case REGULATOR_STATUS_STANDBY:
label = "standby";
break;
case REGULATOR_STATUS_UNDEFINED:
label = "undefined";
break;
default:
return -ERANGE;
}
Expand Down Expand Up @@ -2897,7 +2900,7 @@ int regulator_mode_to_status(unsigned int mode)
case REGULATOR_MODE_STANDBY:
return REGULATOR_STATUS_STANDBY;
default:
return 0;
return REGULATOR_STATUS_UNDEFINED;
}
}
EXPORT_SYMBOL_GPL(regulator_mode_to_status);
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/regulator/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ enum regulator_status {
REGULATOR_STATUS_NORMAL,
REGULATOR_STATUS_IDLE,
REGULATOR_STATUS_STANDBY,
/* in case that any other status doesn't apply */
REGULATOR_STATUS_UNDEFINED,
};

/**
Expand Down

0 comments on commit 8a165bd

Please sign in to comment.