diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-10-27 06:45:06 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-27 14:18:21 -0400 |
commit | bf2753755fe0f6b77f73636a2fe3f39a84ab1ca8 (patch) | |
tree | 7042811983b70a90be0ed8438bb26c35bf64412a /drivers/regulator | |
parent | 5356e0da49e61e0de29a5f61996be66e97425217 (diff) |
regulator: max77802: fix a test in max77802_set_suspend_mode()
The original test triggers a static checker warning. Javier Martinez
Canillas says that the "!" is a typo and should be removed.
Fixes: 2e0eaa1aa008 ('regulator: max77802: Add set suspend mode for BUCKs and simplify code')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/max77802.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77802.c b/drivers/regulator/max77802.c index 5839c4509e1f..7718c8aa0d7c 100644 --- a/drivers/regulator/max77802.c +++ b/drivers/regulator/max77802.c | |||
@@ -179,7 +179,7 @@ static int max77802_set_suspend_mode(struct regulator_dev *rdev, | |||
179 | * If the regulator has been disabled for suspend | 179 | * If the regulator has been disabled for suspend |
180 | * then is invalid to try setting a suspend mode. | 180 | * then is invalid to try setting a suspend mode. |
181 | */ | 181 | */ |
182 | if (!max77802->opmode[id] == MAX77802_OFF_PWRREQ) { | 182 | if (max77802->opmode[id] == MAX77802_OFF_PWRREQ) { |
183 | dev_warn(&rdev->dev, "%s: is disabled, mode: 0x%x not set\n", | 183 | dev_warn(&rdev->dev, "%s: is disabled, mode: 0x%x not set\n", |
184 | rdev->desc->name, mode); | 184 | rdev->desc->name, mode); |
185 | return 0; | 185 | return 0; |