Since commit d492cc2573a0 ("driver core: device.h: make struct bus_type a const *"), the driver core can properly handle constant struct bus_type. Make sure that new usages of the struct already enter the tree as const.
Showing the changes to scripts/const_structs.checkpatch (1 of 1 file). Show all
Unified · Split
| @@ -2,6 +2,7 @@ acpi_dock_ops · 1 unmodified line | ||
| 2 | 2 | address_space_operations |
| 3 | 3 | backlight_ops |
| 4 | 4 | block_device_operations |
| 5 | +bus_type | |
| 5 | 6 | clk_ops |
| 6 | 7 | comedi_lrange |
| 7 | 8 | component_ops |