[PATCH 00/10] HID: iio: use local struct device

Sanjay Chitroda via B4 Relay posted 10 patches 4 days, 16 hours ago
drivers/iio/accel/hid-sensor-accel-3d.c            | 22 +++++------
drivers/iio/gyro/hid-sensor-gyro-3d.c              | 19 +++++-----
drivers/iio/humidity/hid-sensor-humidity.c         |  7 ++--
drivers/iio/light/hid-sensor-als.c                 | 15 ++++----
drivers/iio/light/hid-sensor-prox.c                | 15 ++++----
drivers/iio/magnetometer/hid-sensor-magn-3d.c      | 43 ++++++++++------------
drivers/iio/orientation/hid-sensor-incl-3d.c       | 20 +++++-----
drivers/iio/orientation/hid-sensor-rotation.c      | 24 ++++++------
.../iio/position/hid-sensor-custom-intel-hinge.c   | 17 +++++----
drivers/iio/pressure/hid-sensor-press.c            | 19 +++++-----
10 files changed, 100 insertions(+), 101 deletions(-)
[PATCH 00/10] HID: iio: use local struct device
Posted by Sanjay Chitroda via B4 Relay 4 days, 16 hours ago
Hi all,

Introduce a local struct device pointer derived from &pdev->dev.
This avoids repeated &pdev->dev usage and improves readability.

Prepratory series to convert all HID IIO driver to devm.

Testing:
  - Compiled with W=1 for each patch in series

---
Sanjay Chitroda (10):
      iio: humidity: hid-sensor-humidity: use local struct device
      iio: gyro: hid-sensor-gyro-3d: use local struct device
      iio: accel: hid-sensor-accel-3d: use local struct device
      iio: light: hid-sensor-als: use local struct device
      iio: light: hid-sensor-prox: use local struct device
      iio: magnetometer: hid-sensor-magn-3d: use local struct device
      iio: orientation: hid-sensor-incl-3d: use local struct device
      iio: orientation: hid-sensor-rotation: use local struct device
      iio: position: hid-sensor-custom-intel-hinge: use local struct device
      iio: pressure: hid-sensor-press: use local struct device

 drivers/iio/accel/hid-sensor-accel-3d.c            | 22 +++++------
 drivers/iio/gyro/hid-sensor-gyro-3d.c              | 19 +++++-----
 drivers/iio/humidity/hid-sensor-humidity.c         |  7 ++--
 drivers/iio/light/hid-sensor-als.c                 | 15 ++++----
 drivers/iio/light/hid-sensor-prox.c                | 15 ++++----
 drivers/iio/magnetometer/hid-sensor-magn-3d.c      | 43 ++++++++++------------
 drivers/iio/orientation/hid-sensor-incl-3d.c       | 20 +++++-----
 drivers/iio/orientation/hid-sensor-rotation.c      | 24 ++++++------
 .../iio/position/hid-sensor-custom-intel-hinge.c   | 17 +++++----
 drivers/iio/pressure/hid-sensor-press.c            | 19 +++++-----
 10 files changed, 100 insertions(+), 101 deletions(-)
---
base-commit: 36c12dbda81c284d72f3c64689461647497b643b
change-id: 20260720-hid-iio-local-struct-device-1d3af277658a

Best regards,
--  
Sanjay Chitroda <sanjayembeddedse@gmail.com>