diff options
| author | Axel Lin <axel.lin@ingics.com> | 2014-09-24 22:17:29 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2014-09-26 04:28:40 -0400 |
| commit | 6a642509801116037720892efe72f0e84f02f317 (patch) | |
| tree | 9313bd5503ec3de9e5cd014d32b9ba2e039bd943 | |
| parent | aad615c632681168e48b3cafd79e43f55f7be1cf (diff) | |
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>
| -rw-r--r-- | drivers/regulator/qcom_rpm-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c index 8d5969a8e874..b55cd5b50ebe 100644 --- a/drivers/regulator/qcom_rpm-regulator.c +++ b/drivers/regulator/qcom_rpm-regulator.c | |||
| @@ -50,7 +50,7 @@ struct rpm_reg_parts { | |||
| 50 | }; | 50 | }; |
| 51 | 51 | ||
| 52 | #define FORCE_MODE_IS_2_BITS(reg) \ | 52 | #define FORCE_MODE_IS_2_BITS(reg) \ |
| 53 | ((vreg->parts->fm.mask >> vreg->parts->fm.shift) == 3) | 53 | (((reg)->parts->fm.mask >> (reg)->parts->fm.shift) == 3) |
| 54 | 54 | ||
| 55 | struct qcom_rpm_reg { | 55 | struct qcom_rpm_reg { |
| 56 | struct qcom_rpm *rpm; | 56 | struct qcom_rpm *rpm; |
