Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

HID: gt683r: add missing MODULE_DEVICE_TABLE

This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Bixuan Cui and committed by
Jiri Kosina
a4b49409 3dd653c0

+1
+1
drivers/hid/hid-gt683r.c
··· 54 54 { HID_USB_DEVICE(USB_VENDOR_ID_MSI, USB_DEVICE_ID_MSI_GT683R_LED_PANEL) }, 55 55 { } 56 56 }; 57 + MODULE_DEVICE_TABLE(hid, gt683r_led_id); 57 58 58 59 static void gt683r_brightness_set(struct led_classdev *led_cdev, 59 60 enum led_brightness brightness)