Commit b3c3d588 authored by Maximilian Luz's avatar Maximilian Luz Committed by Hans de Goede

platform/surface: aggregator_registry: Rename device registration function

Rename the device registration function to better align names with the
newly introduced device removal function.
Signed-off-by: default avatarMaximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20211028002243.1586083-4-luzmaximilian@gmail.comReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent acff7091
...@@ -283,8 +283,8 @@ static int ssam_hub_add_device(struct device *parent, struct ssam_controller *ct ...@@ -283,8 +283,8 @@ static int ssam_hub_add_device(struct device *parent, struct ssam_controller *ct
return status; return status;
} }
static int ssam_hub_add_devices(struct device *parent, struct ssam_controller *ctrl, static int ssam_hub_register_clients(struct device *parent, struct ssam_controller *ctrl,
struct fwnode_handle *node) struct fwnode_handle *node)
{ {
struct fwnode_handle *child; struct fwnode_handle *child;
int status; int status;
...@@ -398,7 +398,7 @@ static void ssam_base_hub_update_workfn(struct work_struct *work) ...@@ -398,7 +398,7 @@ static void ssam_base_hub_update_workfn(struct work_struct *work)
hub->state = state; hub->state = state;
if (hub->state == SSAM_BASE_HUB_CONNECTED) if (hub->state == SSAM_BASE_HUB_CONNECTED)
status = ssam_hub_add_devices(&hub->sdev->dev, hub->sdev->ctrl, node); status = ssam_hub_register_clients(&hub->sdev->dev, hub->sdev->ctrl, node);
else else
ssam_remove_clients(&hub->sdev->dev); ssam_remove_clients(&hub->sdev->dev);
...@@ -597,7 +597,7 @@ static int ssam_platform_hub_probe(struct platform_device *pdev) ...@@ -597,7 +597,7 @@ static int ssam_platform_hub_probe(struct platform_device *pdev)
set_secondary_fwnode(&pdev->dev, root); set_secondary_fwnode(&pdev->dev, root);
status = ssam_hub_add_devices(&pdev->dev, ctrl, root); status = ssam_hub_register_clients(&pdev->dev, ctrl, root);
if (status) { if (status) {
set_secondary_fwnode(&pdev->dev, NULL); set_secondary_fwnode(&pdev->dev, NULL);
software_node_unregister_node_group(nodes); software_node_unregister_node_group(nodes);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment