Commit a1fb1c77 authored by Ricardo B. Marliere's avatar Ricardo B. Marliere Committed by Andrew Morton

const_structs.checkpatch: add bus_type

Since commit d492cc25 ("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/20240204-bus_cleanup-checkpatch-v1-1-8d51dcecda20@marliere.netSigned-off-by: default avatarRicardo B. Marliere <ricardo@marliere.net>
Suggested-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Reviewed-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 2e3fc6ca
......@@ -2,6 +2,7 @@ acpi_dock_ops
address_space_operations
backlight_ops
block_device_operations
bus_type
clk_ops
comedi_lrange
component_ops
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment