UPSTREAM: device: untangle device_t from struct device some more

This further allows compilation units to be re-used without
having to add macro guards because of declarations not being
around in the __SIMPLE_DEVICE__ case. These declarations are for
functions that operate on struct device. struct device is a known
type so just expose the functions using the correct type. Also,
DEVTREE_CONST is empty while in ramstage so there's no reason
to separate the declarations. They compile regardless of stage.

BUG=none
BRANCH=none
TEST=none

Change-Id: I6b891517b7cb65fc9a2eb1a840a3b37586208a89
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: 6f1e8d24af98299c296b358e575b485300f851b9
Original-Change-Id: Idd4180437d30e7dfaa9f735416c108841e43129f
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/22397
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Furquan Shaikh <furquan@google.com>
Original-Reviewed-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/763297
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
1 file changed