commit | 9b9ff12d1650b8402f1c2c368ba63c795294a94a | [log] [tgz] |
---|---|---|
author | Fabien Lahoudere <fabien.lahoudere@collabora.com> | Thu Nov 21 18:13:49 2019 +0100 |
committer | Enric Balletbo i Serra <enric.balletbo@collabora.com> | Fri Dec 06 09:23:33 2019 +0100 |
tree | 519f6f6e87af7e8f332126134f4cf8b53d1e779c | |
parent | 0054fac2fa79301ac1585fe61fd82d3240be2005 [diff] |
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>