diff options
Diffstat (limited to 'drivers/regulator/virtual.c')
-rw-r--r-- | drivers/regulator/virtual.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/regulator/virtual.c b/drivers/regulator/virtual.c index 3d08348584e1..71403fa3ffa1 100644 --- a/drivers/regulator/virtual.c +++ b/drivers/regulator/virtual.c | |||
@@ -230,13 +230,13 @@ static ssize_t set_mode(struct device *dev, struct device_attribute *attr, | |||
230 | * sysfs_streq() doesn't need the \n's, but we add them so the strings | 230 | * sysfs_streq() doesn't need the \n's, but we add them so the strings |
231 | * will be shared with show_mode(), above. | 231 | * will be shared with show_mode(), above. |
232 | */ | 232 | */ |
233 | if (sysfs_streq(buf, "fast\n") == 0) | 233 | if (sysfs_streq(buf, "fast\n")) |
234 | mode = REGULATOR_MODE_FAST; | 234 | mode = REGULATOR_MODE_FAST; |
235 | else if (sysfs_streq(buf, "normal\n") == 0) | 235 | else if (sysfs_streq(buf, "normal\n")) |
236 | mode = REGULATOR_MODE_NORMAL; | 236 | mode = REGULATOR_MODE_NORMAL; |
237 | else if (sysfs_streq(buf, "idle\n") == 0) | 237 | else if (sysfs_streq(buf, "idle\n")) |
238 | mode = REGULATOR_MODE_IDLE; | 238 | mode = REGULATOR_MODE_IDLE; |
239 | else if (sysfs_streq(buf, "standby\n") == 0) | 239 | else if (sysfs_streq(buf, "standby\n")) |
240 | mode = REGULATOR_MODE_STANDBY; | 240 | mode = REGULATOR_MODE_STANDBY; |
241 | else { | 241 | else { |
242 | dev_err(dev, "Configuring invalid mode\n"); | 242 | dev_err(dev, "Configuring invalid mode\n"); |