From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 19 May 2009 14:54:09 +0200 Subject: [U-Boot] [PATCH 1/3 v5] stdio/device: rework function naming convention In-Reply-To: <1242468896-5007-1-git-send-email-plagnioj@jcrosoft.com> References: <1242468896-5007-1-git-send-email-plagnioj@jcrosoft.com> Message-ID: <20090519125409.GU17539@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12:14 Sat 16 May , Jean-Christophe PLAGNIOL-VILLARD wrote: > actually the console API use the following naming convention > > ======Extract====== > typedef struct device_t; > > int device_register (device_t * dev); > int devices_init (void); > int device_deregister(char *devname); > struct list_head* device_get_list(void); > device_t* device_get_by_name(char* name); > device_t* device_clone(device_t *dev); > ======= > > which is device generic and confusing > > instead of using device_XX and device_t > we now switch to stdio_XX and stdio_dev > > this will also allow to add later a generic device mecanism > in order to have multi generic device support and driver instance > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- ping Best Regards, J.