device_for_each_child - device child iterator.
2. SYNOPSIS ▲
int device_for_each_child(struct device * parent , void * data , int (* fn ) (struct device *dev, void *data));
3. ARGUMENTS ▲
parent struct device.
data for the callback.
function to be called for each device.
4. DESCRIPTION ▲
Iterate over parentAqs child devices, and call fn for each, passing it data.
We check the return of fn each time. If it returns anything other than 0, we break out and return that value.
5. COPYRIGHT ▲