OSDN Git Service

platform/surface: aggregator: Move subsystem hub drivers to their own module
authorMaximilian Luz <luzmaximilian@gmail.com>
Fri, 24 Jun 2022 20:57:59 +0000 (22:57 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 2 Jul 2022 09:23:25 +0000 (11:23 +0200)
commit993a9e2aca6e6432695082d689353a03662d18d1
tree2ba1db1193d3d4e06e76ab196301677bd7a47a8f
parent4a4ab610b8ae912c28a4fd28442ef24ed7a1a5bd
platform/surface: aggregator: Move subsystem hub drivers to their own module

Split out subsystem device hub drivers into their own module. This
allows us to load the hub drivers separately from the registry, which
will help future DT/OF support.

While doing so, also remove a small bit of code duplication.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20220624205800.1355621-3-luzmaximilian@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
MAINTAINERS
drivers/platform/surface/Kconfig
drivers/platform/surface/Makefile
drivers/platform/surface/surface_aggregator_hub.c [new file with mode: 0644]
drivers/platform/surface/surface_aggregator_registry.c