]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Provide platform data for WM831x GPIO configuration
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Apr 2011 02:04:42 +0000 (11:04 +0900)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 26 May 2011 17:45:18 +0000 (19:45 +0200)
commit17c2e08ef396e5b0ccbb04b8b1242d1b7707541e
tree1d7ee5b2bc74607c4d328e14c30692114fafe5f4
parent9da0ba40219ab6fbc83e3b930ed6d90313191d75
mfd: Provide platform data for WM831x GPIO configuration

Allow the GPIO mode of WM831x devices to be configured using platform data.
Users may provide a table of GPIO register values in gpio_defaults[]. In
order to allow 0 to be set explicitly out of range values are accepted and
masked off, with a WM831X_GPIO_CONFIGURE define provided to set an out of
range value.

This can be used to configure higher numbered GPIOs or override values set
in OTP for GPIOs configured using OTP.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm831x-core.c
include/linux/mfd/wm831x/pdata.h