diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-06-10 14:28:10 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-22 07:23:22 -0400 |
commit | 1df5981b82d9eabdd6e66d1d9514164c02329345 (patch) | |
tree | c5fc2653d70a884d42957b2c7bc0c8cd49d8b895 /drivers/mfd/Kconfig | |
parent | bd20eb541ebbb17a5e047cd20e74b9ccf19a4123 (diff) |
mfd: Convert WM831x to use regmap API
Factor out the register read/write code to use the register map API. We
still need some wm831x specific code and locking in place to check that
the user key is handled correctly but only on the write side, reads are
not affected by the key.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/Kconfig')
-rw-r--r-- | drivers/mfd/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index 21574bdf485..cfae5c594d2 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig | |||
@@ -404,6 +404,7 @@ config MFD_WM831X_I2C | |||
404 | bool "Support Wolfson Microelectronics WM831x/2x PMICs with I2C" | 404 | bool "Support Wolfson Microelectronics WM831x/2x PMICs with I2C" |
405 | select MFD_CORE | 405 | select MFD_CORE |
406 | select MFD_WM831X | 406 | select MFD_WM831X |
407 | select REGMAP_I2C | ||
407 | depends on I2C=y && GENERIC_HARDIRQS | 408 | depends on I2C=y && GENERIC_HARDIRQS |
408 | help | 409 | help |
409 | Support for the Wolfson Microelecronics WM831x and WM832x PMICs | 410 | Support for the Wolfson Microelecronics WM831x and WM832x PMICs |
@@ -415,6 +416,7 @@ config MFD_WM831X_SPI | |||
415 | bool "Support Wolfson Microelectronics WM831x/2x PMICs with SPI" | 416 | bool "Support Wolfson Microelectronics WM831x/2x PMICs with SPI" |
416 | select MFD_CORE | 417 | select MFD_CORE |
417 | select MFD_WM831X | 418 | select MFD_WM831X |
419 | select REGMAP_SPI | ||
418 | depends on SPI_MASTER && GENERIC_HARDIRQS | 420 | depends on SPI_MASTER && GENERIC_HARDIRQS |
419 | help | 421 | help |
420 | Support for the Wolfson Microelecronics WM831x and WM832x PMICs | 422 | Support for the Wolfson Microelecronics WM831x and WM832x PMICs |