Hi Simon,

I have a question about handlers of struct uclass_driver.


When binding a device,
 "uc->uc_drv->post_bind()"  is called *before*  "drv->bind()",
so  the name "pre_bind()" is more suitable than "post_bind()", isn't it?


Likewise, when unbinding a device,
"uc->uc_drv->pre_unbind()" is called *after*  "drv->unbind()"
so  the name "post_unbind()" is more suitable than "pre_unbind()".



I think  pre_  and post_  is opposite here, and it looks confusing to me.

Am I misunderstanding something?



Best Regards
Masahiro Yamada

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to