diff mbox series

[-next] HID: gt683r: add missing MODULE_DEVICE_TABLE

Message ID 20210508031448.53445-1-cuibixuan@huawei.com (mailing list archive)
State Mainlined
Commit a4b494099ad657f1cb85436d333cf38870ee95bc
Delegated to: Jiri Kosina
Headers show
Series [-next] HID: gt683r: add missing MODULE_DEVICE_TABLE | expand

Commit Message

Bixuan Cui May 8, 2021, 3:14 a.m. UTC
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>
---
 drivers/hid/hid-gt683r.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jiri Kosina May 26, 2021, 10:43 a.m. UTC | #1
On Sat, 8 May 2021, Bixuan Cui wrote:

> 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>
> ---
>  drivers/hid/hid-gt683r.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/hid/hid-gt683r.c b/drivers/hid/hid-gt683r.c
> index 898871c8c768..29ccb0accfba 100644
> --- a/drivers/hid/hid-gt683r.c
> +++ b/drivers/hid/hid-gt683r.c
> @@ -54,6 +54,7 @@ static const struct hid_device_id gt683r_led_id[] = {
>  	{ HID_USB_DEVICE(USB_VENDOR_ID_MSI, USB_DEVICE_ID_MSI_GT683R_LED_PANEL) },
>  	{ }
>  };
> +MODULE_DEVICE_TABLE(hid, gt683r_led_id);
>  
>  static void gt683r_brightness_set(struct led_classdev *led_cdev,

Applied, thanks.
diff mbox series

Patch

diff --git a/drivers/hid/hid-gt683r.c b/drivers/hid/hid-gt683r.c
index 898871c8c768..29ccb0accfba 100644
--- a/drivers/hid/hid-gt683r.c
+++ b/drivers/hid/hid-gt683r.c
@@ -54,6 +54,7 @@  static const struct hid_device_id gt683r_led_id[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_MSI, USB_DEVICE_ID_MSI_GT683R_LED_PANEL) },
 	{ }
 };
+MODULE_DEVICE_TABLE(hid, gt683r_led_id);
 
 static void gt683r_brightness_set(struct led_classdev *led_cdev,
 				enum led_brightness brightness)