[PATCH v4 01/35] acpi: Adjust functions installing bus event handlers

2023-06-01 Thread Michal Wilczynski
Make acpi_device_install_event_handler() and acpi_device_remove_event_handler() non-static, and export symbols. This will allow the drivers to call them directly, instead of relying on .notify callback. Signed-off-by: Michal Wilczynski --- drivers/acpi/bus.c | 59 - include

[PATCH v4 35/35] acpi/bus: Remove notify callback and flags

2023-06-01 Thread Michal Wilczynski
As callback has been replaced by drivers installing their handlers in .add it's presence is not useful anymore. Remove .notify callback and flags variable from struct acpi_driver, as they're not needed anymore. Signed-off-by: Michal Wilczynski --- include/acpi/acpi_bus.h | 3 -

[PATCH v4 34/35] acpi/bus: Remove redundant functions

2023-06-01 Thread Michal Wilczynski
By this point all drivers switched from using .notify callback to installing event handlers on their own. Remove redundant functions acpi_device_install_notify_handler(), acpi_device_remove_notify_handler() and acpi_notify_device(). Signed-off-by: Michal Wilczynski --- drivers/acpi/bus.c | 60

[PATCH v4 33/35] acpi/bus: Remove installing/removing notify handlers from probe/remove

2023-06-01 Thread Michal Wilczynski
: Michal Wilczynski --- drivers/acpi/bus.c | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index cf2c2bfe29a0..6436ac4d6322 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -1089,20 +1089,6 @@ static int acpi_device_probe(struct

[PATCH v4 00/35] Remove .notify callback in acpi_device_ops

2023-06-01 Thread Michal Wilczynski
oving it's event handlers. v4: - added one commit for previously missed driver sony-laptop, refactored return statements, added NULL check for event installer v3: - lkp still reported some failures for eeepc, fujitsu and toshiba_bluetooth, fix those v2: - fix compilation errors for