HID: make hid_bus_type const
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2023 07:38:46 +0000 (08:38 +0100)
committerJiri Kosina <jkosina@suse.com>
Tue, 2 Jan 2024 10:25:28 +0000 (11:25 +0100)
commit37d158d0b05144f696323ae5bbfe1e137f7c06d3
treed96d663ee46e00d31538d64b812d0188ab2822fd
parent3f10e214a9de738832b357a58b605c2fbd23aa96
HID: make hid_bus_type const

Now that the driver core can properly handle constant struct bus_type,
move the hid_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: linux-input@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-core.c
include/linux/hid.h