Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: Add platform data to support multiple WM831x devices per board

If a system contains multiple WM831x devices we need to pass a device
number through to the MFD so that we use unique device IDs when we
instantiate child devices. In order to get support for this into 2.6.39
add some platform data to support the configuration, but no implementation
as yet.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Mark Brown and committed by
Samuel Ortiz
93619c21 d664f200

+3
+3
include/linux/mfd/wm831x/pdata.h
··· 104 104 #define WM831X_MAX_ISINK 2 105 105 106 106 struct wm831x_pdata { 107 + /** Used to distinguish multiple WM831x chips */ 108 + int wm831x_num; 109 + 107 110 /** Called before subdevices are set up */ 108 111 int (*pre_init)(struct wm831x *wm831x); 109 112 /** Called after subdevices are set up */