Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140239
b: refs/heads/master
c: 9485397
h: refs/heads/master
i:
  140237: 3f28fc1
  140235: bf1f66a
  140231: 4f57670
  140223: 72b1deb
v: v3
  • Loading branch information
Andrew Morton authored and Liam Girdwood committed Mar 31, 2009
1 parent 8d5300d commit 0f2aa6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 853116a10544206b6b2cf42ebc9d78fba2668888
refs/heads/master: 9485397aa2195e82da6373586a66689526675ad4
4 changes: 4 additions & 0 deletions trunk/drivers/regulator/virtual.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ static ssize_t set_mode(struct device *dev, struct device_attribute *attr,
unsigned int mode;
int ret;

/*
* sysfs_streq() doesn't need the \n's, but we add them so the strings
* will be shared with show_mode(), above.
*/
if (sysfs_streq(buf, "fast\n") == 0)
mode = REGULATOR_MODE_FAST;
else if (sysfs_streq(buf, "normal\n") == 0)
Expand Down

0 comments on commit 0f2aa6e

Please sign in to comment.