Re: [PATCH v3 2/3] Input: ili210x - convert to dev_err_probe()

From: Geert Uytterhoeven

Date: Thu Jan 15 2026 - 11:21:49 EST


Hi Marek,

On Thu, 15 Jan 2026 at 17:19, Marek Vasut
<marek.vasut+renesas@xxxxxxxxxxx> wrote:
> Simplify error return handling, use dev_err_probe() where possible.
> No functional change.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas@xxxxxxxxxxx>

Thanks for your patch!

> --- a/drivers/input/touchscreen/ili210x.c
> +++ b/drivers/input/touchscreen/ili210x.c
> @@ -942,15 +942,11 @@ static int ili210x_i2c_probe(struct i2c_client *client)
> chip = device_get_match_data(dev);
> if (!chip && id)
> chip = (const struct ili2xxx_chip *)id->driver_data;
> - if (!chip) {
> - dev_err(&client->dev, "unknown device model\n");
> - return -ENODEV;
> - }
> + if (!chip)
> + return dev_err_probe(&client->dev, -ENODEV, "unknown device model\n");
>
> - if (client->irq <= 0) {
> - dev_err(dev, "No IRQ!\n");
> - return -EINVAL;
> - }
> + if (client->irq <= 0)
> + dev_err_probe(dev, -EINVAL, "No IRQ!\n");

Missing return.


Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds