From: Will Newton Date: Thu, 1 May 2008 11:35:10 +0000 (-0700) Subject: gpio: pca953x: add support for pca9555 I2C I/O expander X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f39e578172f30d3bdd4533465c7ec00db738eb9d;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git gpio: pca953x: add support for pca9555 I2C I/O expander Add support for pca9555 I2C I/O expander. As the comment suggests this part is software compatible with the pca9539. Signed-off-by: Will Newton Cc: "eric miao" Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c index 5a99e81d278..93f916720b1 100644 --- a/drivers/gpio/pca953x.c +++ b/drivers/gpio/pca953x.c @@ -30,6 +30,8 @@ static const struct i2c_device_id pca953x_id[] = { { "pca9537", 4, }, { "pca9538", 8, }, { "pca9539", 16, }, + { "pca9555", 16, }, + { "pca9557", 8, }, /* REVISIT several pca955x parts should work here too */ { } }; @@ -193,7 +195,7 @@ static int __devinit pca953x_probe(struct i2c_client *client, { struct pca953x_platform_data *pdata; struct pca953x_chip *chip; - int ret, i; + int ret; pdata = client->dev.platform_data; if (pdata == NULL)