From 0f2aa6e25de6fe8595bef17a16cc16e2f5fad3e0 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 15 Jan 2009 16:13:01 -0800 Subject: [PATCH] --- yaml --- r: 140239 b: refs/heads/master c: 9485397aa2195e82da6373586a66689526675ad4 h: refs/heads/master i: 140237: 3f28fc162b13927749261ea2e81f2d4211040a21 140235: bf1f66ababba541b34bb3188555794882676091a 140231: 4f5767042f4a44802caeb48e9a02830c0d7c4d87 140223: 72b1deb9f281e0fae646edbd302fc4e357951d67 v: v3 --- [refs] | 2 +- trunk/drivers/regulator/virtual.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 4601c60b1b98..379473a8b8c7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 853116a10544206b6b2cf42ebc9d78fba2668888 +refs/heads/master: 9485397aa2195e82da6373586a66689526675ad4 diff --git a/trunk/drivers/regulator/virtual.c b/trunk/drivers/regulator/virtual.c index a38d42bc8f8f..45ebbc22f470 100644 --- a/trunk/drivers/regulator/virtual.c +++ b/trunk/drivers/regulator/virtual.c @@ -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)