diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2013-12-10 04:09:42 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-11 17:47:45 -0500 |
commit | 79b53d199b83a44811cd57091751ef122351ae85 (patch) | |
tree | 045219e3a218c67574b66787fc974497e956784f /include | |
parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) |
regulator: s5m8767: Define symbol for buck control mask
Replace hard-coded value for mask used in BUCKX_CTRL registers (for
BUCKX_EN field) with a symbol. This also removes two local variables.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/samsung/s5m8767.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mfd/samsung/s5m8767.h b/include/linux/mfd/samsung/s5m8767.h index 306a95fc558c..9198377ee859 100644 --- a/include/linux/mfd/samsung/s5m8767.h +++ b/include/linux/mfd/samsung/s5m8767.h | |||
@@ -183,6 +183,7 @@ enum s5m8767_regulators { | |||
183 | S5M8767_REG_MAX, | 183 | S5M8767_REG_MAX, |
184 | }; | 184 | }; |
185 | 185 | ||
186 | #define S5M8767_ENCTRL_SHIFT 6 | 186 | #define S5M8767_ENCTRL_SHIFT 6 |
187 | #define S5M8767_ENCTRL_MASK (0x3 << S5M8767_ENCTRL_SHIFT) | ||
187 | 188 | ||
188 | #endif /* __LINUX_MFD_S5M8767_H */ | 189 | #endif /* __LINUX_MFD_S5M8767_H */ |