Skip to content

Commit 65b7015

Browse files
t-8chbentiss
authored andcommitted
HID: amd_sfh: 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: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent e04955d commit 65b7015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/amd-sfh-hid/amd_sfh_hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void amdtp_hid_wakeup(struct hid_device *hid)
112112
}
113113
}
114114

115-
static struct hid_ll_driver amdtp_hid_ll_driver = {
115+
static const struct hid_ll_driver amdtp_hid_ll_driver = {
116116
.parse = amdtp_hid_parse,
117117
.start = amdtp_hid_start,
118118
.stop = amdtp_hid_stop,

0 commit comments

Comments
 (0)