OSDN Git Service

platform/surface: aggregator: Make client device removal more generic
authorMaximilian Luz <luzmaximilian@gmail.com>
Thu, 28 Oct 2021 00:22:41 +0000 (02:22 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 16 Nov 2021 09:56:54 +0000 (10:56 +0100)
commit38543b72fbe52b7eec0dedd420d80a06c652d8e4
tree9dbc872dad045892eaa9db3e90c05579a64345b4
parent0f0ac158d28ff78e75c334e869b1cb8e69372a1f
platform/surface: aggregator: Make client device removal more generic

Currently, there are similar functions defined in the Aggregator
Registry and the controller core.

Make client device removal more generic and export it. We can then use
this function later on to remove client devices from device hubs as well
as the controller and avoid re-defining similar things.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20211028002243.1586083-2-luzmaximilian@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/aggregator/bus.c
drivers/platform/surface/aggregator/bus.h
drivers/platform/surface/aggregator/core.c
include/linux/surface_aggregator/device.h