[U-Boot] [PATCH v2 07/10] net: sandbox: Add a priv ptr for tests to use
Bin Meng
bmeng.cn at gmail.com
Thu Sep 27 06:52:06 UTC 2018
On Thu, Sep 27, 2018 at 5:49 AM Joe Hershberger <joe.hershberger at ni.com> wrote:
>
> Tests need to be able to pass their "unit test state" to the handlers
> where asserts are evaluated. Add a function that allows the tests to set
> this private data on the sandbox eth device.
>
> Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
>
> ---
>
> Changes in v2:
> - add missing commit message
> - rename local "uc_priv" variable to "dev_priv" to not be misleading.
>
> arch/sandbox/include/asm/eth.h | 9 +++++++++
> drivers/net/sandbox.c | 20 ++++++++++++++++++++
> 2 files changed, 29 insertions(+)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list