Commit 43dcf873 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Walleij

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: default avatarPatrick Rudolph <patrick.rudolph@9elements.com>
Link: https://lore.kernel.org/r/20220902182650.83098-4-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ad3d55aa
...@@ -1266,7 +1266,7 @@ static int cy8c95x0_detect(struct i2c_client *client, ...@@ -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); dev_info(&client->dev, "Found a %s chip at 0x%02x.\n", name, client->addr);
strscpy(info->type, name, I2C_NAME_SIZE); strscpy(info->type, name, I2C_NAME_SIZE);
return -ENODEV; return 0;
} }
static int cy8c95x0_probe(struct i2c_client *client) static int cy8c95x0_probe(struct i2c_client *client)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment