Skip to content

Commit

Permalink
regulator: qcom_rpm: Fix FORCE_MODE_IS_2_BITS macro
Browse files Browse the repository at this point in the history
Current code does not take the macro parameter, fix it.
This is not a problem at this moment because the only user actually passes
vreg to FORCE_MODE_IS_2_BITS().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
AxelLin authored and broonie committed Sep 26, 2014
1 parent aad615c commit 6a64250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/qcom_rpm-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct rpm_reg_parts {
};

#define FORCE_MODE_IS_2_BITS(reg) \
((vreg->parts->fm.mask >> vreg->parts->fm.shift) == 3)
(((reg)->parts->fm.mask >> (reg)->parts->fm.shift) == 3)

struct qcom_rpm_reg {
struct qcom_rpm *rpm;
Expand Down

0 comments on commit 6a64250

Please sign in to comment.