mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
committed by
Hans de Goede
parent
0f0ac158d2
commit
38543b72fb
@@ -319,6 +319,15 @@ void ssam_device_driver_unregister(struct ssam_device_driver *d);
|
||||
ssam_device_driver_unregister)
|
||||
|
||||
|
||||
/* -- Helpers for controller and hub devices. ------------------------------- */
|
||||
|
||||
#ifdef CONFIG_SURFACE_AGGREGATOR_BUS
|
||||
void ssam_remove_clients(struct device *dev);
|
||||
#else /* CONFIG_SURFACE_AGGREGATOR_BUS */
|
||||
static inline void ssam_remove_clients(struct device *dev) {}
|
||||
#endif /* CONFIG_SURFACE_AGGREGATOR_BUS */
|
||||
|
||||
|
||||
/* -- Helpers for client-device requests. ----------------------------------- */
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user