commit | 191e63aa94c5615860642d068ec0657695bb1e07 | [log] [tgz] |
---|---|---|
author | Corinna Vinschen <xda@vinschen.de> | Tue Apr 10 11:57:37 2018 +0200 |
committer | Jackeagle <jackeagle102@gmail.com> | Thu Nov 01 03:25:01 2018 +0000 |
tree | e3afdaaa3d5e0027c503ed0cc42819ef9c25b719 | |
parent | 16c898ffd8e3ab94fbeef1e20d54a93cf1e2f121 [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>