diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-01-05 11:16:17 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-03-06 14:11:23 +0000 |
commit | 00b9850e7307ff690639dd0584a50dd8a72d3548 (patch) | |
tree | b2795b667d075222fc610acf6026e1523cc6f8e1 /drivers/greybus/hd.c | |
parent | 17bcddcd4a83bbb93b2db75235577aa5b3afea5d (diff) |
greybus: make greybus_bus_type const
Now that the driver core can properly handle constant struct bus_type,
move the greybus_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.
Cc: Alex Elder <elder@kernel.org>
Cc: greybus-dev@lists.linaro.org
Reviewed-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/2024010517-handgun-scoreless-05e7@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/greybus/hd.c')
0 files changed, 0 insertions, 0 deletions