test: Add udevice declaration to avoid build error
authorSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 17:53:08 +0000 (06:53 +1300)
committerTom Rini <trini@konsulko.com>
Sun, 28 Mar 2021 21:30:35 +0000 (17:30 -0400)
commit3c2503ee3327ea93a175768bafbaddff182c1c08
tree5e0cf2c0f9c615ba880f1a6a87ce5f623d0a34f6
parent31637e0bc0701203c480ccd801a5c3806cd43a90
test: Add udevice declaration to avoid build error

When including this file on a board other than sandbox (e.g by enabling
UNIT_TEST and CMD_SETEXPR) an results. Fix it by declaring struct udevice
first.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/dm/test.h