diff options
author | Ricardo B. Marliere <[email protected]> | 2024-02-04 19:39:57 -0300 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-02-22 15:38:55 -0800 |
commit | a1fb1c77950fbe47eb4a8f5be303bea4ee753b93 (patch) | |
tree | 16636e57694bedd71db7a1b3f69355a77bbcb22b | |
parent | 2e3fc6ca521499a985a1829a21759ac25359c0f3 (diff) |
const_structs.checkpatch: add bus_type
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.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ricardo B. Marliere <[email protected]>
Suggested-by: Thomas Weißschuh <[email protected]>
Reviewed-by: Thomas Weißschuh <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Cc: Dwaipayan Ray <[email protected]>
Cc: Lukas Bulwahn <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r-- | scripts/const_structs.checkpatch | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/const_structs.checkpatch b/scripts/const_structs.checkpatch index 188412aa2757..7427313adc7a 100644 --- a/scripts/const_structs.checkpatch +++ b/scripts/const_structs.checkpatch @@ -2,6 +2,7 @@ acpi_dock_ops address_space_operations backlight_ops block_device_operations +bus_type clk_ops comedi_lrange component_ops |