Skip to content

Commit c4a9743

Browse files
gregkhJiri Kosina
authored andcommitted
HID: make ishtp_cl_bus_type const
Now that the driver core can properly handle constant struct bus_type, move the ishtp_cl_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Srinivas Pandruvada <[email protected]> Cc: Jiri Kosina <[email protected]> Cc: Benjamin Tissoires <[email protected]> Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 37d158d commit c4a9743

File tree

1 file changed

+1
-1
lines changed
  • drivers/hid/intel-ish-hid/ishtp

1 file changed

+1
-1
lines changed

drivers/hid/intel-ish-hid/ishtp/bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ static const struct dev_pm_ops ishtp_cl_bus_dev_pm_ops = {
378378
.restore = ishtp_cl_device_resume,
379379
};
380380

381-
static struct bus_type ishtp_cl_bus_type = {
381+
static const struct bus_type ishtp_cl_bus_type = {
382382
.name = "ishtp",
383383
.dev_groups = ishtp_cl_dev_groups,
384384
.probe = ishtp_cl_device_probe,

0 commit comments

Comments
 (0)