[PATCH 0/5] HID: iio: Unify probe-path logging

From: Sanjay Chitroda via B4 Relay

Date: Thu Nov 05 2026 - 07:48:26 EST


This series provides consistent support for logs in probe() path for
HID IIO drivers with suggestion and input from Jonathan.

This is followup series on top of multiple sub-series submitted for HID
IIO device drivers which included fixes, devm support, cleanup and using
preferred kernel coding style. This series adopts a common logging
approach throughout the HID IIO device drivers in probe path.

The result is more consistent error reporting and improved
maintainability across the HID IIO subsystem for following drivers:
find drivers/iio/ -name "*hid*.c"
drivers/iio/orientation/hid-sensor-rotation.c
drivers/iio/orientation/hid-sensor-incl-3d.c
drivers/iio/gyro/hid-sensor-gyro-3d.c
drivers/iio/pressure/hid-sensor-press.c
drivers/iio/temperature/hid-sensor-temperature.c
drivers/iio/common/hid-sensors/hid-sensor-trigger.c
drivers/iio/common/hid-sensors/hid-sensor-attributes.c
drivers/iio/humidity/hid-sensor-humidity.c
drivers/iio/light/hid-sensor-prox.c
drivers/iio/light/hid-sensor-als.c
drivers/iio/magnetometer/hid-sensor-magn-3d.c
drivers/iio/position/hid-sensor-custom-intel-hinge.c
drivers/iio/accel/hid-sensor-accel-3d.c

Additionally, I have kept changes specific to logical diff instead of
driver specific and covered all HID IIO device drivers.

Testing:
- Compiled with W=1 for each patch in series
PS:
- Sashiko reported an issue in a different driver and noted that it is not
introduced by this series. I have taken this feedback into account and
will address the actual issue in a separate series focus on that driver.

Signed-off-by: Sanjay Chitroda <sanjayembeddedse@xxxxxxxxx>
---
Sanjay Chitroda (5):
iio: Remove redundant probe error messages for HID device drivers
iio: Remove redundant devm_kmemdup() allocation failure messages
iio: magnetometer: hid-sensor-magn-3d: drop redundant probe error messages
iio: Use dev_err_probe() in HID IIO device drivers
iio: add probe error messages to hid humidity and temperature drivers

drivers/iio/accel/hid-sensor-accel-3d.c | 27 +++++---------
drivers/iio/gyro/hid-sensor-gyro-3d.c | 24 ++++---------
drivers/iio/humidity/hid-sensor-humidity.c | 4 +--
drivers/iio/light/hid-sensor-als.c | 20 ++++-------
drivers/iio/light/hid-sensor-prox.c | 20 ++++-------
drivers/iio/magnetometer/hid-sensor-magn-3d.c | 41 ++++++----------------
drivers/iio/orientation/hid-sensor-incl-3d.c | 24 ++++---------
drivers/iio/orientation/hid-sensor-rotation.c | 20 ++++-------
.../iio/position/hid-sensor-custom-intel-hinge.c | 20 ++++-------
drivers/iio/pressure/hid-sensor-press.c | 24 ++++---------
drivers/iio/temperature/hid-sensor-temperature.c | 4 +--
11 files changed, 69 insertions(+), 159 deletions(-)
---
base-commit: 20ce8ef9c9e04cd6c5ae0422e251a9b5936c6b7c
change-id: 20261019-19-oct-hid-iio-unified-print-framework-3c877471fc73

Best regards,
--
Sanjay Chitroda <sanjayembeddedse@xxxxxxxxx>