kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] HID: gt683r: add missing MODULE_DEVICE_TABLE
@ 2021-05-08  3:14 Bixuan Cui
  2021-05-26 10:43 ` Jiri Kosina
  0 siblings, 1 reply; 2+ messages in thread
From: Bixuan Cui @ 2021-05-08  3:14 UTC (permalink / raw)
  To: cuibixuan, Jiri Kosina, Benjamin Tissoires; +Cc: linux-input, kernel-janitors

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,
 				enum led_brightness brightness)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] HID: gt683r: add missing MODULE_DEVICE_TABLE
  2021-05-08  3:14 [PATCH -next] HID: gt683r: add missing MODULE_DEVICE_TABLE Bixuan Cui
@ 2021-05-26 10:43 ` Jiri Kosina
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2021-05-26 10:43 UTC (permalink / raw)
  To: Bixuan Cui; +Cc: Benjamin Tissoires, linux-input, kernel-janitors

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.

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-26 10:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-08  3:14 [PATCH -next] HID: gt683r: add missing MODULE_DEVICE_TABLE Bixuan Cui
2021-05-26 10:43 ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).