diff options
author | Aaro Koskinen | 2015-03-28 22:45:37 +0200 |
---|---|---|
committer | Lee Jones | 2015-03-30 10:06:55 +0100 |
commit | dfe514b67a05edc14a7aa0579d1ab2378fa9e4c5 (patch) | |
tree | 7f0882f4a8cebf3a6fade365cedf8a96fd45e40e /drivers | |
parent | 1ea8684e1e0d7453f65a1ed69c2d0b890bfb9e33 (diff) |
mfd: menelaus: Use macro for magic number
Use macro to check a register bit.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/menelaus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/menelaus.c b/drivers/mfd/menelaus.c index 2b2dc1f6d2ca..3ac36f5ccd3e 100644 --- a/drivers/mfd/menelaus.c +++ b/drivers/mfd/menelaus.c @@ -1216,7 +1216,7 @@ static int menelaus_probe(struct i2c_client *client, err = menelaus_read_reg(MENELAUS_VCORE_CTRL1); if (err < 0) goto fail; - if (err & BIT(7)) + if (err & VCORE_CTRL1_HW_NSW) menelaus->vcore_hw_mode = 1; else menelaus->vcore_hw_mode = 0; |