From: Masahiro Yamada Date: Tue, 02 Dec 2014 14:31:51 +0900 Subject: [U-Boot] [Driver Model] post_bind() and pre_unbind() handler Message-ID: <20141202143150.67E2.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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