Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176021
b: refs/heads/master
c: 6f2ecaa
h: refs/heads/master
i:
  176019: e09395d
v: v3
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Dec 13, 2009
1 parent 2f08ee3 commit 6e07826
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 894362f53164f93d609559e196378b4d0710c2dd
refs/heads/master: 6f2ecaae72910211034c4f1955da97b2ff994265
4 changes: 1 addition & 3 deletions trunk/drivers/gpio/wm831x-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include <linux/mfd/wm831x/pdata.h>
#include <linux/mfd/wm831x/gpio.h>

#define WM831X_GPIO_MAX 16

struct wm831x_gpio {
struct wm831x *wm831x;
struct gpio_chip gpio_chip;
Expand Down Expand Up @@ -192,7 +190,7 @@ static int __devinit wm831x_gpio_probe(struct platform_device *pdev)

wm831x_gpio->wm831x = wm831x;
wm831x_gpio->gpio_chip = template_chip;
wm831x_gpio->gpio_chip.ngpio = WM831X_GPIO_MAX;
wm831x_gpio->gpio_chip.ngpio = wm831x->num_gpio;
wm831x_gpio->gpio_chip.dev = &pdev->dev;
if (pdata && pdata->gpio_base)
wm831x_gpio->gpio_chip.base = pdata->gpio_base;
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/mfd/wm831x-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1293,16 +1293,19 @@ static int wm831x_device_init(struct wm831x *wm831x, unsigned long id, int irq)
switch (ret) {
case WM8310:
parent = WM8310;
wm831x->num_gpio = 16;
dev_info(wm831x->dev, "WM8310 revision %c\n", 'A' + rev);
break;

case WM8311:
parent = WM8311;
wm831x->num_gpio = 16;
dev_info(wm831x->dev, "WM8311 revision %c\n", 'A' + rev);
break;

case WM8312:
parent = WM8312;
wm831x->num_gpio = 16;
dev_info(wm831x->dev, "WM8312 revision %c\n", 'A' + rev);
break;

Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/mfd/wm831x/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e07826

Please sign in to comment.