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)