From: Aaro Koskinen Date: Sat, 28 Mar 2015 20:45:37 +0000 (+0200) Subject: mfd: menelaus: Use macro for magic number X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dfe514b67a05edc14a7aa0579d1ab2378fa9e4c5;p=linux-beck.git mfd: menelaus: Use macro for magic number Use macro to check a register bit. Signed-off-by: Aaro Koskinen Signed-off-by: Lee Jones --- 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;