diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2022-06-29 19:04:20 +0200 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2022-07-19 09:57:13 +0200 |
commit | d274f02eb98be8ec1d13bb9d16493eb1711a3d37 (patch) | |
tree | 5ff8814c4f8261ad5d47f1aef49ac5440ffa45ce /drivers | |
parent | 91e9111bdd088993948f8c215a8a01acc67a7a86 (diff) | |
download | linux-stable-d274f02eb98be8ec1d13bb9d16493eb1711a3d37.tar.gz linux-stable-d274f02eb98be8ec1d13bb9d16493eb1711a3d37.tar.bz2 linux-stable-d274f02eb98be8ec1d13bb9d16493eb1711a3d37.zip |
gpio: pca9570: add pca9571 support
The PCA9571 very similar to the PCA9570, it only differs in the
number of GPIOs.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpio-pca9570.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-pca9570.c b/drivers/gpio/gpio-pca9570.c index cb2b2f735c15..ab2a652964ec 100644 --- a/drivers/gpio/gpio-pca9570.c +++ b/drivers/gpio/gpio-pca9570.c @@ -121,12 +121,14 @@ static int pca9570_probe(struct i2c_client *client) static const struct i2c_device_id pca9570_id_table[] = { { "pca9570", 4 }, + { "pca9571", 8 }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(i2c, pca9570_id_table); static const struct of_device_id pca9570_of_match_table[] = { { .compatible = "nxp,pca9570", .data = (void *)4 }, + { .compatible = "nxp,pca9571", .data = (void *)8 }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, pca9570_of_match_table); |