linux-stable/drivers/greybus
Ricardo B. Marliere e869b72b33 greybus: constify the struct device_type usage
Since commit aed65af1cc ("drivers: make device_type const"), the driver
core can properly handle constant struct device_type. Move the
greybus_hd_type, greybus_module_type, greybus_interface_type,
greybus_control_type, greybus_bundle_type and greybus_svc_type variables to
be constant structures as well, placing it into read-only memory which can
not be modified at runtime.

Signed-off-by: "Ricardo B. Marliere" <ricardo@marliere.net>
Reviewed-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20240219-device_cleanup-greybus-v1-1-babb3f65e8cc@marliere.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-06 14:13:10 +00:00
..
arpc.h greybus: Replace zero-length array with flexible-array 2020-05-13 13:59:13 +02:00
bundle.c greybus: constify the struct device_type usage 2024-03-06 14:13:10 +00:00
connection.c greybus: Use alloc_ordered_workqueue() to create ordered workqueues 2023-05-08 13:52:27 -10:00
control.c greybus: constify the struct device_type usage 2024-03-06 14:13:10 +00:00
core.c greybus: make greybus_bus_type const 2024-03-06 14:11:23 +00:00
debugfs.c staging: greybus: move the greybus core to drivers/greybus 2019-08-27 19:03:04 +02:00
es2.c greybus: es2: fix typo in a comment 2021-12-21 10:13:26 +01:00
gb-beagleplay.c TTY/Serial changes for 6.8-rc1 2024-01-18 11:37:24 -08:00
greybus_trace.h greybus: remove h from printk format specifier 2021-01-05 15:18:23 +01:00
hd.c greybus: constify the struct device_type usage 2024-03-06 14:13:10 +00:00
interface.c greybus: constify the struct device_type usage 2024-03-06 14:13:10 +00:00
Kconfig greybus: BeaglePlay driver needs CRC_CCITT 2023-12-04 08:16:50 +01:00
Makefile greybus: Add BeaglePlay Linux Driver 2023-10-27 13:19:04 +02:00
manifest.c staging: greybus: move the greybus core to drivers/greybus 2019-08-27 19:03:04 +02:00
module.c greybus: constify the struct device_type usage 2024-03-06 14:13:10 +00:00
operation.c staging: greybus: move the greybus core to drivers/greybus 2019-08-27 19:03:04 +02:00
svc_watchdog.c staging: greybus: move the greybus core to drivers/greybus 2019-08-27 19:03:04 +02:00
svc.c greybus: constify the struct device_type usage 2024-03-06 14:13:10 +00:00