Skip to content

Commit

Permalink
mfd: menelaus: Use macro for magic number
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aaro Koskinen authored and Lee Jones committed Mar 30, 2015
1 parent 1ea8684 commit dfe514b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/menelaus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dfe514b

Please sign in to comment.