Lines Matching defs:adev
25 struct acpi_device *adev;
84 s = asus_wireless_method(acpi_device_handle(data->adev), "HSWC",
97 asus_wireless_method(acpi_device_handle(data->adev), "HSWC",
111 static void asus_wireless_notify(struct acpi_device *adev, u32 event)
113 struct asus_wireless_data *data = acpi_driver_data(adev);
115 dev_dbg(&adev->dev, "event=%#x\n", event);
117 dev_notice(&adev->dev, "Unknown ASHS event: %#x\n", event);
126 static int asus_wireless_add(struct acpi_device *adev)
132 data = devm_kzalloc(&adev->dev, sizeof(*data), GFP_KERNEL);
135 adev->driver_data = data;
136 data->adev = adev;
138 data->idev = devm_input_allocate_device(&adev->dev);
151 id = acpi_match_acpi_device(device_ids, adev);
167 err = devm_led_classdev_register(&adev->dev, &data->led);
174 static void asus_wireless_remove(struct acpi_device *adev)
176 struct asus_wireless_data *data = acpi_driver_data(adev);
179 devm_led_classdev_unregister(&adev->dev, &data->led);