ARM: ux500: regulators: Add mask for configuration
authorLee Jones <lee.jones@linaro.org>
Thu, 21 Mar 2013 15:59:01 +0000 (15:59 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 22 Mar 2013 11:03:16 +0000 (12:03 +0100)
commit3c1b8438d4bc99269aba560739e3e6cb640584f4
tree5600247d4c4943ec15b27bf4df52ca6ed8426c12
parent7ce4669c8feefe0c772e9d5f3ae65160e20d8458
ARM: ux500: regulators: Add mask for configuration

There is already before a register mask in the regulator driver
to allow some bits of a register to be initialized. The register
value is defined in the board configuration. This patch puts a
mask in the board configuration to specify which bits should
actually be altered. The purpose with this patch is to avoid
future mistakes when updating the allowed bits in the regulator
driver.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
arch/arm/mach-ux500/board-mop500-regulators.c
drivers/regulator/ab8500.c
include/linux/regulator/ab8500.h