Add helper to read file contents

In order to avoid code duplication or errors and to simplify code,
this patch adds a function to return the content of a file. It also
replaces pieces of code reading sysfs files by the new function.

Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
1 file changed
tree: 519f6f6e87af7e8f332126134f4cf8b53d1e779c
  1. test-cros-ec.py