Re: [U-Boot] [PATCH v2 04/29] stdio: Pass device pointer to stdio methods

2014-07-10 Thread Simon Glass
Hi Marek, On 10 July 2014 17:26, Marek Vasut wrote: > On Wednesday, July 09, 2014 at 05:37:54 AM, Simon Glass wrote: >> At present stdio device functions do not get any clue as to which stdio >> device is being acted on. Some implementations go to great lengths to work >> around this, such as def

Re: [U-Boot] [PATCH v2 04/29] stdio: Pass device pointer to stdio methods

2014-07-10 Thread Marek Vasut
On Wednesday, July 09, 2014 at 05:37:54 AM, Simon Glass wrote: > At present stdio device functions do not get any clue as to which stdio > device is being acted on. Some implementations go to great lengths to work > around this, such as defining a whole separate set of functions for each > possible

[U-Boot] [PATCH v2 04/29] stdio: Pass device pointer to stdio methods

2014-07-08 Thread Simon Glass
At present stdio device functions do not get any clue as to which stdio device is being acted on. Some implementations go to great lengths to work around this, such as defining a whole separate set of functions for each possible device. For driver model we need to associate a stdio_dev with a devi