Skip to content

driver core: make struct device_driver and bus_type groups members constant arrays

Heiner Kallweit driver-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3driver core: constify group arrays arguments in driver_add_groups and driver_remove_groupsdrivers/base/base.h drivers/base/driver.c+6 -42 replies
2/3driver core: make struct bus_type groups members constant arraysinclude/linux/device/bus.h+3 -30 replies
3/3device core: make struct device_driver groups members constant arraysinclude/linux/device/driver.h+2 -20 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/3] driver core: make struct device_driver and bus_type groups members constant arrays

This series constifies the attribute group groups arrays in struct device_driver and bus_type, allowing to assign constant arrays.

Heiner Kallweit (3):
driver core: constify group arrays arguments in driver_add_groups and
driver_remove_groups
driver core: make struct bus_type groups members constant arrays device core: make struct device_driver groups members constant arrays

 drivers/base/base.h           | 6 ++++--
 drivers/base/driver.c         | 4 ++--
 include/linux/device/bus.h    | 6 +++---
 include/linux/device/driver.h | 4 ++--
 4 files changed, 11 insertions(+), 9 deletions(-)
Signature · 1 line
2.53.0