Skip to content

driver core: move devres APIs to a separate header

Andy Shevchenko linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2driver core: Split devres APIs to device/devres.hinclude/linux/device.h include/linux/device/devres.h+127 -1194 replies
2/2iio: imu: st_lsm9ds0: Replace device.h with what is neededdrivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_spi.c+2 -22 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] driver core: move devres APIs to a separate header

There are a lot of devm_*() APIs defined in the device.h and sometimes either the rest of the device.h is in use or only stuff from (new) devres.h. Especially helpful to have it separated for the headers that want to use devm_add_action_or_reset() or similar APIs in inline functions.

I don't mind any subsystem in question to take it (IIO or driver core), but I would need an immutable branch/tag since there is a pending series that adds yet another devm_*() into the device.h and supposed to go via one of mine trees. Of course it would be possible to route that series via another tree.

Andy Shevchenko (2):
driver core: Split devres APIs to device/devres.h
iio: imu: st_lsm9ds0: Replace device.h with what is needed

 drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c |   2 +-
 drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_spi.c |   2 +-
 include/linux/device.h                      | 122 +------------------
 include/linux/device/devres.h               | 124 ++++++++++++++++++++
 4 files changed, 129 insertions(+), 121 deletions(-)
 create mode 100644 include/linux/device/devres.h
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac