u-boot uclass_get_device_by_seq函数

uclass_get_device_by_seq

//通过序号从uclass的设备链表中获取udevice,进行probe                  
int uclass_get_device_by_seq(enum uclass_id id, int seq, struct udevice **devp)

 


int uclass_get_device_by_seq(enum uclass_id id, int seq, struct udevice **devp)
{
    struct udevice *dev;
    int ret;

    *devp = NULL;
    ret = uclass_find_device_by_seq(id, seq, &dev);

    return uclass_get_device_tail(dev, ret, devp);
}
 
posted @ 2022-02-22 21:55  liujunhuasd  阅读(655)  评论(0编辑  收藏  举报