mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 13:23:23 +01:00
driver core: device.h: make struct bus_type a const *
Now that all users who accessed the bus_type structure in struct device are properly using it as a const *, mark it as such so that no one can modify it going forward anymore. Cc: "Rafael J. Wysocki" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
b18d0a0f92
commit
d492cc2573
1 file changed
+1
-1
@@ -566,7 +566,7 @@ struct device {
|
||||
const char *init_name; /* initial name of the device */
|
||||
const struct device_type *type;
|
||||
|
||||
struct bus_type *bus; /* type of bus device is on */
|
||||
const struct bus_type *bus; /* type of bus device is on */
|
||||
struct device_driver *driver; /* which driver has allocated this
|
||||
device */
|
||||
void *platform_data; /* Platform specific data, device
|
||||
|
||||
Reference in new issue
Block a user