buffet: Simplify device registration.
Make device always finalize registration ticket itself.
Also minor unifications in the code.
BUG=None
TEST=cros_work_make buffet --test
Change-Id: I7aa432aee2546fd562fd7048ef320d773c32be19
Reviewed-on: https://chromium-review.googlesource.com/220380
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Anton Muhin <antonm@chromium.org>
Tested-by: Anton Muhin <antonm@chromium.org>
6 files changed
tree: 37b53d815c304c7dc48383d4aa5cd1d518ae184f
- buffet/