Browse Source

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: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Axel Lin 11 years ago
parent
commit
6a64250980
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/regulator/qcom_rpm-regulator.c

+ 1 - 1
drivers/regulator/qcom_rpm-regulator.c

@@ -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;