We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3978959 commit 5a02676Copy full SHA for 5a02676
drivers/platform/x86/asus-wireless.c
@@ -148,16 +148,12 @@ static int asus_wireless_add(struct acpi_device *adev)
148
if (err)
149
return err;
150
151
- for (id = device_ids; id->id[0]; id++) {
152
- if (!strcmp((char *) id->id, acpi_device_hid(adev))) {
153
- data->hswc_params =
154
- (const struct hswc_params *)id->driver_data;
155
- break;
156
- }
157
158
- if (!data->hswc_params)
+ id = acpi_match_acpi_device(device_ids, adev);
+ if (!id)
159
return 0;
160
+ data->hswc_params = (const struct hswc_params *)id->driver_data;
+
161
data->wq = create_singlethread_workqueue("asus_wireless_workqueue");
162
if (!data->wq)
163
return -ENOMEM;
0 commit comments