Skip to content

Commit ff17bb8

Browse files
t-8chbentiss
authored andcommitted
staging: greybus: 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]> Acked-by: Greg Kroah-Hartman <[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 783c339 commit ff17bb8

File tree

1 file changed

+1
-1
lines changed
  • drivers/staging/greybus

1 file changed

+1
-1
lines changed

drivers/staging/greybus/hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ static int gb_hid_power(struct hid_device *hid, int lvl)
381381
}
382382

383383
/* HID structure to pass callbacks */
384-
static struct hid_ll_driver gb_hid_ll_driver = {
384+
static const struct hid_ll_driver gb_hid_ll_driver = {
385385
.parse = gb_hid_parse,
386386
.start = gb_hid_start,
387387
.stop = gb_hid_stop,

0 commit comments

Comments
 (0)