aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/wm831x
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-10-01 10:41:05 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2009-12-13 13:20:43 -0500
commit6f2ecaae72910211034c4f1955da97b2ff994265 (patch)
tree68d7217dd24f72deeb40e733e0f9f29aecdfde49 /include/linux/mfd/wm831x
parent894362f53164f93d609559e196378b4d0710c2dd (diff)
gpiolib: Make WM831x GPIO count dynamic
This supports future devices with fewer GPIOs. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/wm831x')
-rw-r--r--include/linux/mfd/wm831x/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/wm831x/core.h b/include/linux/mfd/wm831x/core.h
index 91eb493bf14c..c1bc59f6cbf2 100644
--- a/include/linux/mfd/wm831x/core.h
+++ b/include/linux/mfd/wm831x/core.h
@@ -253,6 +253,8 @@ struct wm831x {
253 unsigned int irq_base; 253 unsigned int irq_base;
254 int irq_masks[5]; 254 int irq_masks[5];
255 255
256 int num_gpio;
257
256 struct mutex auxadc_lock; 258 struct mutex auxadc_lock;
257 259
258 /* The WM831x has a security key blocking access to certain 260 /* The WM831x has a security key blocking access to certain