All of lore.kernel.org
 help / color / mirror / Atom feed
From: Esben Haabendal <esben@geanix.com>
To: "Andy Shevchenko" <andriy.shevchenko@intel.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Nikita Travkin" <nikita@trvn.ru>,
	"Maslov Dmitry" <maslovdmitry@seeed.cc>,
	"Kuppuswamy Sathyanarayanan"
	<sathyanarayanan.kuppuswamy@linux.intel.com>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 5/6] iio: light: ltr501: Add ltr329 driver support
Date: Mon, 10 Aug 2026 08:17:59 +0200	[thread overview]
Message-ID: <875x1ixzvs.fsf@geanix.com> (raw)
In-Reply-To: <anePOQh3F2cWds1o@ashevche-desk.local> (Andy Shevchenko's message of "Sat, 08 Aug 2026 23:19:05 +0300")

"Andy Shevchenko" <andriy.shevchenko@intel.com> writes:

> On Fri, Aug 07, 2026 at 09:53:11AM +0200, Esben Haabendal wrote:
>> "Andy Shevchenko" <andriy.shevchenko@intel.com> writes:
>> > On Tue, Aug 04, 2026 at 07:02:16PM +0200, Esben Haabendal wrote:
>
> ...
>
>> >>  	if (client->irq > 0) {
>> >> +		if (!ltr501_has_irq_support(data->chip_info)) {
>> >> +			dev_err(&client->dev, "chip does not support irq\n");
>> >> +			ret = -EINVAL;
>> >
>> > Can this be
>> >
>> > 			ret = dev_err_probe(-EINVAL);
>>
>> Sure can, if that is the preferred style. But it will probably still be
>> two lines due to line width considerations.
>
> Even older kernels' checkpatch won't complain on that long line (as ending by
> a sting literal). But it's up to you.
>
>> And personally, as it would not take advantage of the -EPROBE_DEFER
>> logic of dev_err_probe(), I find the dev_err() style more clear.
>
> The point is to use the unified template for the probe error messages (that's
> why you may find a patch against dev_err_probe() documentation that allows this
> kind of use).

Ah, I missed that comment. Thanks.

I will update the patch.

>> >> +			goto powerdown_on_error;
>> >> +		}

/Esben

  reply	other threads:[~2026-08-10  6:18 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-04 17:02 [PATCH v3 0/6] iio: light: ltr501: Add ltr329 support Esben Haabendal
2026-08-04 17:02 ` [PATCH v3 1/6] dt-bindings: iio: light: ltr501: Sort compatible enum array Esben Haabendal
2026-08-05  7:14   ` Krzysztof Kozlowski
2026-08-04 17:02 ` [PATCH v3 2/6] dt-bindings: iio: light: ltr501: Add missing ltr303 compatible Esben Haabendal
2026-08-05  7:14   ` Krzysztof Kozlowski
2026-08-04 17:02 ` [PATCH v3 3/6] dt-bindings: iio: light: ltr501: Add ltr329 compatible Esben Haabendal
2026-08-04 17:16   ` sashiko-bot
2026-08-05  7:15   ` Krzysztof Kozlowski
2026-08-04 17:02 ` [PATCH v3 4/6] iio: light: ltr501: Power down chip if request irq fails Esben Haabendal
2026-08-04 17:36   ` sashiko-bot
2026-08-06 21:37   ` Andy Shevchenko
2026-08-07  7:32     ` Esben Haabendal
2026-08-04 17:02 ` [PATCH v3 5/6] iio: light: ltr501: Add ltr329 driver support Esben Haabendal
2026-08-04 17:59   ` sashiko-bot
2026-08-06 21:39   ` Andy Shevchenko
2026-08-07  7:53     ` Esben Haabendal
2026-08-08 20:19       ` Andy Shevchenko
2026-08-10  6:17         ` Esben Haabendal [this message]
2026-08-04 17:02 ` [PATCH v3 6/6] iio: light: ltr501: Fix sorting order of device arrays Esben Haabendal
2026-08-06 21:39   ` Andy Shevchenko
2026-08-07  7:57     ` Esben Haabendal
2026-08-08 20:21       ` Andy Shevchenko
2026-08-10  6:12         ` Esben Haabendal
2026-08-05 17:15 ` [PATCH v3 0/6] iio: light: ltr501: Add ltr329 support Kuppuswamy Sathyanarayanan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875x1ixzvs.fsf@geanix.com \
    --to=esben@geanix.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maslovdmitry@seeed.cc \
    --cc=nikita@trvn.ru \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    --cc=sathyanarayanan.kuppuswamy@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.