regulator: minor cleanup of virtual consumer
[linux-2.6-block.git] / drivers / regulator / virtual.c
index a38d42bc8f8f54e9772611ba47773d35ad35eb60..45ebbc22f470e4fdbdccd9a9c4906a0e3e562b8e 100644 (file)
@@ -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)