diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-04-07 20:38:44 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-04-16 14:21:23 +0200 |
commit | 0521701c8d10f832a401cc7ebfa92bb73782d792 (patch) | |
tree | b06172322abaa70071a85c5ea16a94243cf746b6 /drivers | |
parent | d3da29b628a86777d25c741c44b8af35f10020a0 (diff) | |
download | linux-0521701c8d10f832a401cc7ebfa92bb73782d792.tar.bz2 |
pinctrl: mcp23s08: Drop unused parameter in mcp23s08_probe_one()
The cs parameter in mcp23s08_probe_one() is never used. Drop it for good.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200407173849.43628-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pinctrl/pinctrl-mcp23s08.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinctrl-mcp23s08.c b/drivers/pinctrl/pinctrl-mcp23s08.c index 30a5b6bfbb86..513864c74860 100644 --- a/drivers/pinctrl/pinctrl-mcp23s08.c +++ b/drivers/pinctrl/pinctrl-mcp23s08.c @@ -581,7 +581,7 @@ static int mcp23s08_irqchip_setup(struct mcp23s08 *mcp) static int mcp23s08_probe_one(struct mcp23s08 *mcp, struct device *dev, unsigned int addr, unsigned int type, - unsigned int base, int cs) + unsigned int base) { int status, ret; bool mirror = false; @@ -741,7 +741,7 @@ static int mcp230xx_probe(struct i2c_client *client, mcp->pinctrl_desc.name = "mcp23xxx-pinctrl"; - status = mcp23s08_probe_one(mcp, dev, client->addr, type, -1, 0); + status = mcp23s08_probe_one(mcp, dev, client->addr, type, -1); if (status) return status; @@ -1009,7 +1009,7 @@ static int mcp23s08_probe(struct spi_device *spi) if (!data->mcp[addr]->pinctrl_desc.name) return -ENOMEM; - status = mcp23s08_probe_one(data->mcp[addr], dev, 0x40 | (addr << 1), type, -1, addr); + status = mcp23s08_probe_one(data->mcp[addr], dev, 0x40 | (addr << 1), type, -1); if (status < 0) return status; |