Skip to content

Remove struct device_connection

Heikki Krogerus linux-acpi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4device connection: Remove device_connection_find()drivers/base/devcon.c include/linux/device.h+0 -750 replies
2/4device connection: Remove device_connection_add()drivers/base/devcon.c include/linux/device.h+1 -870 replies
3/4device connection: Remove struct device_connectiondrivers/base/devcon.c drivers/usb/roles/class.c drivers/usb/typec/mux.c +1 more+25 -440 replies
4/4device property: Move fwnode_connection_find_match() under drivers/base/property.cDocumentation/driver-api/device_connection.rst drivers/base/Makefile drivers/base/devcon.c +3 more+88 -1542 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] Remove struct device_connection

Hi,

The purpose of the struct device_connection was to allow connections between devices to be described somehow when the firmware did not do that. Later support for also firmware described connections, for example walking device graph, was added to the API. But now software nodes make it possible to describe for example device graph if needed, so we don't need a separate method of describing the connections.

All the users of struct device_connection have now been concerted to use software nodes instead, so we can remove the data structure, and the list for it.

thanks,

Heikki Krogerus (4):
device connection: Remove device_connection_find() device connection: Remove device_connection_add() device connection: Remove struct device_connection device property: Move fwnode_connection_find_match() under
drivers/base/property.c

 .../driver-api/device_connection.rst          |  43 ----
 drivers/base/Makefile                         |   2 +-
 drivers/base/devcon.c                         | 231 ------------------
 drivers/base/property.c                       |  73 ++++++
 drivers/usb/roles/class.c                     |  12 +-
 drivers/usb/typec/mux.c                       |  19 +-
 include/linux/device.h                        |  56 -----
 include/linux/property.h                      |  14 ++
 8 files changed, 102 insertions(+), 348 deletions(-)
 delete mode 100644 Documentation/driver-api/device_connection.rst
 delete mode 100644 drivers/base/devcon.c
Signature · 1 line
2.28.0