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>
This commit is contained in:
parent
ad3d55aab4
commit
43dcf873d4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user