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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user