summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-cy8c95x0.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-09-02 20:26:37 +0200
committerLinus Walleij <linus.walleij@linaro.org>2022-09-08 10:05:30 +0200
commit43dcf873d48d363d73fda0834c63d02ad177827e (patch)
tree69008cc42de4c7eb0da6fb3efab0a5148464d573 /drivers/pinctrl/pinctrl-cy8c95x0.c
parentpinctrl: cy8c95x0: Allow IRQ chip core to handle numbering (diff)
downloadlinux-43dcf873d48d363d73fda0834c63d02ad177827e.tar.xz
linux-43dcf873d48d363d73fda0834c63d02ad177827e.zip
pinctrl: cy8c95x0: Fix return value in cy8c95x0_detect()
It's an obvious typo in never tested piece of code that successful detection shouldn't fail. Fix that. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Tested-by: Patrick Rudolph <patrick.rudolph@9elements.com> Link: https://lore.kernel.org/r/20220902182650.83098-4-andriy.shevchenko@linux.intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-cy8c95x0.c')
-rw-r--r--drivers/pinctrl/pinctrl-cy8c95x0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-cy8c95x0.c b/drivers/pinctrl/pinctrl-cy8c95x0.c
index 529664894e20..2e46446c05ff 100644
--- a/drivers/pinctrl/pinctrl-cy8c95x0.c
+++ b/drivers/pinctrl/pinctrl-cy8c95x0.c
@@ -1266,7 +1266,7 @@ static int cy8c95x0_detect(struct i2c_client *client,
dev_info(&client->dev, "Found a %s chip at 0x%02x.\n", name, client->addr);
strscpy(info->type, name, I2C_NAME_SIZE);
- return -ENODEV;
+ return 0;
}
static int cy8c95x0_probe(struct i2c_client *client)