aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2024-01-05 13:33:32 +0100
committerSuzuki K Poulose <[email protected]>2024-02-12 10:19:39 +0000
commitdd95255d44c05c9977f962bf0f2afe5e11f8ab3e (patch)
tree18afc19b5df054ed3c9b3c08ecca2c98b01f18a8 /include/linux
parentd999c7dd52790e294d78d06e6535e318275c1ea5 (diff)
coresight: make coresight_bustype const
Now that the driver core can properly handle constant struct bus_type, move the coresight_bustype variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Suzuki K Poulose <[email protected]> Cc: Mike Leach <[email protected]> Cc: James Clark <[email protected]> Cc: Leo Yan <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/2024010531-tinfoil-avert-4a57@gregkh
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/coresight.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index a4cb7dd6ca23..e8b6e388218c 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -35,7 +35,7 @@
#define CORESIGHT_UNLOCK 0xc5acce55
-extern struct bus_type coresight_bustype;
+extern const struct bus_type coresight_bustype;
enum coresight_dev_type {
CORESIGHT_DEV_TYPE_SINK,