dm: Rename dev_get_child_count() to dev_read_child_count()

The existing name is confusing as this function relates to the
devicetree rather than the device itself.

Rename it to include the word 'read' like other functions in this API.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-06-26 07:36:09 -06:00
parent d40e88a868
commit 8abb925523
4 changed files with 6 additions and 6 deletions

View File

@@ -840,7 +840,7 @@ static int mtk_tphy_probe(struct udevice *dev)
ofnode subnode;
int index = 0;
tphy->nphys = dev_get_child_count(dev);
tphy->nphys = dev_read_child_count(dev);
tphy->phys = devm_kcalloc(dev, tphy->nphys, sizeof(*tphy->phys),
GFP_KERNEL);