Skip to content

Commit

Permalink
Merge branch 'for-6.8/hid-bus-type-const' into for-linus
Browse files Browse the repository at this point in the history
- bus_type constification (Greg Kroah-Hartman)
  • Loading branch information
Jiri Kosina committed Jan 8, 2024
2 parents 39e7fac + 9b0a383 commit 82a18fc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/hid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2749,7 +2749,7 @@ static int hid_uevent(const struct device *dev, struct kobj_uevent_env *env)
return 0;
}

struct bus_type hid_bus_type = {
const struct bus_type hid_bus_type = {
.name = "hid",
.dev_groups = hid_dev_groups,
.drv_groups = hid_drv_groups,
Expand Down
2 changes: 1 addition & 1 deletion drivers/hid/intel-ish-hid/ishtp/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ static const struct dev_pm_ops ishtp_cl_bus_dev_pm_ops = {
.restore = ishtp_cl_device_resume,
};

static struct bus_type ishtp_cl_bus_type = {
static const struct bus_type ishtp_cl_bus_type = {
.name = "ishtp",
.dev_groups = ishtp_cl_dev_groups,
.probe = ishtp_cl_device_probe,
Expand Down
2 changes: 1 addition & 1 deletion include/linux/hid.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion include/linux/hid_bpf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 82a18fc

Please sign in to comment.