From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 1 Jun 2014 19:37:15 +0200 Subject: [U-Boot] [RFC PATCH 13/22] stdio: Provide functions to add/remove devices using stdio_dev In-Reply-To: <1400966481-14131-14-git-send-email-sjg@chromium.org> References: <1400966481-14131-1-git-send-email-sjg@chromium.org> <1400966481-14131-14-git-send-email-sjg@chromium.org> Message-ID: <201406011937.15501.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Saturday, May 24, 2014 at 11:21:12 PM, Simon Glass wrote: > The current functions for adding and removing devices require a device > name. This is not convenient for driver model, which wants to store a > pointer to the relevant device. Add new functions which provide this > feature and adjust the old ones to call these. > > Signed-off-by: Simon Glass I think we should use errno.h and not return -1 all around. Other than that: Acked-by: Marek Vasut Best regards, Marek Vasut