cros: Adjust board_get_cros_ec_dev() to return a udevice
authorSimon Glass <sjg@chromium.org>
Mon, 1 Oct 2018 18:22:23 +0000 (12:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Oct 2018 10:40:27 +0000 (04:40 -0600)
commit42116f644b33d4c9e7b495ec87612aa922452453
tree1128a1d6df8dd4e624c1dd1524af955f955822a9
parent6322a7b63fb74d0f9ba5d027ef8299df7f796498
cros: Adjust board_get_cros_ec_dev() to return a udevice

Rather than returning what is effectively an internal data structure,
return the cros EC device itself.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/cros_ec.c
include/cros_ec.h