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>
This commit is contained in:
Mark Brown
2009-10-01 15:41:05 +01:00
committed by Samuel Ortiz
parent 894362f531
commit 6f2ecaae72
3 changed files with 6 additions and 3 deletions

View File

@@ -253,6 +253,8 @@ struct wm831x {
unsigned int irq_base;
int irq_masks[5];
int num_gpio;
struct mutex auxadc_lock;
/* The WM831x has a security key blocking access to certain