stdio: Provide functions to add/remove devices using stdio_dev
authorSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 12:55:05 +0000 (06:55 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 13:07:24 +0000 (14:07 +0100)
commitd97143a67c696101b68eaaa3deb57ab36e288b77
tree44a7cfa571285634c77e12fe5486933f404fca0a
parentab7cd62790c4f7831b91eab8a2ec81742d01bb54
stdio: Provide functions to add/remove devices using stdio_dev

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 <sjg@chromium.org>
common/stdio.c
include/stdio_dev.h