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: 2e0eaa1aa0
('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>
This commit is contained in:
parent
5356e0da49
commit
bf2753755f
|
@ -179,7 +179,7 @@ static int max77802_set_suspend_mode(struct regulator_dev *rdev,
|
|||
* If the regulator has been disabled for suspend
|
||||
* then is invalid to try setting a suspend mode.
|
||||
*/
|
||||
if (!max77802->opmode[id] == MAX77802_OFF_PWRREQ) {
|
||||
if (max77802->opmode[id] == MAX77802_OFF_PWRREQ) {
|
||||
dev_warn(&rdev->dev, "%s: is disabled, mode: 0x%x not set\n",
|
||||
rdev->desc->name, mode);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue