File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 19
19
#include <linux/module.h>
20
20
#include "hid_bpf_dispatch.h"
21
21
22
- struct hid_ops * hid_ops ;
22
+ const struct hid_ops * hid_ops ;
23
23
EXPORT_SYMBOL (hid_ops );
24
24
25
25
u8 *
Original file line number Diff line number Diff line change @@ -3064,7 +3064,7 @@ int hid_check_keys_pressed(struct hid_device *hid)
3064
3064
EXPORT_SYMBOL_GPL (hid_check_keys_pressed );
3065
3065
3066
3066
#ifdef CONFIG_HID_BPF
3067
- static struct hid_ops __hid_ops = {
3067
+ static const struct hid_ops __hid_ops = {
3068
3068
.hid_get_report = hid_get_report ,
3069
3069
.hid_hw_raw_request = __hid_hw_raw_request ,
3070
3070
.hid_hw_output_report = __hid_hw_output_report ,
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ struct hid_ops {
78
78
const struct bus_type * bus_type ;
79
79
};
80
80
81
- extern struct hid_ops * hid_ops ;
81
+ extern const struct hid_ops * hid_ops ;
82
82
83
83
/**
84
84
* struct hid_bpf_ops - A BPF struct_ops of callbacks allowing to attach HID-BPF
You can’t perform that action at this time.
0 commit comments