From: Joshua Crofts <crofts@kernel.org>
To: Sanjay Chitroda via B4 Relay
<devnull+sanjayembeddedse.gmail.com@kernel.org>
Cc: sanjayembeddedse@gmail.com, "Jiri Kosina" <jikos@kernel.org>,
"Jonathan Cameron" <jic23@kernel.org>,
"Srinivas Pandruvada" <srinivas.pandruvada@linux.intel.com>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
linux-input@vger.kernel.org, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/5] iio: Remove redundant probe error messages for HID device drivers
Date: Thu, 5 Nov 2026 14:40:36 +0100 [thread overview]
Message-ID: <20261105144036.00002e1e@kernel.org> (raw)
In-Reply-To: <20261105-19-oct-hid-iio-unified-print-framework-v1-1-0b360d9552d9@gmail.com>
On Thu, 05 Nov 2026 18:11:43 +0530
Sanjay Chitroda via B4 Relay <devnull+sanjayembeddedse.gmail.com@kernel.org> wrote:
...
> @@ -377,20 +377,16 @@ static int hid_accel_3d_probe(struct platform_device *pdev)
>
> ret = devm_hid_sensor_setup_trigger(dev, indio_dev, name,
> &accel_state->common_attributes);
> - if (ret < 0) {
> - dev_err(&pdev->dev, "trigger setup failed\n");
> + if (ret < 0)
You could also remove the comparison and just change the checks to `if (ret)`,
as devm_hid_sensor_setup_trigger() always returns zero on success.
> return ret;
> - }
>
> accel_state->callbacks.send_event = accel_3d_proc_event;
> accel_state->callbacks.capture_sample = accel_3d_capture_sample;
> accel_state->callbacks.pdev = pdev;
> ret = devm_sensor_hub_register_callback(dev, hsdev, hsdev->usage,
> &accel_state->callbacks);
> - if (ret < 0) {
> - dev_err(&pdev->dev, "callback reg failed\n");
> + if (ret < 0)
> return ret;
> - }
>
> return devm_iio_device_register(dev, indio_dev);
--
Kind regards,
Joshua Crofts
next prev parent reply other threads:[~2026-11-05 13:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 12:41 [PATCH 0/5] HID: iio: Unify probe-path logging Sanjay Chitroda via B4 Relay
2026-11-05 12:41 ` [PATCH 1/5] iio: Remove redundant probe error messages for HID device drivers Sanjay Chitroda via B4 Relay
2026-11-05 13:40 ` Joshua Crofts [this message]
2026-11-05 15:52 ` Joshua Crofts
2026-11-05 12:41 ` [PATCH 2/5] iio: Remove redundant devm_kmemdup() allocation failure messages Sanjay Chitroda via B4 Relay
2026-11-05 12:41 ` [PATCH 3/5] iio: magnetometer: hid-sensor-magn-3d: drop redundant probe error messages Sanjay Chitroda via B4 Relay
2026-11-05 12:41 ` [PATCH 4/5] iio: Use dev_err_probe() in HID IIO device drivers Sanjay Chitroda via B4 Relay
2026-11-05 12:41 ` [PATCH 5/5] iio: add probe error messages to hid humidity and temperature drivers Sanjay Chitroda via B4 Relay
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=20261105144036.00002e1e@kernel.org \
--to=crofts@kernel.org \
--cc=andy@kernel.org \
--cc=devnull+sanjayembeddedse.gmail.com@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=jikos@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=sanjayembeddedse@gmail.com \
--cc=srinivas.pandruvada@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox