regulator: s5m8767: Define symbol for buck control mask
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 10 Dec 2013 09:09:42 +0000 (10:09 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 11 Dec 2013 22:47:45 +0000 (22:47 +0000)
commit79b53d199b83a44811cd57091751ef122351ae85
tree045219e3a218c67574b66787fc974497e956784f
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
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>
drivers/regulator/s5m8767.c
include/linux/mfd/samsung/s5m8767.h