Skip to content

Commit dd350af

Browse files
t-8chbentiss
authored andcommitted
HID: surface-hid: Constify lowlevel HID driver
Since commit 52d2253 ("HID: Make lowlevel driver structs const") the lowlevel HID drivers are only exposed as const. Take advantage of this to constify the underlying structure, too. Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: Maximilian Luz <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 3352c3e commit dd350af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/surface-hid/surface_hid_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ static int surface_hid_raw_request(struct hid_device *hid, unsigned char reportn
174174
return -EIO;
175175
}
176176

177-
static struct hid_ll_driver surface_hid_ll_driver = {
177+
static const struct hid_ll_driver surface_hid_ll_driver = {
178178
.start = surface_hid_start,
179179
.stop = surface_hid_stop,
180180
.open = surface_hid_open,

0 commit comments

Comments
 (0)