Skip to content

Commit 662eee8

Browse files
t-8chbentiss
authored andcommitted
HID: logitech-dj: 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 d38213a commit 662eee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hid/hid-logitech-dj.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ static const u8 hid_reportid_size_map[NUMBER_OF_HID_REPORTS] = {
554554

555555
#define LOGITECH_DJ_INTERFACE_NUMBER 0x02
556556

557-
static struct hid_ll_driver logi_dj_ll_driver;
557+
static const struct hid_ll_driver logi_dj_ll_driver;
558558

559559
static int logi_dj_recv_query_paired_devices(struct dj_receiver_dev *djrcv_dev);
560560
static void delayedwork_callback(struct work_struct *work);
@@ -1506,7 +1506,7 @@ static bool logi_dj_ll_may_wakeup(struct hid_device *hid)
15061506
return hid_hw_may_wakeup(djrcv_dev->hidpp);
15071507
}
15081508

1509-
static struct hid_ll_driver logi_dj_ll_driver = {
1509+
static const struct hid_ll_driver logi_dj_ll_driver = {
15101510
.parse = logi_dj_ll_parse,
15111511
.start = logi_dj_ll_start,
15121512
.stop = logi_dj_ll_stop,

0 commit comments

Comments
 (0)