commit | e86755b9fdc652c146bcfa40ece8c44f2bfd5567 | [log] [tgz] |
---|---|---|
author | Corinna Vinschen <xda@vinschen.de> | Tue Apr 10 11:57:37 2018 +0200 |
committer | Michael Bestas <mkbestas@lineageos.org> | Sun Oct 29 22:13:01 2023 +0000 |
tree | 285a9b63aba9a00b6af8229dd9e8e9f7099dbcc4 | |
parent | d62a558e099350fc421a45d9ff0cc6ddbe0d0ca4 [diff] |
power: fix sysfs_read/sysfs_write usage * The incoming path to sysfs_read/sysfs_write should be const, as in open(2) call. * Redefine scaling_gov_path as const pointer array. * Since sysfs_read works on a simple absolute path anyway, make sure the scaling_gov_path paths *are* absolute. Otherwise the code only works if Power HAL has / as CWD, which is a bit fragile. Change-Id: I70c08f8137842569514bcb3f6e0617d46044e6ab Signed-off-by: Corinna Vinschen <xda@vinschen.de>