summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.com>2024-01-08 21:02:30 +0100
committerJiri Kosina <jkosina@suse.com>2024-01-08 21:02:30 +0100
commit82a18fc3aafed36a14a4db5be80cc26bb58f0127 (patch)
treeac04b39f4ea29e1b3273ca4db507b173be4822a2 /include
parent39e7facbe5eaa5e1bf25d44116e0a96376bc928b (diff)
parent9b0a3839e8d29663cd9ee2c43d38b06c3b91619e (diff)
Merge branch 'for-6.8/hid-bus-type-const' into for-linus
- bus_type constification (Greg Kroah-Hartman)
Diffstat (limited to 'include')
-rw-r--r--include/linux/hid.h2
-rw-r--r--include/linux/hid_bpf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index bf43f3ff6664..7c26db874ff0 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -912,7 +912,7 @@ extern bool hid_ignore(struct hid_device *);
extern int hid_add_device(struct hid_device *);
extern void hid_destroy_device(struct hid_device *);
-extern struct bus_type hid_bus_type;
+extern const struct bus_type hid_bus_type;
extern int __must_check __hid_register_driver(struct hid_driver *,
struct module *, const char *mod_name);
diff --git a/include/linux/hid_bpf.h b/include/linux/hid_bpf.h
index e9afb61e6ee0..840cd254172d 100644
--- a/include/linux/hid_bpf.h
+++ b/include/linux/hid_bpf.h
@@ -115,7 +115,7 @@ struct hid_bpf_ops {
size_t len, enum hid_report_type rtype,
enum hid_class_request reqtype);
struct module *owner;
- struct bus_type *bus_type;
+ const struct bus_type *bus_type;
};
extern struct hid_bpf_ops *hid_bpf_ops;