diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2013-12-10 10:09:42 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-11 22:47:45 +0000 |
commit | 79b53d199b83a44811cd57091751ef122351ae85 (patch) | |
tree | 045219e3a218c67574b66787fc974497e956784f /include/linux/mfd | |
parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) | |
download | linux-stable-79b53d199b83a44811cd57091751ef122351ae85.tar.gz linux-stable-79b53d199b83a44811cd57091751ef122351ae85.tar.bz2 linux-stable-79b53d199b83a44811cd57091751ef122351ae85.zip |
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/linux/mfd')
-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 { S5M8767_REG_MAX, }; -#define S5M8767_ENCTRL_SHIFT 6 +#define S5M8767_ENCTRL_SHIFT 6 +#define S5M8767_ENCTRL_MASK (0x3 << S5M8767_ENCTRL_SHIFT) #endif /* __LINUX_MFD_S5M8767_H */ |