commit | 417b29e2fbc97f99455a9e4bd22270bab0a4628f | [log] [tgz] |
---|---|---|
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | Thu Dec 07 16:52:46 2017 +0000 |
committer | Chris Wilson <chris@chris-wilson.co.uk> | Fri Dec 15 11:26:57 2017 +0000 |
tree | 372fa61cf28f8b913abf8a586dd9499f5a870487 | |
parent | e337f2bf378494083052288c7e65e7191ce9a921 [diff] |
lib/igt_sysfs: Let igt_sysfs_read|write return -errno In some cases debugfs or sysfs may return errors that we want to check. Return -errno from helper functions to make asserts easier. v2: don't forget about EOF ret=0 (Chris) small re-write (Michal) Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>