Home
last modified time | relevance | path

Searched refs:sub_driver (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/platform/loongarch/
H A Dloongson-laptop.c48 int (*init)(struct generic_sub_driver *sub_driver);
49 void (*notify)(struct generic_sub_driver *sub_driver, u32 event);
149 struct generic_sub_driver *sub_driver = data; in dispatch_acpi_notify() local
151 if (!sub_driver || !sub_driver->notify) in dispatch_acpi_notify()
153 sub_driver->notify(sub_driver, event); in dispatch_acpi_notify()
156 static int __init setup_acpi_notify(struct generic_sub_driver *sub_driver) in setup_acpi_notify() argument
160 if (!*sub_driver->handle) in setup_acpi_notify()
163 sub_driver->device = acpi_fetch_acpi_dev(*sub_driver->handle); in setup_acpi_notify()
164 if (!sub_driver->device) { in setup_acpi_notify()
165 pr_err("acpi_fetch_acpi_dev(%s) failed\n", sub_driver->name); in setup_acpi_notify()
[all …]