Commit 6a642509 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: qcom_rpm: Fix FORCE_MODE_IS_2_BITS macro

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: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent aad615c6
...@@ -50,7 +50,7 @@ struct rpm_reg_parts { ...@@ -50,7 +50,7 @@ struct rpm_reg_parts {
}; };
#define FORCE_MODE_IS_2_BITS(reg) \ #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_reg {
struct qcom_rpm *rpm; struct qcom_rpm *rpm;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment