Skip to content

device property: Consitify a few APIs and

Andy Shevchenko linux-acpi linux-usb lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 4 repliesIn review
  2. v25 patches 16 repliesSuperseded
  3. v15 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- used _Generic() to hide the _const API (Sakari, Greg)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5device property: Allow const parameter to dev_fwnode()drivers/base/property.c include/linux/property.h+15 -32 replies
2/5device property: Constify fwnode connection match APIsdrivers/base/property.c drivers/usb/roles/class.c drivers/usb/typec/mux.c +2 more+14 -140 replies
3/5device property: Constify parameter in fwnode_graph_is_endpoint()include/linux/property.h+1 -10 replies
4/5device property: Constify device child node APIsdrivers/base/property.c include/linux/property.h+9 -90 replies
5/5device property: Constify parameter in device_dma_supported() and device_get_dma_attr()drivers/base/property.c include/linux/property.h+4 -50 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchHeikki KrogerusSakari Ailus
1/5A-b R-b
2/5A-b R-b
3/5A-b R-b
4/5A-b R-b
5/5A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] device property: Consitify a few APIs and

The property.h has inconsistency in how we annotate the parameters which are not modified anyhow by the certain APIs. Also dev_fwnode() needs to be rectified in sense of the handling const qualifier.

This series improves the above with only a couple of APIs left for now untouched (PHY, which I believe doesn't belong to property.h to begin with).

Changelog v3:
- used _Generic() to hide the _const API (Sakari, Greg)

Changelog v2:
- fixed USB Type-C compilation issues (LKP)
- added tags (Sakari, Heikki)

Andy Shevchenko (5):
device property: Allow const parameter to dev_fwnode() device property: Constify fwnode connection match APIs device property: Constify parameter in fwnode_graph_is_endpoint() device property: Constify device child node APIs device property: Constify parameter in device_dma_supported() and
device_get_dma_attr()

 drivers/base/property.c     | 29 ++++++++++++++++++-----------
 drivers/usb/roles/class.c   |  2 +-
 drivers/usb/typec/mux.c     |  8 ++++----
 drivers/usb/typec/retimer.c |  2 +-
 include/linux/property.h    | 34 +++++++++++++++++++---------------
 5 files changed, 43 insertions(+), 32 deletions(-)
Signature · 1 line
2.35.1