mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
HID: Make lowlevel driver structs const
Nothing is nor should be modifying these structs so mark them as const. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: David Rheinsberg <david.rheinsberg@gmail.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
committed by
Jiri Kosina
parent
ebb45d6bee
commit
52d2253469
@@ -596,7 +596,7 @@ struct hid_device { /* device report descriptor */
|
||||
struct device dev; /* device */
|
||||
struct hid_driver *driver;
|
||||
|
||||
struct hid_ll_driver *ll_driver;
|
||||
const struct hid_ll_driver *ll_driver;
|
||||
struct mutex ll_open_lock;
|
||||
unsigned int ll_open_count;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user