Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318455
b: refs/heads/master
c: 6a7b36a
h: refs/heads/master
i:
  318453: 7e19527
  318451: 28a010e
  318447: b405c21
v: v3
  • Loading branch information
Chandrabhanu Mahapatra authored and Linus Walleij committed Jul 17, 2012
1 parent 246a1b3 commit 3f182f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 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: 346720130aa49e1b711c0900e98fd12f4de972b0
refs/heads/master: 6a7b36aa4b0afbe7a9798feac16de47ad856f358
11 changes: 6 additions & 5 deletions trunk/drivers/gpio/gpio-pca953x.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ static void pca953x_irq_teardown(struct pca953x_chip *chip)
* WARNING: This is DEPRECATED and will be removed eventually!
*/
static void
pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)
pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, u32 *invert)
{
struct device_node *node;
const __be32 *val;
Expand Down Expand Up @@ -596,13 +596,13 @@ pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)
}
#else
static void
pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)
pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, u32 *invert)
{
*gpio_base = -1;
}
#endif

static int __devinit device_pca953x_init(struct pca953x_chip *chip, int invert)
static int __devinit device_pca953x_init(struct pca953x_chip *chip, u32 invert)
{
int ret;

Expand All @@ -621,7 +621,7 @@ static int __devinit device_pca953x_init(struct pca953x_chip *chip, int invert)
return ret;
}

static int __devinit device_pca957x_init(struct pca953x_chip *chip, int invert)
static int __devinit device_pca957x_init(struct pca953x_chip *chip, u32 invert)
{
int ret;
u32 val = 0;
Expand Down Expand Up @@ -657,8 +657,9 @@ static int __devinit pca953x_probe(struct i2c_client *client,
{
struct pca953x_platform_data *pdata;
struct pca953x_chip *chip;
int irq_base=0, invert=0;
int irq_base = 0;
int ret;
u32 invert = 0;

chip = kzalloc(sizeof(struct pca953x_chip), GFP_KERNEL);
if (chip == NULL)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/i2c/pca953x.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct pca953x_platform_data {
unsigned gpio_base;

/* initial polarity inversion setting */
uint16_t invert;
u32 invert;

/* interrupt base */
int irq_base;
Expand Down

0 comments on commit 3f182f4

Please sign in to comment.